MutateAdGroupAds with a displayUploadAd results into MUTATE_NOT_ALLOWED

99 views
Skip to first unread message

S.A.

unread,
Mar 24, 2022, 6:41:00 AM3/24/22
to Google Ads API and AdWords API Forum
We're generating campaigns, adgroups, and ads through https://github.com/googleads/google-ads-php, however with the ad-type 'HTML5_UPLOAD_AD' we run into an MUTATE_NOT_ALLOWED error when trying to Mutate AdGroupAds. If we run the same logic with an ResponsiveSearchAd the ad does get created.

[2022-03-22T13:58:19.528572+00:00] google-ads.NOTICE: Request

Method Name: /google.ads.googleads.v10.services.AdGroupAdService/MutateAdGroupAds
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php/8.0.16 gccl/14.0.0 gapic/14.0.0 gax/1.12.0 grpc/1.42.0 rest/1.12.0",
"x-goog-request-params": "customer_id=[REDACTED_CUSTOMER_ID]",
"developer-token": "REDACTED",
"login-customer-id": "1496918513"
}
Request:
{"customerId":"[REDACTED_CUSTOMER_ID]","operations":[{"create":{"status":"PAUSED","adGroup":"customers/[REDACTED_CUSTOMER_ID]/adGroups/133409207223","ad":{"finalUrls":["http://example.com/html5"],"name":"Ad for HTML5","displayUploadAd":{"displayUploadProductType":"HTML5_UPLOAD_AD","mediaBundle":{"asset":"customers/[REDACTED_CUSTOMER_ID]/assets/35514718815"}}}}}]}

Response

Headers: {
"request-id": "fGIZmZFv1uubPL_cjN7mfw",
"date": "Tue, 22 Mar 2022 13:58:15 GMT",
"alt-svc": "h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
}

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":"fGIZmZFv1uubPL_cjN7mfw"}

Google Ads API Forum Advisor

unread,
Mar 24, 2022, 3:18:38 PM3/24/22
to studyp...@lanthopusmarketing.nl, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please privately provide us with your complete, unredacted request and response logs?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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