Google Ads API: mutation scheme validation bug

85 views
Skip to first unread message

Альфрэдо

unread,
Aug 24, 2022, 4:54:07 AM8/24/22
to Google Ads API and AdWords API Forum
Hello, i'am use Google Ads API v11, and try create AdGroupAd by mutation. When i run query in attaching file, i get validation error:
{"errors":[{"error_code":{"field_error":"REQUIRED"},"message":"The required field was not present.","location":{"field_path_elements":[{"field_name":"operations","index":0},{"field_name":"create"},{"field_name":"ad"},{"field_name":"video_ad"}]}}],"request_id":"GqPv17liAIGIIhZ4-Q0a3A"}

This is very strange, because i send video_ad field in my request. It looks like API bug, please help me.
mutation_query.json

Google Ads API Forum Advisor

unread,
Aug 24, 2022, 11:01:51 AM8/24/22
to googla...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? 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 can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dn2N4:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Aug 25, 2022, 10:04:41 AM8/25/22
to googla...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for your reply.

However, I had to delete your most recent response as it contained the details of your request and response logs. When sending this information, you may do so using the Reply to author option or directly to our googleadsa...@google.com alias.

Moving forward, and as per this guide, it states that "The Google Ads API permits only reporting of video ads. Video campaigns must be created using the UI or Google Ads scripts.".

That said, creating a video_ad is not possible via the API and is the reason why you are encountering the said error. I hope this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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