Parsing Google Ads Partial Failure

517 views
Skip to first unread message

Rishabh Gandhewar

unread,
Mar 6, 2022, 1:14:43 AM3/6/22
to Google Ads API and AdWords API Forum
I am following the code to handle partial failure from this example
However, when I try to deserialize the message by using this I am getting following error - 

failure_object = GoogleAdsFailure.deserialize(error_detail.value)
AttributeError: deserialize

I am using Google ads library 14.0.0 and creating a client with v8 version.

Can someone help?
Please let me know if you need any additional information

Google Ads API Forum Advisor

unread,
Mar 6, 2022, 10:20:06 PM3/6/22
to adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forums.

It seems you have a problem in deserialize. Can you check this link Warning and Partial Failure for more information about GoogleAdsFailure.deserialize you encountered.

Since the error is more on the implementation on how an object is deserialize in python, we suggest that you raise this to the client library owners via this link. Client library owners should be able to assist you on this.

Let us know if you have any questions.

Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XlrHY:ref

Alfred Scott

unread,
Apr 11, 2022, 11:34:06 AM4/11/22
to Google Ads API and AdWords API Forum
Hello,
     I having the exact same error as above, was there any resolution to this? 
my version info is
google-ads==15.1.1
v10 of the api

Alfred Scott

unread,
Apr 11, 2022, 1:48:17 PM4/11/22
to Google Ads API and AdWords API Forum
For anyone who encounters this thread, my fix was adding the field 'use_proto_plus': True, when initializing our GoogleAdsClient.
GoogleAdsClient.load_from_dict({...,'use_proto_plus': True})

Google Ads API Forum Advisor

unread,
Apr 12, 2022, 1:39:29 AM4/12/22
to asc...@everquote.com, adwor...@googlegroups.com

Hi Alfred,
 

Thank you for sharing the workaround that you've done on your end to fix the issue. If you have a question about the client library you can reach out to the author via this link.
 

Also, if you have a question about the Google Ads API let us know. We will be happy to address it.
 

Reply all
Reply to author
Forward
0 new messages