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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/aedcc222-2d79-4e56-a858-3f84354e616f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to