This has issue has been brought up many times and the team here is not understanding the issue. Why release 10.1 and allow us to generate metrics without a keywword plan if we can't set the language and location? The 10.1 release was meant to solve an issue but they forgot certain functionality making it unusable. The ads api team needs to understand that the *generateKeywordHistoricalMetrics *HAS to be able to add location and language for it to be useful otherwise it's unusable. Telling us to go back and generate a keyword plan is exactly the reason they released 10.1 and the *generateKeywordHistoricalMetrics *so we wouldn't have to do that. Can someone on the ads team please make the api developers aware that the 10.1 release is useless unless they allow us to set language and location when calling *generateKeywordHistoricalMetrics.*
On Wednesday, 25 May 2022 at 06:54:54 UTC-4 labustgo...@gmail.com wrote: > Hello Peter, > > Maybe the snippet below might help clarify what I meant. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *<?php// Before 10.1// ===========// Taken from > https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#create_a_keyword_plan > > <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#create_a_keyword_plan>$keywordPlanResource > > = self::createKeywordPlan( $googleAdsClient, > $customerId);$planCampaignResource = self::createKeywordPlanCampaign( > $googleAdsClient, $customerId, $countryCode, // $languageCode, > $keywordPlanResource);// ...$keywordPlanServiceClient = > $googleAdsClient->getKeywordPlanServiceClient();$generateHistoricalMetricsResponse > > = $keywordPlanServiceClient->generateHistoricalMetrics( > $keywordPlanResource);// After 10.1// > ==========$keywordPlanIdeaServiceClient = > $googleAdsClient->getKeywordPlanIdeaServiceClient();$generateHistoricalMetricsResponse > > = $keywordPlanIdeaServiceClient->generateKeywordHistoricalMetrics( [ > 'customerId' => $googleAdsClient->getLoginCustomerId(), > 'keywords' => $keywords ]);* > > Before 10.1, you needed to create a *KeywordPlan* to generate historical > metrics, and you could specify the location and language parameters when > creating a *KeywordPlanCampaign*. > > The 10.1 release introduced *generateKeywordHistoricalMetrics*, allowing > historical metrics generation without the need for a *KeywordPlan*. > > As far as I can tell, there is no way to specify language and location > parameters when calling *generateKeywordHistoricalMetrics*. > > On Tuesday, May 24, 2022 at 8:58:49 PM UTC-8 adsapi wrote: > >> Hi Syed, >> >> Thank you for your reply. >> >> As mentioned earlier by our colleague Matt, the language and location >> will need to be specified o*n the keyword plan campaign*, when using the >> GenerateKeywordHistoricalMetrics >> <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en> >> >> feature of the Google Ads API. >> >> You may review this example >> <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#create_a_keyword_plan> >> >> to know more about the implementation. >> >> That said, when finally generating the metrics, You will no longer need >> to specify once more the language and location. The metrics will then be >> based on the contents of your keyword plan campaign, including the language >> and location that you set within those plans. >> >> Best regards, >> >> [image: Google Logo] >> Peter Laurence >> Google Ads API Team >> >> >> ref:_00D1U1174p._5004Q2YqDI0:ref >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3f7b906d-d172-4271-acc8-2cf0525313b9n%40googlegroups.com.