Method not found exception in CustomerService get function

88 views
Skip to first unread message

Imran Tufail

unread,
Nov 10, 2016, 11:08:10 AM11/10/16
to AdWords API Forum

hi,
i am facing problem while calling get function on CustomerService. I am using python library for googleads version 4.7.0. Here is my call to api

adwords_client.GetService('CustomerService').get() and the Exception is {MethodNotFound}Method not found: 'CustomerService.CustomerServiceInterfacePort.get'

This get() function is working on googleads version 4.1.0.

regards
Imran tufail

Shwetha Vastrad (AdWords API Team)

unread,
Nov 10, 2016, 2:40:34 PM11/10/16
to AdWords API Forum
Hi Imran,

The get() method of CustomerService was removed in AdWords API version v201607. You need to use getCustomers() instead. Please see the updated Managing Accounts guide for details. 

The googleads Python Client Library v4.1.0 corresponds to API version v201605, which has CustomerService.get() method. In googleads Python Client Library v4.7.0, you need to specify the version(v201605) in the GetService() method to use the CustomerService.get() method.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages