Google Ads API: 503 502:Bad Gateway Error - google.api_core.exceptions.RetryError

471 views
Skip to first unread message

Kenneth Oh

unread,
Sep 9, 2019, 6:22:31 PM9/9/19
to AdWords API and Google Ads API Forum
Hello,

With the Google Ads API and while requesting the detail_placement_view resource using the google-ads-python package for a specific customer as an OAuthed MCC, I am encountering this error:

google.api_core.exceptions.RetryError: Deadline of 3600.0s exceeded while calling functools.partial(<function _wrap_unary_errors.<locals>.error_remapped_callable at 0x12c88e050>, customer_id: "xxxxxxxxxx"

query: "SELECT ad_group.id,detail_placement_view.placement,detail_placement_view.display_name,detail_placement_view.placement_type,detail_placement_view.target_url,metrics.video_quartile_25_rate,metrics.video_quartile_50_rate,metrics.video_quartile_75_rate,metrics.video_quartile_100_rate,metrics.video_views,metrics.cost_micros,metrics.clicks,metrics.impressions,metrics.conversions,metrics.all_conversions,metrics.view_through_conversions,segments.date,segments.device FROM detail_placement_view WHERE segments.date BETWEEN \'xxxx-xx-xx\' AND \'xxxx-xx-xx\'"

, metadata=[('x-goog-request-params', 'customer_id= xxxxxxxxxx'), ('x-goog-api-client', 'gl-python/3.7.4 grpc/1.23.0 gax/1.14.2 gapic/3.2.0')]), last exception: 503 502:Bad Gateway


Since this is a 503/502 error, I'm assuming this is an internal issue with the Google Ads API.


What could be possibly causing this issue?

Google Ads API Forum Advisor Prod

unread,
Sep 10, 2019, 3:08:04 PM9/10/19
to ohtke...@gmail.com, adwor...@googlegroups.com

Hi Kenneth, 

Thanks for sharing the error logs. The error '502 Bad Gateway' could be a transient issue which is caused when the servers are not reachable. Could you please retry the request? If you are facing an issue, could you please share the complete request and response logs along with the client customer id, to check this further? Please use Reply privately to author option while sharing the details. 

Regards,
Nikisha Patel, Google Ads API Team



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