Create ad group criterion location: UNKNOWN error / The error code is not in this version / Trigger OWNED_AND_OPERATED

142 views
Skip to first unread message

Nga Ngo

unread,
May 7, 2024, 5:47:51 AM5/7/24
to Google Ads API and AdWords API Forum
Hi,
I tried calling https://googleads.googleapis.com/v16/customers/../googleAds:mutate via Postman, but failed due to UNKNOWN error.
This is the body part that threw error:
{
        "adGroupCriterionOperation": {
          "create": {
            "adGroup":"customers/../adGroups/-3",
            "location":{
                "geoTargetConstant": "geoTargetConstants/21000"
            }
          }
        }
    }
And below is the response. Please advise. Thanks
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "requestError": "UNKNOWN"
                        },
                        "message": "The error code is not in this version.",
                        "trigger": {
                            "stringValue": "OWNED_AND_OPERATED"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "mutate_operations",
                                    "index": 3
                                },
                                {
                                    "fieldName": "ad_group_criterion_operation"
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "location"
                                }
                            ]
                        }
                    }
                ],
                "requestId": "UGLg9TQgb5fqAY4RcJP9Jg"
            }
        ]
    }
}

Google Ads API Forum Advisor

unread,
May 7, 2024, 6:10:47 AM5/7/24
to zorro...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I understand you're encountering an 'UNKNOWN' error. Please note that the provided details lack proper API logs to investigate the issue. To assist you further, we would need complete API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tItqe:ref" (ADR-00233956)

Thanks,
 
Google Logo Google Ads API Team


Nga Ngo

unread,
May 8, 2024, 8:15:56 PM5/8/24
to Google Ads API and AdWords API Forum
Hi,
I sent you the request/response detail personally. Please check.
Thanks,
Nga

Google Ads API Forum Advisor

unread,
May 9, 2024, 12:53:49 AM5/9/24
to zorro...@gmail.com, adwor...@googlegroups.com
Hi Nga,

Upon checking the provided logs, it is observed that optimizedTargetingEnabled is still set to true. As mentioned earlier, I suggest you set the optimizedTargetingEnabled to false, make sure you are sending the correct adgroup ID in the adGroupCriterionOperation, and retry the request again at your end.

I hope this helps. kindly get back to us in case of any further queries.
Reply all
Reply to author
Forward
0 new messages