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/MutateAdGroupAdsHost: googleads.googleapis.comHeaders: {"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: 3Details: 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"}* -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/50a2e4c8-0d83-4b93-8679-2a8cdd64d09an%40googlegroups.com.