Hello, using the forecastmetrics with the keywordplan is ok if i use the
interval but if i call it with a date range when i call this function it
break
public static function GenerateForecastMetrics(
GoogleAdsClient $googleAdsClient,
int $customerId,
int $keywordPlanId
) {
global $keywordPlanId;
$keywordPlanServiceClient =
$googleAdsClient->getKeywordPlanServiceClient(); // Issues a request to
generate forecast metrics based on the specific keyword plan ID.
$generateForecastMetricsResponse =
$keywordPlanServiceClient->generateForecastMetrics(
ResourceNames::forKeywordPlan($customerId, $keywordPlanId) );
my customerId and keywordPlanId they are ok if i create the keywordplan
with the date_interval i get through this call at generateForecastMetrics.
and can print all the info from the docs.
But if i create the keywordplan with a date_interval the call to
generateForecastMetrics fail. i don't understand could you help me please.
i share here the pastebin of results and error messages from these two type
of call.
the first one using date_interval https://pastebin.com/P9DvLiQY
the second one with error using a date_range: https://pastebin.com/4xg3iwSS
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/31faa1b7-c51a-43ff-8126-6308084e0448n%40googlegroups.com.