Getting mutateError":"MUTATE_NOT_ALLOWED" when publishing an add

22 views
Skip to first unread message

Gustavo Galegale

unread,
Apr 28, 2023, 5:13:59 PM4/28/23
to Google Ads API and AdWords API Forum
Hi, I'm getting the following error:

Method Name: /google.ads.googleads.v12.services.AdGroupAdService/MutateAdGroupAds
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.4.33 gccl\/17.1.0 gapic\/17.1.0 gax\/1.19.1 grpc\/1.40.0 rest\/1.19.1 pb\/+n",
    "x-goog-request-params": "customer_id=9999999999",
    "developer-token": "REDACTED"
}
Request:
{"customerId":"9999999999","operations":[{"create":{"status":"PAUSED","adGroup":"customers\/9999999999\/adGroups\/153724162012","ad":{"finalUrls":["https:\/\/www.hytag.app"],"finalUrlSuffix":"zid=fb2b305487fcf5d0e32258196e6c0b3d","name":"Pacote Mimo - 320x50_1756","displayUploadAd":{"displayUploadProductType":"HTML5_UPLOAD_AD","mediaBundle":{"asset":"customers\/9999999999\/assets\/81303692797"}}}}}]}

Response
-------
Headers: {
    "request-id": "3v3KT-vD90aTUuIAdnXBeA",
    "date": "Fri, 28 Apr 2023 20:55:43 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {"errors":[{"errorCode":{"mutateError":"MUTATE_NOT_ALLOWED"},"message":"Mutates are not allowed for the requested resource.","location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"ad"}]}}],"requestId":"3v3KT-vD90aTUuIAdnXBeA"}  

And I cant seem to find why the mutate_not_allowed is being triggered.

Any ideas?

Gustavo

Google Ads API Forum Advisor

unread,
May 2, 2023, 2:45:47 AM5/2/23
to gus...@hytag.app, adwor...@googlegroups.com

Hello,

Thank you for reaching out to Google Ads API Support.

I see you are encountering the MUTATE_NOT_ALLOWED error. Can you confirm if the recommended format / specifications for the HTML_5_UPLOAD_AD's media_bundle, discussed in this guide, was applied before using it for creating the said ad?

Regards,

Google Logo Google Ads API Team


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