Hi,

I successfully implemented your reference for the demand gen campaign, but 
I am facing issues in applying the same approach to the VAC campaigns. 

*Below is the reference -*
Request Body:

POST https://googleads.googleapis.com/v17/customers/{customer 
ID}/adGroupCriteria:mutate?key=[YOUR_API_KEY] HTTP/1.1

developer-token: **********************
login-customer-id: 9569181458
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "create": {
        "adGroup": "customers/{customer ID}/adGroups/{ad group ID}",
        "audience": {
          "audience": "customers/{customer ID}/audiences/{audience ID}"
        }
      }
    }
  ]
}

Response:

HTTP/1.1 200 
cache-control: private
content-encoding: gzip
content-length: 127
content-type: application/json; charset=UTF-8
date: Wed, 11 Sep 2024 10:46:46 GMT
server: ESF
vary: Origin, X-Origin, Referer

{
  "results": [
    {
      "resourceName": "customers/{customer ID}/adGroupCriteria/{ad group 
ID}~{ad group criterion ID}"
    }
  ]
}

*Below is the error while trying for VAC campaign -*
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": 
"type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "mutateError": "MUTATE_NOT_ALLOWED"
                        },
                        "message": "Mutates are not allowed for the 
requested resource.",
                        "trigger": {
                            "stringValue": "VIDEO"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                }
                            ]
                        }
                    }
                ],
                "requestId": "hinoLQ_otIQat9pFiRIXMg"
            }
        ]
    }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/657e7456-3aef-4808-99e5-fb94bdb24cben%40googlegroups.com.
  • At... Aman Ansari
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to