New Google Ads API v1 latency and stability issues

263 views
Skip to first unread message

Sergei Kim

unread,
May 28, 2019, 5:04:09 AM5/28/19
to AdWords API and Google Ads API Forum
Hi, Team and all the API Users,

We are migrating from XML to new JSON API, but this is hard. Last week we had to cancel deploy to production.

We are using GoogleAdsService mostly with SEARCH and MUTATE (Customer, Campaign, AdGroup, AdGroupAd, AdGroupCriterion). And these queries is very-very slow. Please look at data from our Google API Console:

Screenshot 2019-05-28 11.49.03.png

Avg latency for MUTATE is 13+ seconds. SEARCH is not very fast too. I can say that we do simple updates against final_url_suffix with a proper update_mask and AdGroup queries with 5000 items in chunk take minutes.


The second big problem is the number of NTERNAL_ERROR (https://developers.google.com/google-ads/api/docs/best-practices/common-errors#internalapierror -- please fix docs). Sometimes we have 500 with JSON and sometimes 500 with HTML response like this:


<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 502 (Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>502.</b> <ins>That’s an error.</ins>
  <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That’s all we know.</ins>


This happens quite often.



What can we do? Is it a normal latency and errors number? What info do you need to make API faster and more stable?


Thanks in advance,

Sergei Kim


CoMagic



PS


Dear API Users, please feel free to share your experience with the new API.


Google Ads API Forum Advisor Prod

unread,
May 28, 2019, 3:51:04 PM5/28/19
to srg...@gmail.com, adwor...@googlegroups.com
Hi Sergei,

Thanks for reaching out. Are the internal errors something you started experiencing recently, or has it been happening since you started using the Google Ads API?

Thank you,
Ben Karl, Google Ads API Team

ref:_00D1U1174p._5001UAqob7:ref

reza haydare

unread,
May 28, 2019, 9:41:56 PM5/28/19
to AdWords API and Google Ads API Forum


در چهارشنبه 29 مهٔ 2019، ساعت 0:21:04 (UTC+4:30)، adsapiforumadvisor نوشته:

Sergei Kim

unread,
May 29, 2019, 2:09:41 AM5/29/19
to AdWords API and Google Ads API Forum
Hi Ben Karl,

To my mind, we are experiencing this error with large mutate requests (up to 5000 operations per request). And these requests have ridiculous latency. Can you provide some info on latency issues? Is this normal?

Sergei Kim

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 9:50:50 AM5/29/19
to srg...@gmail.com, adwor...@googlegroups.com
Hi Sergei,

The latency for mutation requests is a known issue and is actively being worked on. I expect some work to be released soon that should improve the performance. I'll follow up here with you to let you know when it's been released so you can try your requests again.

Thanks,
Ben, Google Ads API Team

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