Hi,
Thanks for posting your concern to us. I had to delete your initial post as it contained your logs. I am reposting below without the sensitive log information for reference :
“Hello Team,
I am working on google Ads API , I have some errors in Responsive Video Ads API , Please check below request and response log & suggest us solution.
Google responsive video ads API request & response :
Request:
{"customerId":"9978994307","operations":[{"create":{"status":"PAUSED","adGroup":"customers\/9978994307\/adGroups\/131633401671","ad":{"finalUrls":["https:\/\/www.sweply.com"],"videoResponsiveAd":{"headlines":[{"text":"Best-517541111"}],"longHeadlines":[{"text":"Best 1660426802"}],"descriptions":[{"text":"Buy your-1512772587"}],"callToActions":[{"text":"Shop Now"}],"videos":[{"asset":"customers\/9978994307\/assets\/18040224225"}]}}}}]}
Response
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.","trigger":{"stringValue":"VIDEO"},"location":{"fieldPathElements":[{"fieldName":"operations","index":0}]}},{"errorCode":{"contextError":"OPERATION_NOT_PERMITTED_FOR_CONTEXT"},"message":"The operation is not allowed for the given context.","trigger":{"stringValue":"VIDEO"},"location":{"fieldPathElements":[{"fieldName":"operations","index":0}]}},{"errorCode":{"adError":"INCOMPATIBLE_WITH_RESTRICTION_TYPE"},"message":"The associated ad is not compatible with restriction type.","trigger":{"stringValue":"VIDEO_MIXED_REACH"},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"ad"}]}},{"errorCode":{"fieldError":"REQUIRED"},"message":"The required field was not present.","location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"ad"},{"fieldName":"name"}]}}],}
”
Could you provide us with the complete request and response logs with the request-id when you encountered the error, so our team can better check?
If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
Regards,
|
||||||