adspygoogle 1.1.7 Python Client Library support for v201402

46 views
Skip to first unread message

Martin

unread,
Mar 6, 2014, 12:44:27 PM3/6/14
to adwor...@googlegroups.com
I've been trying to use adspygoogle 1.1.7 downloaded (uploaded yesterday with the release of the new API version) from PyPI just as the extracted tarball with v201402
Although this worked fine in the past It won't work for me unless I modify the validity checks as I show at the bottom.

I hope this is useful for someone else.
 
adspygoogle.adwords. __init__
Line 47
From:
API_VERSIONS = ('v201306', 'v201309')
To:
API_VERSIONS = ('v201306', 'v201309', 'v201402')

This should make v201402 the default version if none is specified.

adspygoogle.adwords.AdWordsSanityCheck
Line 29-32/33
From:
_VERSION_SERVER_MAP = {
'v201306': ('https://adwords.google.com',),
'v201309': ('https://adwords.google.com',),
}
To:
_VERSION_SERVER_MAP = {
'v201306': ('https://adwords.google.com',),
'v201309': ('https://adwords.google.com',),
'v201402': ('https://adwords.google.com',),
}

Adding this line avoids the validation error.

Cheers!
Martin 

Martin

unread,
Mar 6, 2014, 1:39:47 PM3/6/14
to adwor...@googlegroups.com
Please disregard.

adspygoogle 1.1.8 has been released now. This is no longer necessary.

Cheers!
Martin

Ray Tsang (AdWords API Team)

unread,
Mar 6, 2014, 6:27:38 PM3/6/14
to adwor...@googlegroups.com
Yup!

Please use our latest client libraries.  Just a note - for many of the client libraries, adding a version or re-using the older version's generated stubs will not work as there may be plenty of WSDL changes.

Lastly, don't forget to review the release note and announcement.

Cheers,

Ray
Reply all
Reply to author
Forward
0 new messages