Google ads api

60 views
Skip to first unread message

Hamza Shah

unread,
Apr 18, 2023, 7:49:54 AM4/18/23
to Google Ads API and AdWords API Forum
This api(https://googleads.googleapis.com/v13/customers:listAccessibleCustomers) Return all customer id list even disabled or deleted one, how can I just get active Ids?

Google Ads API Forum Advisor

unread,
Apr 18, 2023, 12:03:59 PM4/18/23
to hamzas...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.



how can I just get active Ids?

>> Upon checking, ListAccessibleCustomers (https://developers.google.com/google-ads/api/reference/rpc/v13/CustomerService#listaccessiblecustomers) request does not have required request body. Additionally, as per this guide (https://developers.google.com/google-ads/api/docs/account-management/listing-accounts) it is is one of the few requests in the Google Ads API that does not require you to specify a customer ID in the request, and will ignore any supplied login-customer-id.

That said, you will have to do post-processing on each of the returned values from this method and check if it is active.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2knaOf:ref
Reply all
Reply to author
Forward
0 new messages