SeedAdGroupIdSearchParameter encounters INVALID_SEARCH_PARAMETERS in python

43 views
Skip to first unread message

Sendoh Chang

unread,
Sep 18, 2015, 8:39:16 AM9/18/15
to AdWords API Forum
Hi, I just play around the python api to generate keyword ideas based on adGroupId, and the console shows 
suds.WebFault: Server raised fault: '[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.searchParameters[1].adGroupId.adGroupId]'

Did anyone know which part I set incorrectly?

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

'requestedAttributeTypes': ['KEYWORD_TEXT', 'SEARCH_VOLUME',
'CATEGORY_PRODUCTS_AND_SERVICES'],
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}
}

Sendoh

unread,
Sep 18, 2015, 10:44:45 AM9/18/15
to AdWords API Forum

Got the issue. We can only get the adgroup "directly" under the account rather than indirectly.

Umesh Dengale

unread,
Sep 18, 2015, 11:15:24 AM9/18/15
to AdWords API Forum
Hello,

I am glad that you found the solution. Let us know if you need help with any other issues.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages