How to retrieve customer Id for specific client?

38 views
Skip to first unread message

Filip Pećanac

unread,
Nov 17, 2021, 10:10:46 AM11/17/21
to AdWords API and Google Ads API Forum
Hi,

Is there a simple way to get Customer Account ID under my Manager Account via Google Ads API?

I have used queries to retrieve Campaign and Ad Group IDs, but I am a little bit stuck here.

Thanks in advance.

Ps. If you could provide an example of the query it would be great :)

Regards,
Filip


Google Ads API Forum Advisor

unread,
Nov 17, 2021, 9:59:59 PM11/17/21
to filip....@oneassessment.com, adwor...@googlegroups.com

Hello Filip,

Thank you for reaching out to us.

As for your concern on getting the Customer ID under your Manager account, you can simply check on this Get Account Hierarchy guide.

Hope this helps.

Regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2R9pP8:ref

Filip Pećanac

unread,
Nov 18, 2021, 4:59:30 AM11/18/21
to AdWords API and Google Ads API Forum
Hi Mark,

Thanks for the response, but I think you might have misunderstood me :)

To better explain my issue, I will use the following example.

Let's say I create a Manager Account with certain ID that later serves as LoginCustomerId. After that, i use CreateCustomer.php to create a new Customer Account under this Manager Account with the previously set LoginCustomerId. In this step I set a descriptive name for this new Account as well as other fields (Currency code, timezone, etc.). 

My question is how can I get the ID of this newly created Customer Account? 

I suppose I should use the Account name and the Manager Account ID to build some kind of query, but I am not sure how to achieve that.

Thanks in advance!

Google Ads API Forum Advisor

unread,
Nov 18, 2021, 1:26:15 PM11/18/21
to filip....@oneassessment.com, adwor...@googlegroups.com
Hi Filip,

If the customer creation request is successful, you should receive the resource name of the newly created customer in the response log. You can also search for client customers using the customer_client resource.

Regards,
Matt
Google Ads API Team



Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Matt
Google Ads API Team
 


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