I encounter an error whenever I attempt to create an ad group criterion 
that includes either Language or Location parameters.

You can find the detailed logs here:

​

​

Request

-------


Method Name: 
/google.ads.googleads.v17.services.AdGroupCriterionService/MutateAdGroupCriteria

Host: 

Headers: {

  "x-goog-api-client": "gl-dotnet/8.0.0 gapic/21.0.0 gax/4.8.0 grpc/2.60.0 
gccl/4.0.1 pb/3.25.0",

  "developer-token": "REDACTED",

  "x-goog-request-params": "customer_id=1424775433"

}


{ "customerId": "1424775433", "operations": [ { "create": { "adGroup": 
"customers/1424775433/adGroups/170233143320", "negative": false, 
"location": { "geoTargetConstant": "geoTargetConstants/1023191" } } } ] }


Response

--------

Headers: {

  "request-id": "8m5jNg5MjPkvZ5aElkP-fw",

  "date": "Sun, 22 Sep 2024 10:28:38 GMT",

  "alt-svc": "h3-29=\":443\"; ma=2592000",

  "google.ads.googleads.v17.errors.googleadsfailure-bin": 
"Cn0KA+ADAhIzVGhlIG9wZXJhdGlvbiBpcyBub3QgYWxsb3dlZCBmb3IgdGhlIGdpdmVuIGNvbnRleHQuGhkqF1NFQVJDSChTRUFSQ0hfU1RBTkRBUkQpIiYSDgoKb3BlcmF0aW9ucxgAEggKBmNyZWF0ZRIKCghsb2NhdGlvbhIWOG01ak5nNU1qUGt2WjVhRWxrUC1mdw==",

  "grpc-status-details-bin": 
"CAMSJVJlcXVlc3QgY29udGFpbnMgYW4gaW52YWxpZCBhcmd1bWVudC4a4AEKRHR5cGUuZ29vZ2xlYXBpcy5jb20vZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE3LmVycm9ycy5Hb29nbGVBZHNGYWlsdXJlEpcBCn0KA+ADAhIzVGhlIG9wZXJhdGlvbiBpcyBub3QgYWxsb3dlZCBmb3IgdGhlIGdpdmVuIGNvbnRleHQuGhkqF1NFQVJDSChTRUFSQ0hfU1RBTkRBUkQpIiYSDgoKb3BlcmF0aW9ucxgAEggKBmNyZWF0ZRIKCghsb2NhdGlvbhIWOG01ak5nNU1qUGt2WjVhRWxrUC1mdw=="

}


Fault: {

  "StatusCode": 3,

  "Details": "Request contains an invalid argument.",

  "RequestId": "8m5jNg5MjPkvZ5aElkP-fw",

  "Failure": {

    "errors": [

      {

        "errorCode": {

          "contextError": "OPERATION_NOT_PERMITTED_FOR_CONTEXT"

        },

        "message": "The operation is not allowed for the given context.",

        "trigger": {

          "stringValue": "SEARCH(SEARCH_STANDARD)"

        },

        "location": {

          "fieldPathElements": [

            {

              "fieldName": "operations",

              "index": 0

            },

            {

              "fieldName": "create"

            },

            {

              "fieldName": "location"

            }

          ]

        }

      }

    ],

    "requestId": "8m5jNg5MjPkvZ5aElkP-fw"

  }

}

----------------END API CALL----------------

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2e084b10-81ab-4a81-9d11-cf4325bfa797n%40googlegroups.com.
  • Er... Jimmy_00
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to