Can we request huge amount of keywords?

100 views
Skip to first unread message

Hashimoto

unread,
Aug 6, 2018, 6:00:42 AM8/6/18
to AdWords API and Google Ads API Forum
Hi,

I have stared to use Adwords API. According to official document, we can request many search keywords at same time. For example,

  selector['searchParameters'] = [{

   'xsi_type': 'RelatedToQuerySearchParameter',

   'queries': ['google','google C++','google python']

 }]


I have a few questions related to requesting search keywords from python.

Q1. 
Can we request  huge amount of keywords(1~100k KWs)  at same time? This mean a size of 'queries' array at inside selector['searchParameters'become 1~100k. 

Q2.
According to following document, API server count 100 search KWs as 1 operation. So if we request 1000 KWs at same time, is number of counted operations 10 operations?


Best,
Kimiaki Hashimoto

Milind Sankeshware (AdWords API Team)

unread,
Aug 6, 2018, 3:19:00 PM8/6/18
to AdWords API and Google Ads API Forum
Hi Kimiaki,

Please find my inline response below:
  1. Can we request huge amount of keywords(1~100k KWs) at same time? This mean a size of 'queries' array at inside selector['searchParameters'] become 1~100k. 
  1. The maximum number of results for TargetingIdeaService.get() is 700. That said, for stats, you can request maximum 700 keywords at a time. For keywords idea, you can request maximum 200 keywords at a time. For more information please refer to the guide on limits . 

  1. According to following document, API server count 100 search KWs as 1 operation. So if we request 1000 KWs at same time, is number of counted operations 10 operations?
  1. You could either request for 700 or 200 seed keywords (depending on if your request is for STATS or IDEAS) in one API operation. This will be counted as 1 API operation. But in order to make API calls for 1000 keywords, you will need to split the request into as many API calls and each will be treated as 1 API operation. For instance, if you are trying to get keyword IDEAS, you will need to have 5 API calls to accommodate the 1000 keywords. This will be counted as 5 API operations.
Let me know if you have any further questions.

Thanks,
Milind, AdWords API Team

Hashimoto

unread,
Aug 6, 2018, 11:52:49 PM8/6/18
to AdWords API and Google Ads API Forum
Hi Milind,

Thank you for quick response. If I want to get monthly average volume of 100k keywords, I need to divide 100k KW into many keyword groups(100k/700~143groups) and use TargetingIdeaService.get() with STATS frequently. In this case how can I avoid rate limit error? According to official document , Google recommended to use BatchJobSerive , mutate()  etc. But TargetingIdeaService do not have mutate operation. 

Cheers,
Kimiaki 



Hashimoto

unread,
Aug 6, 2018, 11:59:46 PM8/6/18
to AdWords API and Google Ads API Forum
My only idea is insert sleep function into my python code. 

1. done 1st get() operation 
2. sleep several second 
3. do 2nd get() opearation
....



2018年8月7日火曜日 12時52分49秒 UTC+9 Hashimoto:

Milind Sankeshware (AdWords API Team)

unread,
Aug 7, 2018, 1:44:55 PM8/7/18
to AdWords API and Google Ads API Forum
Hi Kimiaki,

The BatchJobSerive won't help you as you are looking for TargetingIdeaService.get(). This is most applicable on mutate() calls. In your case, for 100k keywords, you will need to run 143 operation. There are two types of rate limit. Depending on what type of rate limits you are getting, you may need to handle the rate limit error. Please find the details below: 
  1. DEVELOPER scope: If you have a developer token with basic access and is facing rate limit error with DEVELOPER scope, you can submit this form to request for standard access. With standard access, you will be able to execute an unlimited number of API operations and report downloads per day. For more information please refer to this guide.
  2. ACCOUNT scope: If you encounter rate limits with ACCOUNT scope, you will need to wait for at-least the specified time in the "retryAfterSeconds" parameter and retry in their request. The only workaround to handle the rate limit errors at ACCOUNT scope is to wait and retry. For more information please refer to this guide.
You may use sleep function in between two operations.

Hashimoto

unread,
Aug 7, 2018, 9:42:02 PM8/7/18
to AdWords API and Google Ads API Forum
Thank you Milind !! 

2018年8月8日水曜日 2時44分55秒 UTC+9 Milind Sankeshware (AdWords API Team):
Reply all
Reply to author
Forward
0 new messages