How to get parallel report for a manager account from php library ??

53 views
Skip to first unread message

testg...@gmail.com

unread,
Nov 16, 2017, 4:07:52 AM11/16/17
to AdWords API Forum
Hello guys, I am looking for downloading the customers reports under the manager account from parallel report downloader.php but I am getting an error "AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED" Can any one please show me the right way to do it...

Bharani Cherukuri (AdWords API Team)

unread,
Nov 16, 2017, 2:52:12 PM11/16/17
to AdWords API Forum
Hello, 

The CLIENT_CUSTOMER_ID_IS_REQUIRED error is encountered, if the client customer ID is not specified in the request header. Can you make sure that you specify the customer ID of the Manager account as the client customer ID in the adsapi_php.ini file to download all ad hoc reports for all the accounts directly under this manager account. You can take a look at our code sample here for reference. Let me know if you have any other questions.

Thanks,
Bharani, AdWords API Team

Bharani Cherukuri (AdWords API Team)

unread,
Nov 17, 2017, 10:54:39 AM11/17/17
to AdWords API Forum
Hello, 

Customer IDs are associated with the both client accounts and the manager accounts. If you're using a Java sample, you may refer to this particular line of code sample which retrieves all accounts that are directly under the manager account. Once the report definition is created, then the report download task will be performed for each account in the list. For each successful report download, you will be able to log the clientCustomerId associated with the report. You may refer to this code snippet here as a reference.

Regards,
Bharani, AdWords API Team

On Thursday, November 16, 2017 at 4:07:52 AM UTC-5, testg...@gmail.com wrote:

Bharani Cherukuri (AdWords API Team)

unread,
Nov 20, 2017, 11:21:06 AM11/20/17
to AdWords API Forum
Hello, 

Thank you for confirming this. If you're using the PHP client library, you may refer to this particular line of the code sample which retrieves all accounts that are directly under the manager account. Once the report definition is created, the reports will be downloaded for each account in the list. You may refer to the iteration logic here for each report download under the manager account. For each successful report download, you will be able to log the clientCustomerId associated with the report. You may refer to the PHP code sample here as a reference. Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team

On Thursday, November 16, 2017 at 4:07:52 AM UTC-5, testg...@gmail.com wrote:

Bharani Cherukuri (AdWords API Team)

unread,
Nov 21, 2017, 9:48:23 AM11/21/17
to AdWords API Forum
Hello, 

Could you enable logging and provide us the complete SOAP request and response logs along with the MCC ID used, so I can take a look and assist you further? You may refer to this guide on how to enable logging. Please use Reply privately to author option while responding.

Regards,
Bharani, AdWords API Team

On Thursday, November 16, 2017 at 4:07:52 AM UTC-5, testg...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages