API v11 new options for customers.generateKeywordHistoricalMetrics does not work

156 views
Skip to first unread message

orkhan.a...@gmail.com

unread,
Jun 15, 2022, 4:01:24 AM6/15/22
to Google Ads API and AdWords API Forum
API v11 seems to support more options like includeAdultKeywords, geoTargetConstants, and keywordPlanNetwork in customers.generateKeywordHistoricalMetrics. While this is really really great, it does not work at all. I'm retrieving data for 'cars' and 'porn' keywords as a test. When no other parameters except 'keywords' is specified, API returns `avgMonthlySearches: '24900000'` for 'cars' keyword and nothing for second keyword which is inline with the default behavior specified in the docs.

I expect that passing `includeAdultKeywords: true` would make the data for the second keyword appear, but it does not.
I expect that passing `geoTargetConstants: ['geoTargetConstants/2031'],` would significantly change the numbers, but API still returns global results.

{
    keywords: ['cars', 'porn'],
    /// none of the following options change the end result.
    //geoTargetConstants: ['geoTargetConstants/2031'],
    //keywordPlanNetwork: 'GOOGLE_SEARCH',
    //language: 'languageConstants/1051',
    //includeAdultKeywords: true,
}

Google Ads API Forum Advisor

unread,
Jun 15, 2022, 6:05:58 AM6/15/22
to orkhan.a...@gmail.com, adwor...@googlegroups.com
Hello Orkhan,

This is indeed a known bug in the Google Ads API; our engineering team is already addressing it, and we will get back to you as soon as possible.

Thanks,

Mattia Tommasone
Google Ads API Team

ref:_00D1U1174p._5004Q2bwXd2:ref

orkhan.a...@gmail.com

unread,
Jun 21, 2022, 5:23:19 AM6/21/22
to Google Ads API and AdWords API Forum
I'm still looking forward seeing an update on this.

Google Ads API Forum Advisor

unread,
Jun 21, 2022, 5:33:28 AM6/21/22
to orkhan.a...@gmail.com, adwor...@googlegroups.com
Hello Orkhan,

The bug related to generateKeywordHistoricalMetrics not respecting geolocation filters has been fixed, and the fix has already been released.

You should see your results filtered by geolocation now.

orkhan.a...@gmail.com

unread,
Jun 21, 2022, 5:51:45 AM6/21/22
to Google Ads API and AdWords API Forum
It seems it's not fixed. My example above is still holds true. Maybe it's not deployed yet? Can you send me a working example?

Google Ads API Forum Advisor

unread,
Jun 21, 2022, 8:07:52 AM6/21/22
to orkhan.a...@gmail.com, adwor...@googlegroups.com
You are correct, the fix has not been released yet.

It should be released in a matter of a few days, though.

Sorry for the inconvenience.

orkhan.a...@gmail.com

unread,
Jun 23, 2022, 3:46:58 AM6/23/22
to Google Ads API and AdWords API Forum
I confirm that it's fixed now. Thank you!

Google Ads API Forum Advisor

unread,
Jun 23, 2022, 5:24:51 AM6/23/22
to orkhan.a...@gmail.com, adwor...@googlegroups.com
Hi Orkhan,

Thank you for sending updates on your concern. We're glad to hear that this issue is fixed on your own. However, if you have additional questions regarding the topic being discussed in this thread, feel free to send those over to our team and we would be happy to assist you further.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bwXd2:ref
Reply all
Reply to author
Forward
0 new messages