Google AdWords API (python) Doesn't return data from Keywords Performance Report

64 views
Skip to first unread message

Alon Reznik

unread,
May 9, 2019, 5:09:46 PM5/9/19
to AdWords API and Google Ads API Forum
Hi There.
Recently, we're encountering a bug in our Google Ads python library, when trying to receive data of Keywords Performace response. The Google library just waiting over than 50 minutes to get data back and stuck the process.

Our report is:

```
{'reportName': 'KEYWORDS_PERFORMANCE_REPORT', 
 'selector': {
   'fields': [
    'AccountDescriptiveName', 'ActiveViewImpressions', 'AdGroupName', 'CampaignName', 'Clicks', 'Criteria', 'Impressions', 'ViewThroughConversions', 'Conversions', 'ConversionValue', 'Cost', 'VideoViews', 'Device', 'Date', 'AccountTimeZone'], 
  '  dateRange': {'max': '20190509', 'min': '20190507'}
}, 
   'reportType': 'KEYWORDS_PERFORMANCE_REPORT', 
    'dateRangeType': 'CUSTOM_DATE', '
downloadFormat': 'TSV'} 
```


Is there any way to run the reports using pagination, or see what can we do in these cases, when a report runs a very long time? 
How can we make these run to be quicker?


Thanks

Alon

googleadsapi...@google.com

unread,
May 10, 2019, 1:41:43 AM5/10/19
to adwor...@googlegroups.com, AdWords API and Google Ads API Forum
Hi Alon,

Thank you for reaching out.

Could you confirm if you are downloading a large amount of report? I asked this because this is the possible reason why the report runs for a long time and eventually will encounter timeout error. There is no explicit data size limit; however, due to a variety of factors, the server may return an error if the report is too large.

What you can do to refrain from experiencing this issue is to shorter the date range or use predicates to break up the report request into multiple and smaller requests.

Please let me know if you have further questions.

Regards,
Ejay
Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0688e4ee-89d5-4f4f-9668-461338a3520c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alon Reznik

unread,
Jun 3, 2019, 6:34:14 AM6/3/19
to AdWords API and Google Ads API Forum
Hi @ googleadsapi-forumadvisor
Thanks for your reply, and I'm sorry for my late (no notifications in google groups somehow).

As it seems, the report would be large. However, I would expect to get a proper timeout message or another error, and not to be stuck. 

Thanks

Alon

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2019, 12:53:36 AM6/4/19
to adwor...@googlegroups.com
Hi Alon,

I am a colleague of Ejay and I will be the one providing support.

With regard to your concern about timeout message, unfortunately, it is currently not supported to return the error message in AdWords API. It should return a general error, possibly about connection, or the process just stops. If you want to avoid the issue, I would suggest that you try to the suggestion that Ejay provided previously in this thread.

Please let me know if you have further concerns.

Regards,
Hiroyuki
Google Ads API Team

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