Get All Client Details under MCC account with PHP API

1,166 views
Skip to first unread message

Sarah Riddell

unread,
Jun 20, 2015, 1:47:19 AM6/20/15
to adwor...@googlegroups.com
Hi,

As i know from the answer of Josh, AdWords API Team  that we can get the client name using the name fields on CustomerService.Customer, or the name fields on ManagedCustomerService.ManagedCustomer.  CustomerService will give you information on the customer ID in the header, while ManagedCustomerService will give you information on all of the customers under an MCC.

To issue requests against specific client/customer IDs,we simply set the client customer ID dynamically as described in the auth.ini like  this

$user = new AdWordsUser();
$user->SetClientCustomerId('564-667-675');


But i need to know all the details of my clients under my MCC accounts. For Ex. i have 15 clients under my MCC account. i want to get details like this with one request
client name, client id, client creation date

client name    client id       create date
XXX              564-667-675    2014-04-05
YYY               564-999-675    2013-04-05
KKK              657-667-675    2014-09-05
VVV              564-009-675    2015-04-05
.....               ....................  ................
.....              .....................  ................
MDV              564-089-675    2005-04-05

So, my questions are

How to get ALL client details(client name, client id, client creation date) under my MCC account ?
May i need to pass any specific client id/ Root client id of MCC account in this case on auth.in  ?


Thanks,
Sany

Sarah Riddell

unread,
Jun 22, 2015, 1:11:38 AM6/22/15
to adwor...@googlegroups.com

Hi,

I just want to add some more clarification on my above question.

Now i get client id & client name under my MCC account by passing Root client id of MCC account in on auth.in & using ManagedCustomerService based on example GetAccountHierarchy.php for v201502

But i need the every client create date along with above information because I'm building a reporting service that queries the CAMPAIGN_PERFORMANCE_REPORT,ADGROUP_PERFORMANCE_REPORT,KEYWORD_PERFORMANCE_REPORT
based on that create date

Thanks,
Sany

Danial Klimkin

unread,
Jun 22, 2015, 8:32:42 AM6/22/15
to adwor...@googlegroups.com, sarahri...@gmail.com
Hello Sany,


Here is the full list of account details you can retrieve from ManagedCustomerService in one request:


The API doesn't allow to retrieve account creation date.


-Danial, AdWords API Team.

Sarah Riddell

unread,
Jun 23, 2015, 1:05:40 AM6/23/15
to adwor...@googlegroups.com
Hi Danial,

That's why i am using below approach to get account's  create date  as Kevin Winter Suggest, can you tell me that this is ok what i am doing now ? need your feedback on it.

https://groups.google.com/forum/#!searchin/adwords-api/creation$20date$20of$20adwords$20account/adwords-api/32TomWaxyd4/lcHix5Y2ceMJ

Thanks,
Sany

Danial Klimkin

unread,
Jun 23, 2015, 7:37:09 AM6/23/15
to adwor...@googlegroups.com, sarahri...@gmail.com
Hello Sany,


Yes, the approach of running a report and checking the first month with the impressions available seems reasonable.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages