Search Customers

22 views
Skip to first unread message

Perry Hertler

unread,
May 22, 2019, 3:51:53 AM5/22/19
to AdWords API and Google Ads API Forum
Is it possible to use the GoogleAds service to search for customers?

The first argument to search is a customer-id, which seems to always limit the results to just the associated customer.

CUSTOMER_QUERY = <<~QUERY
SELECT
customer.id,
customer.manager,
customer.descriptive_name,
customer.test_account
FROM
customer
QUERY

client.configure do |config|
config.login_customer_id = manager_customer_id
end

service = client.service(:GoogleAds)

# since the first argument requires a "customer_id", is it possible to search for more than one customer?
service.search(customer_id.to_s, CUSTOMER_QUERY, page_size: PAGE_SIZE)

This email may contain information that is privileged, confidential, or proprietary and is intended solely for the named addressee. If you are not the addressee, or if it appears that you have received this email in error, please advise me immediately by reply email, do not disclose, copy, or distribute the contents, and immediately delete the message and any attachments from your system. Thank you.

Google Ads API Forum Advisor Prod

unread,
May 22, 2019, 4:51:27 AM5/22/19
to adwor...@googlegroups.com
Hi Perry,

I'm afraid that getting all the clients under a specific MCC's hierarchy (CustomerClientService ) is currently not supported in the Google Ads API. You may only be able to retrieve information on the client ID you specified in the resource_name.

You may follow our blog for updates.

Thanks and regards,
Peter
Google Ads API Team

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