How do you find available customer IDs?

21 views
Skip to first unread message

te...@segment.com

unread,
Jun 20, 2016, 10:07:00 PM6/20/16
to AdWords API Forum
What's the recommended approach to finding available customer IDs? I saw this example, which seemed to do what I'm intending, but it keeps erroring "AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED", which sounds to me like the chicken-and-egg problem (e.g. how to find customer IDs without a customer ID to start)?

Joyce Lava

unread,
Jun 21, 2016, 2:07:08 AM6/21/16
to AdWords API Forum
Hi,

You may use the manager account (MCC) ID as the clientCustomerId in the configuration file when running this example. This will return all client accounts under the MCC ID. In addition, you may also login to AdWords UI using the MCC ID and in the upper left corner dropdown will show the client accounts.

If there is no client account created under the MCC ID yet, you may use this example to create a client account. You need to set the MCC ID in the configuration file as the clientCustomerId when running this example. 

Best Regards,
Joyce, AdWords API Team

Dorian Kind

unread,
Jun 22, 2016, 4:07:05 AM6/22/16
to AdWords API Forum
For scenarios where you don't know the customer ID beforehand (e.g. if you're offering a web service to any Adwords user), you also might want to check out the CustomerService. Its "get" method will return the current, authenticated customer.
Reply all
Reply to author
Forward
0 new messages