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)
}
}