Google Ads API: Partial Errors for AdService

216 views
Skip to first unread message

Shipra

unread,
Jan 31, 2022, 6:08:08 AM1/31/22
to Google Ads API and AdWords API Forum
Hey,

As per the documentation of AdService, while Mutating the Ads, we can set a partial failure flag.
https://developers.google.com/google-ads/api/reference/rpc/v8/MutateAdsRequest

But the MutateAdsResponse does not contain the details on each partial Failure that happened.
So how can we handle the failure in this case or get to know the proper error? Is there any way to know the detailed error and index where it happened? Instead of relying on exception messages and looking for index substring?

Also as per this thread: Thread
Could you confirm partial failure flag is respected for ads service now in Google Ads PI?

Google Ads API Forum Advisor

unread,
Jan 31, 2022, 3:11:18 PM1/31/22
to shi...@optmyzr.com, adwor...@googlegroups.com

Hi there,

Full error reports should be created in both API's. Could you privately send us a request and response log of API communication that returns this lack of error detail when partial failure is set to true?  The request and response appears similar to the JSON Mappings in our REST documentation. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging".

In the AdWords API , a request looks like the 3rd section in request and a response looks similar to response. Logging instructions are in the read.me on Github of each client library.

Setting the loglevel to 'DEBUG' will get the desired log.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 
​​​​​​​

ref:_00D1U1174p._5004Q2W2qvu:ref

Shipra

unread,
Feb 1, 2022, 7:13:14 AM2/1/22
to Google Ads API and AdWords API Forum
Hey!

I shared the complete response and request log. Thanks! 

Google Ads API Forum Advisor

unread,
Feb 1, 2022, 10:29:50 PM2/1/22
to shi...@optmyzr.com, adwor...@googlegroups.com
Hi Shipra,

Thank you for providing more details to your concern.

If the API response did not return any errors for the 3rd operation, then this means that it is valid. However, so that we can verify it, could you try a separate request for the update in the 3rd operation only? Please provide the complete request and response logs, with the request-id, generated on your end for this operation. Also, could you also explain why you are expecting the 3rd operation to fail?

Furthermore, please note that AdService should be only used to make updates for ads as discussed in this document.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W2qvu:ref

Google Ads API Forum Advisor

unread,
Feb 1, 2022, 10:32:18 PM2/1/22
to shi...@optmyzr.com, adwor...@googlegroups.com
Hi Shipra,

Please provide the information that I requested previously via Reply privately to author option or to this email address googleadsa...@google.com if this option is not available.
Reply all
Reply to author
Forward
0 new messages