Adwords api targeting idea INVALID_CRITERION_ID

62 views
Skip to first unread message

Евгений Калейчик

unread,
Feb 13, 2022, 7:29:55 AM2/13/22
to Google Ads API and AdWords API Forum
i have request
 URL: https://adwords.google.com/api/adwords/o/v201809/TargetingIdeaService Request ID: 0005d7e55d32fda20a56730d270e5c91 ResponseTime(ms): 318 OperationsCount: 1 IsFault: true FaultMessage: ApiException{applicationExceptionType=ApiException, errors=[CriterionError{apiErrorType=CriterionError, errorString=CriterionError.INVALID_CRITERION_ID, fieldPath=selector.searchParameters[0].locations[0], fieldPathElements=[FieldPathElement{field=selector}, FieldPathElement{field=searchParameters, index=0}, FieldPathElement{field=locations, index=0}], reason=INVALID_CRITERION_ID, trigger=2112}]}

but get INVALID_CRITERION_ID by location id. The location id contains in adwords/api/docs/appendix/geo/geotargets-2020-08-05.csv

Google Ads API Forum Advisor

unread,
Feb 14, 2022, 3:07:18 PM2/14/22
to kaleych...@gmail.com, adwor...@googlegroups.com

Hello there,

Thanks for reaching out to the Google Ads API team.
To take a closer look at the issue you described and to address it, would you be able to provide the complete SOAP request and response logs, with the requestId and request header generated on your end where we can see the error? Please send the requested details via the Reply privately to the author option. If this option is not available, you may send the details directly to us googleadsa...@google.com alias instead. 

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2WvEOY:ref

arte...@gmail.com

unread,
May 27, 2022, 7:05:57 AM5/27/22
to Google Ads API and AdWords API Forum
Google\AdsApi\AdWords\v201809

TargetingIdeaSelector

$locationParameter = new LocationSearchParameter();
$location = new Location($googleRegionKey);
$locationParameter->setLocations([$location]);

Set any $location, returned error:  CriterionError.INVALID_CRITERION_ID @ selector.searchParameters[2].locations[0]; trigger:'2233'

понедельник, 14 февраля 2022 г. в 23:07:18 UTC+3, adsapi:

Google Ads API Forum Advisor

unread,
May 29, 2022, 8:41:45 PM5/29/22
to arte...@gmail.com, adwor...@googlegroups.com
Hi,

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.

As mentioned by my colleague, the AdWords API has already sunset. The error rate for requests to the AdWords API will start increasing toward 100% beginning on May 31, 2022. If you are currently using the AdWords API, you need to upgrade to the Google Ads API now or your applications will experience an increased rate of errors per the schedule on this blog post.

With this, you may try following this guide instead for generating keywords ideas and monthly search volume in Google Ads API. If the error persists there, then please provide the complete request and response logs with request ID and request header generated on your end. You can send it via Reply privately to author option or send it on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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