There is a problem generating keywords.

314 views
Skip to first unread message

Jieun Cha

unread,
Jul 18, 2022, 2:39:37 AM7/18/22
to Google Ads API and AdWords API Forum
Hi, I have a problem generating keywords.

I use generateKeywordIdeas of keywordPlanServiceClient.
And I want to set up and search 16 GeoTargetConstants of GenerateKeywordIdeasRequest.
But, An error occurs if you search by setting more than 10 GeoTarget.(I am attaching the error log below.)
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
com.google.ads.googleads.v10.errors.GoogleAdsException: errors {
  error_code {
    keyword_plan_idea_error: INVALID_VALUE
  }
  message: "The input has an invalid value."
  location {
    field_path_elements {
      field_name: "geo_target_constants"
    }
  }
}

ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

How do I set more than 10 data?
Thank you.

Google Ads API Forum Advisor

unread,
Jul 18, 2022, 9:27:33 AM7/18/22
to chaji...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

You may note that the geo_targets for max number allowed is 20. However, for the concern regarding encountered error, could you provide us with the complete request and response logs with the request-id, so our team can better check?

For the client library, logging can be enabled by navigating to the Client libraries > Your client library (ex PHP) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cX2eh:ref

Jieun Cha

unread,
Jul 18, 2022, 8:05:17 PM7/18/22
to Google Ads API and AdWords API Forum

I Replied privately to author option.

Please Check as soon as possible.

Thank you :)


2022년 7월 18일 월요일 오후 10시 27분 33초 UTC+9에 adsapi님이 작성:

Google Ads API Forum Advisor

unread,
Jul 18, 2022, 10:54:50 PM7/18/22
to chaji...@gmail.com, adwor...@googlegroups.com
Hi Jieun,

Thank you for providing more details to your concern. I am also a member of the Google Ads API team and let me provide support to your concern.

Upon checking the error, it appears that there is an issue on how you set values to the geo_target_constants field. With this, I would suggest referring to this sample implementation as it illustrates how to set multiple geo in generating keywords ideas.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cX2eh:ref

Jieun Cha

unread,
Jul 19, 2022, 1:27:24 AM7/19/22
to Google Ads API and AdWords API Forum
Hi,
I saw this sample code and set geo_target_constants field up in the same way.
After setting 10 geo_target_constants value, it was confirmed that it works without any problem.(10 or less is OK)
But, An error occurs setting more than 10 geo_target_constants.

To summarize, you can enter less than 10 geo_target_constants values, but an error occurs if you enter more than 10 geo_target_constants values.
Can you please check again?

Thank you.


2022년 7월 19일 화요일 오전 11시 54분 50초 UTC+9에 adsapi님이 작성:

Google Ads API Forum Advisor

unread,
Jul 19, 2022, 2:28:19 AM7/19/22
to chaji...@gmail.com, adwor...@googlegroups.com
Hi Jieun,

Thank you for the reply.

Yes, you may note that geo_target_constants maximum is only 10. You may check this documentation for more details.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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