Bug with includeAdultKeywords when running GenerateKeywordIdeas or Metrics?

58 views
Skip to first unread message

Ksenya Arsenevna

unread,
Feb 8, 2023, 5:57:00 PM2/8/23
to Google Ads API and AdWords API Forum
Hi all,

GenerateKeywordHistoricalMetricsRequest has an adult parameter as follows:

include_adult_keywords

bool

If true, adult keywords will be included in response. The default value is false.

I am seeing very odd API behavior when running Keyword Ideas or HistoricalMetrics queries. This is what happens:

Getting metrics for the word "porn" - with include_adult_keywords set to false, I am getting an empty response (expected). When the setting set to true, I am getting response with metrics (also expected). However, when I change the word to "porno" - that is where API providing empty response notwithstanding the adult setting.

Same happens with other adult words, such as "sexy girls".

But what's really odd is that keywords such as "girls" or "boys" alone, result in empty responses too (no matter whether adult is ON/OFF). (Then "girls clothes" works fine with al the metrics...?).

Please advise if this is expected behavior and why 'adult' setting is not respected and many words appear to be as shadow-banned ?

[2023-02-08T22:53:16.334647+00:00] google-ads.DEBUG: Request
-------
Method Name: /google.ads.googleads.v12.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/8.1.2-1ubuntu2.10 gccl\/17.1.0 gapic\/17.1.0 gax\/1.19.0 grpc\/1.51.1 rest\/1.19.0 pb\/3.21.12+c",
"x-goog-request-params": "customer_id=86******229",
"developer-token": "REDACTED"
}
Request:
{"customerId":"86*******229","keywords":["girls"],"language":"languageConstants/1000","includeAdultKeywords":true,"geoTargetConstants":["geoTargetConstants/2840"],"keywordPlanNetwork":"GOOGLE_SEARCH_AND_PARTNERS"}

Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "i005uYMaq2UToa6Ij5AIXg",
"date": "Wed, 08 Feb 2023 22:53:16 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"
}
Response:
{"results":[{"text":"girls"}]}

Google Ads API Forum Advisor

unread,
Feb 9, 2023, 3:04:29 PM2/9/23
to kimi...@gmail.com, adwor...@googlegroups.com
Hi Ksenya,

Thank you for posting your concern.

Regarding your concern, can you please provide the complete request and response logs with the request ID and request header generated on your end without redacting the customer id? I asked this so that our team can better check your account and to check the actual behavior that you are encountering so we can provide the accurate insights and guidance to you.

You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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