Hi

19 views
Skip to first unread message

Leonel Pedraza

unread,
May 9, 2023, 6:22:20 AM5/9/23
to Google Ads API and AdWords API Forum
I need to get the suspended accounts from the google ads api. I am trying to obtain the list of accounts with their statuses and they all appear active. What do you recommend me to do it?

Google Ads API Forum Advisor

unread,
May 9, 2023, 12:04:20 PM5/9/23
to leopedr...@gmail.com, adwor...@googlegroups.com

Hello Leonel,

Welcome to Google Ads API Support team. Thank you for reaching out to us.

As per your use case, you can get the list of suspended accounts through API by utilizing the customer's report (https://developers.google.com/google-ads/api/fields/v13/customer) in API. Below is a sample query that should return the required result.

SELECT customer.resource_name, customer.id, customer.status FROM customer WHERE customer.status = 'SUSPENDED'


Let us know if the above help or if you have further questions.

Regards,

Google Logo Google Ads API Team


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