RE: Request ID for partial failure requests (google-ads-python)

156 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Jul 27, 2021, 1:29:43 AM7/27/21
to vladimi...@regiohelden.de, adwor...@googlegroups.com
Hi Vladimir,

Thank you for reaching out to our API support team.

I also had to delete your initial post as it contained the details of your logs. When sending logs, you may do so via the Reply privately to author option. If the said option is not available, you may send those to our team directly via our googleadsa...@google.com alias.

That said, I am posting some of the details of your initial concern below, as reference :

"Hello,

I want to log request ids for partial failure requests, but can't find a way to get it from the response. The metadata is absent in the response I get from the ConversionUploadService and request_id attribute seems to be not set for partial failure errors (it's always an empty string).

Here is an example of the request/response from the logs:

<redacted>

As you can see, request id is definitely there, but in partial failure GoogleAdsFailure object it's just ''
------
failure_message = ads_client.client.get_type("GoogleAdsFailure", 'v7')
GoogleAdsFailure = type(failure_message)
failure_object = GoogleAdsFailure.deserialize(response.partial_failure_error.details[0].value)

print(failure_object.request_id) => ''
------

Any ideas how to get a request id from the response object?

I'm using:
python 3.8.10
google-ads 11.0.0

Thanks,
Vladimir"


Moving forward, you should be able to parse through the generated logs to retrieve the request-id. If you are looking for a more direct solution, then I would recommend that you reach out to the Python client library owners via this link, for more insight. I hope this helps.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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