I'm tring to get all google-ads account under my google user, and I want to 
get the status field which would show if the account is canceled.

I'm followed customer_client 
<https://developers.google.com/google-ads/api/fields/v2/customer_client>, 
and tried with below codes:

 


credentials = google.oauth2.credentials.Credentials(**credentials_dict_lb)
client = google.ads.google_ads.client.GoogleAdsClient(credentials, 
GG_DEVELOP_TOKEN)

ga_service = client.get_service('GoogleAdsService', version='v2')

query = ('SELECT customer_client.id, '
         'customer_client.descriptive_name,'
         'customer_client.resource_name, '
         # 'customer_client.client_customer '
         'customer_client.currency_code,'
         'customer_client.hidden, '
         # 
         'customer_client.level, '
         'customer_client.time_zone '
         'FROM customer_client')

# results1 = customer_service.search(query)
results = ga_service.search(customer_id='1871151278',query=query)

for item in results:
    print(item)


But it seems there's no status related field, What field it should be ? And 
How Can I get the account status as I metioned above?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/0b0c2db3-1b5c-4cd5-b6e3-fd8a79cabf30%40googlegroups.com.

Reply via email to