Open RRSchweitzer opened 5 years ago
I discovered what the main issue is that the objects within the result variable are Zeep objects and they are not serializable. The problem resolved by importing Zeep and using its helper functions to serialize the results. I believe this is a workaround though.
I think the suds zeep might also be causing an issue with checking results. Currently, in all the example scripts there is an if 'results' in response:..if no results then it exits but currently this is the result that comes back...
{ 'totalResultSetSize': 26L, 'startIndex': 27500L, 'results': [] }
The results are always there and therefore will need to check the length of the array.
I went from googleads 10 to the newest version of ad manager and now a simple get of all networks associated with a service email account does not work anymore. I get a serialization error with the response. This was not an issue before upgrading. If I downgrade again everything goes back to normal. Is there something I need to do? I've even printed the entire object I'm attempting the json.dumps on and if I copy that into a new script and place it into a json.dumps function it works so there doesn't appear to be anything wrong with the list I'm passing in. This also make it very hard to debug this issue. Error:
services.py