Adding Targeting to Ad Group Returns UNKNOWN

34 views
Skip to first unread message

Kathryn Rieb

unread,
Jun 13, 2023, 6:46:15 PM6/13/23
to Google Ads API and AdWords API Forum
Hello, I am using V13 of the Google Ads Api and I recently started encountering a new error, when I try and add a Targeting criteria (Gender, Age range, or User Interest) to an Ad Group. The error comes from adding an ad group criterion like so:

{ "entity": "ad_group_criterion", "operation": "create", "resource": { "ad_group": "...", "gender": { "type": "FEMALE" }, "negative": true }, "$context": [...] }

The error appears as follows:
{ "error_code": { "request_error": "UNKNOWN" }, "message": "The error code is not in this version.", "location": { "field_path_elements": [ { "field_name": "mutate_operations", "index": 4 }, { "field_name": "ad_group_criterion_operation" }, { "field_name": "create" }, { "field_name": "gender" } ] }

Google Ads API Forum Advisor

unread,
Jun 19, 2023, 10:39:17 AM6/19/23
to kan...@gmail.com, adwor...@googlegroups.com

Hello,

Thanks for reaching out to the Google Ads API Support Team.

I see you are getting an UNKNOWN error. Can you please provide us with the complete request and response logs with request ID generated on your end when you performed your API request so our team can provide precise recommendations.

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

This message is in relation to case "ref:_00D1U1174p._5004Q2mCiTv:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages