GetService "ManagedCustomerService" - Python

46 views
Skip to first unread message

jr...@simplepart.com

unread,
Aug 17, 2017, 12:28:01 PM8/17/17
to AdWords API Forum

Greetings,

I've noticed that the Python version of GetService "ManagedCustomerService" does not work with a version greater than v201702. I have seen some examples that show it working with version v201708. Could this be a bug?

NOTE: I can get the list of customers using v201702 but it seems strange to not work with the latest version.

This is the code I'm using...
    managed_customer_service = adwords_client.GetService(
        'ManagedCustomerService',
        version='v201708'
    )

Error Message:

GoogleAdsValueError: Unrecognized version for the AdWords API. Given: v201708 

Supported: ['v201607', 'v201609', 'v201702']

My other call to GetReportDownloader is working with v201708.

def get_report_downloader(adwords_client):
    return adwords_client.GetReportDownloader(version='v201708')

Thank you for your time.

-Joe

Shwetha Vastrad (AdWords API Team)

unread,
Aug 17, 2017, 3:48:47 PM8/17/17
to adwor...@googlegroups.com
Hi Joe, 

You need to update your client library to "googleads Python Client Library v6.1.0" or higher since support for AdWords API v201708 was added in v6.1.0. The latest version of the Python client library is 7.0.0. Once you perform this upgrade, you'll be able to use the API version v201708. If you still encounter this error, could you provide the library version being used? 

Thanks,
Shwetha, AdWords API Team.

jr...@simplepart.com

unread,
Aug 18, 2017, 9:02:44 AM8/18/17
to AdWords API Forum
You are correct...my development environment was behind on the client library version. Thank you for the quick reply and help.


On Thursday, August 17, 2017 at 3:48:47 PM UTC-4, Shwetha Vastrad (AdWords API Team) wrote:
Hi Joe, 

You need to update your client library to "googleads Python Client Library v6.1.0" or higher since support for AdWords API v201609 was added in v6.1.0. The latest version of the Python client library is 7.0.0. Once you perform this upgrade, you'll be able to use the API version v201708. If you still encounter this error, could you provide the library version being used? 
Reply all
Reply to author
Forward
0 new messages