[GOOGLE ADS ERROR] - How to Fetch the Error Name and Discrepancy between Index and Number in Protobuf

29 views
Skip to first unread message

Marco Frighetto

unread,
May 22, 2019, 10:30:51 AM5/22/19
to AdWords API and Google Ads API Forum
Hi there,
how can i take in python the error name from the enumerate in protobuf response?

Furthermore, i see a discrepancy between the index and number in protobuf. Is this intended to be so? See the screenshot attached (for reference). 

Thank for you help.
Marco
_190522_155403_672.png

Dorian Kind

unread,
May 22, 2019, 11:06:53 AM5/22/19
to AdWords API and Google Ads API Forum
Hi Marco,

about the first part of your question, there's an open issue on the client library's tracker covering exactly your scenario: https://github.com/googleads/google-ads-python/issues/110
As a workaround, you might be able to use `google.protobuf.json_format.MessageToDict` to get the enum name.

HTH, best regards,
Dorian

Google Ads API Forum Advisor Prod

unread,
May 22, 2019, 4:48:25 PM5/22/19
to ma...@boosterboxdigital.com, adwor...@googlegroups.com
Hi Marco, 

In addition to the link shared by Dorian, could you please post your concern on the Python Github issue tracker for the second issue as the library owner are better equipped to address this?

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UAqLIm:ref

Marco Frighetto

unread,
May 23, 2019, 5:54:49 PM5/23/19
to AdWords API and Google Ads API Forum
Thk. That was useful ;-)
Reply all
Reply to author
Forward
0 new messages