Hello,

I'm getting the following error while using the "TargetingIdeaService" API:

[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, 
retryAfterSeconds=30>]

I get this error if I do more than 5 request per minute, which seems very 
few... I also added a 10s sleep between requests.

I tried to change the request to have less requestedAttributeTypes but I 
still seem to get the error.

Here is a section of the code:

targeting_idea_service = client.GetService(
'TargetingIdeaService', version='v201802')

# Construct selector object and retrieve related keywords.
selector = {
'ideaType': 'KEYWORD',
'requestType': 'STATS'
}

selector['requestedAttributeTypes'] = [
'KEYWORD_TEXT', 'SEARCH_VOLUME', 'COMPETITION', 'AVERAGE_CPC'
]

offset = 0
selector['paging'] = {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}

selector['searchParameters'] = [{
'xsi_type': 'RelatedToQuerySearchParameter',
'queries': [keyword]
}]

# Language setting (optional).
selector['searchParameters'].append({
# The ID can be found in the documentation:
# https://developers.google.com/adwords/api/docs/appendix/languagecodes
'xsi_type': 'LanguageSearchParameter',
'languages': [{'id': '1000'}]
})

# Network search parameter (optional)
selector['searchParameters'].append({
'xsi_type': 'NetworkSearchParameter',
'networkSetting': {
'targetGoogleSearch': True,
'targetSearchNetwork': False,
'targetContentNetwork': False,
'targetPartnerSearchNetwork': False
}
})

# more_pages = True
# while more_pages:
page = targeting_idea_service.get(selector)


Any ideas?

All the best




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/c4166ba9-b693-43d4-a737-d29a04af1f63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to