I found instructions for how to log the SUDS request and response from a blog post: https://blogs.it.ox.ac.uk/inapickle/2011/05/15/using-logging-to-debug-what-suds-is-sending-across-the-wire/
I logged and inspected what the test app was sending. verify_only was set to True. It was set in the $HOME/googleads.yaml file, so AdWords was verifying the request and sending back no data. When I edited the googleads.yaml file, I must have uncommented the verify_only parameter. With the verify_only parameter set to False, it works as expected and I get keyword suggestions back from AdWords. Peter Oliquino, thank you for the help. On Wednesday, March 8, 2017 at 2:28:27 PM UTC-8, Steve R. Hastings wrote: > > My company has been using AdWords and I have a copy of the credentials > (developer token, etc.) that other people are using. I'm trying to run the > example code from the Python library for getting keyword suggestions. > > When I try to run this: examples/adwords/v201609/optimization/ > get_keyword_ideas.py > > I am getting this exception: TypeError: argument of type 'NoneType' is not > iterable > > > It seems clear that the example expects to get a dictionary back from the > targeting_idea_service.get() and instead it is getting a Python None > object back. > > I've tried get_keyword_ideas.py from other versioned subdirectories. I > get a versioning error from the one in v201702, but otherwise I get the > same None issue. > > How can I successfully get keyword suggestions using Python? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/7d2df79c-915e-4f57-b6e7-d5a526bd234c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
