Hey Everyone! 
I am trying to migrate a script that someone else did in version 14.0.1 of 
google-ads to version 16.0.0 I am encountering this 
error: 'CustomerServiceClient' object has no attribute 'get_customer' I am 
not familiar at all with the google ads api and I could not find anything 
in the documentation, please help me. 
The code is this:

def _get_accounts(self):
        self._accounts = []
        seed_customer_ids = []
        query = """
            SELECT
                customer_client.client_customer,
                customer_client.level,
                customer_client.manager,
                customer_client.descriptive_name,
                customer_client.currency_code,
                customer_client.time_zone,
                customer_client.id
            FROM customer_client
            where customer_client.level <= 1"""
        customer_service = self._client.get_service("CustomerService")
        googleads_service = self._client.get_service("GoogleAdsService")

        customer_resource_names = 
(customer_service.list_accessible_customers().resource_names)

        for customer_resource_name in customer_resource_names:
*I think it breaks here*
            customer = customer_service.get_customer(
                resource_name=customer_resource_name
            )
            # print(customer.id)
            seed_customer_ids.append(customer.id)
        

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/436a39f4-6eb6-40f6-b8f5-4d6ecf72949bn%40googlegroups.com.

Reply via email to