Customer client ID

37 views
Skip to first unread message

Brayan Dimas

unread,
Sep 8, 2020, 4:16:03 AM9/8/20
to AdWords API and Google Ads API Forum
Where do i get the clientCustomerId in google ads api ? 

Андрей Ласевичев

unread,
Sep 8, 2020, 5:53:08 AM9/8/20
to AdWords API and Google Ads API Forum
$id = 'id customer or null'
$customerService = $this->adWordsServices->get($this->session, CustomerService::class);
$customers = $customerService->getCustomers($id);
foreach ($customers as $item) {
$result[] = [
'Id' => $item->getCustomerId(),
'Name' => $item->getDescriptiveName(),
'СurrencyCode' => $item->getCurrencyCode(),
'DateTimeZone' => $item->getDateTimeZone(),
'isManagerAccount' => $item->getCanManageClients(),
];
}

вторник, 8 сентября 2020 г. в 13:16:03 UTC+5, braya...@gmail.com:

Андрей Ласевичев

unread,
Sep 8, 2020, 6:06:00 AM9/8/20
to AdWords API and Google Ads API Forum
sorry, $id not used

вторник, 8 сентября 2020 г. в 14:53:08 UTC+5, Андрей Ласевичев:

Google Ads API Forum Advisor Prod

unread,
Sep 9, 2020, 1:10:12 PM9/9/20
to alase...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us. You can find the customerclientIDs by using the customer or customer client reports. You can also find this by logging into the Google Ads UI and clicking the "?" button in the upper right hand corner. Let me know if you have further questions.

Thank you,

Google Logo
Bryan Li
Google Ads API Team
 


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