Isle of Man (20340): A keyword plan campaign contains one or more invalid geo targets.

140 views
Skip to first unread message

Esben Kolsbjerg

unread,
Mar 21, 2023, 8:53:04 AM3/21/23
to Google Ads API and AdWords API Forum
Hi
I'm trying to mutate a keyword plan campaign but can no longer use the "normal" geo target id for Isle of Man (20340).

Is this a (known) bug or has something I overlooked changed?

Thanks,
Esnem

Google Ads API Forum Advisor

unread,
Mar 21, 2023, 10:40:58 AM3/21/23
to adwor...@googlegroups.com

Hello Esnem,

Thank you for reaching out to the Google Ads API Support.

It seems you are encountering an error when you mutate your keyword plan campaign. For us to assist you further, can you please provide us with the complete request and response logs with request ID generated as shown in the respective links, so we can check on our end the errors being thrown?

If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag. 

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2k1K66:ref

Esben Kolsbjerg

unread,
Mar 22, 2023, 8:40:49 AM3/22/23
to Google Ads API and AdWords API Forum
I replied (privately) with my logs, but if anything is missing please say so.

Google Ads API Forum Advisor

unread,
Mar 22, 2023, 10:46:49 AM3/22/23
to adwor...@googlegroups.com

Hi Esnem,

Thanks for getting back to us.

I see that the geo target constant you set in your keyword plan is geoTargetConstants/20340. Can you confirm if this geo target constant is valid? You may refer to this guide for the supported geo targets. Additionally as highlighted in the guide, you may also use the geo_target_constant report to retrieve geo targets directly from the Google Ads API.

Regards,

Esben Kolsbjerg

unread,
Mar 23, 2023, 3:47:28 AM3/23/23
to Google Ads API and AdWords API Forum
Yes, I can confirm this is valid. It worked with that geo-target id for YEARS until the other day when it suddenly stopped working. When it happened I confirmed that geotarget id hadn't changed by calling the Google Ads API (GeoTargetConstantService). I know for sure I'm not the only one with this issue.

Esben Kolsbjerg

unread,
Mar 23, 2023, 3:58:45 AM3/23/23
to Google Ads API and AdWords API Forum
Here are the logs from requesting the "suggest geotarget constant". (I cut it as it is very long, but the first suggestion is for the Isle of Man (the province) with geotarget id of 20340)

    
 -------
 Method: /google.ads.googleads.v13.services.GeoTargetConstantService/SuggestGeoTargetConstants
 Host: googleads.googleapis.com
 Headers: {
   "developer-token": "REDACTED",
   "login-customer-id": "9100994273",
   "x-goog-api-client": "gl-python/3.8.16 grpc/1.51.1 gax/2.10.1 gccl/20.0.0 pb/4.21.12"
 }
 Request: country_code: "GB"
 location_names {
   names: "Isle of Man"
   names: "G"
   names: "B"
 }
 
 
 Response
 -------
 Headers: {
   "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
   "content-disposition": "attachment",
   "date": "Thu, 23 Mar 2023 07:53:54 GMT",
   "request-id": "Rc-WGakUcYhdNPOnFl20YA"
 }
 Response: geo_target_constant_suggestions {
   locale: "en"
   reach: 86000
   search_term: "Isle of Man"
   geo_target_constant {
     resource_name: "geoTargetConstants/20340"
     id: 20340
     name: "Isle of Man"
     country_code: "GB"
     target_type: "Province"
     status: ENABLED
     canonical_name: "Isle of Man,United Kingdom"
   }
   geo_target_constant_parents {
     resource_name: "geoTargetConstants/2826"
     id: 2826
     name: "United Kingdom"
     country_code: "GB"
     target_type: "Country"
     status: ENABLED
   }
 }
 geo_target_constant_suggestions {
   locale: "en"
   reach: 77000
   search_term: "Isle of Man"
   geo_target_constant {
     resource_name: "geoTargetConstants/1007268"
     id: 1007268
     name: "Douglas"
     country_code: "GB"
     target_type: "City"
     status: ENABLED
     canonical_name: "Douglas,Isle of Man,United Kingdom"
   }
   geo_target_constant_parents {
     resource_name: "geoTargetConstants/20340"
     id: 20340
     name: "Isle of Man"
     country_code: "GB"
     target_type: "Province"
     status: ENABLED
   }
   geo_target_constant_parents {
     resource_name: "geoTargetConstants/2826"
     id: 2826
     name: "United Kingdom"
     country_code: "GB"
     target_type: "Country"
     status: ENABLED
   }
 }
 geo_target_constant_suggestions {
   locale: "en"
   reach: 8000
   search_term: "Isle of Man"
   geo_target_constant {
     resource_name: "geoTargetConstants/1007269"
     id: 1007269
     name: "Ramsey"
     country_code: "GB"
     target_type: "City"
     status: ENABLED
     canonical_name: "Ramsey,Isle of Man,United Kingdom"
   }
   geo_target_constant_parents {
     resource_name: "geoTargetConstants/20340"
     id: 20340
     name: "Isle of Man"
     country_code: "GB"
     target_type: "Province"
     status: ENABLED
   }
   geo_target_constant_parents {
     resource_name: "geoTargetConstants/2826"
     id: 2826
     name: "United Kingdom"
     country_code: "GB"
     target_type: "Country"
     status: ENABLED
   }
 }

Esben Kolsbjerg

unread,
Apr 5, 2023, 4:22:18 AM4/5/23
to Google Ads API and AdWords API Forum
Any update?
Reply all
Reply to author
Forward
0 new messages