Google Adwords. How get report for all accounts?

63 views
Skip to first unread message

Kostya Solovichenko

unread,
Jun 15, 2016, 4:59:12 PM6/15/16
to AdWords API Forum
I use AD_PERFORMANCE_REPORT in Adwords Api, but this type returning me report for one account (I do not know why it is so) . I want report for all my accounts.
I tried use CRITERIA_PERFORMANCE_REPORT, ACCOUNT_PERFORMANCE_REPORT,CAMPAIGN_PERFORMANCE_REPORT  ‎and several.
All results returning report for one account. 
Sorry for my bad English

Anthony Madrigal

unread,
Jun 15, 2016, 5:06:25 PM6/15/16
to AdWords API Forum
Hi Kostya,

No worries. Your English isn't bad at all! There is currently no way to get reports for all accounts in one request. In order to get a report for multiple accounts, you need to submit a separate request for each account.

Please let us know if you have any other questions.

Regards,
Anthony
AdWords API Team

Kostya Solovichenko

unread,
Jun 15, 2016, 5:17:10 PM6/15/16
to AdWords API Forum
Yes. I send query on Adwords API with parameter: "$selector->predicates[] = new Predicate('AccountDescriptiveName', 'IN', array('216-392-3724'));". But returning empty data.  
Maybe it will happen because of the name? I send 216-392-3724 and 2163923724.
I can not change the name in this situation.

четверг, 16 июня 2016 г., 0:06:25 UTC+3 пользователь Anthony Madrigal написал:

Anthony Madrigal

unread,
Jun 15, 2016, 5:27:36 PM6/15/16
to AdWords API Forum
Hello,

The AccountDescriptiveName should be the account name, not the client customer Id. So in your case, it should be 2163923724. If you are running the report from the manager level, you can set the client account Id as shown in this line.

Please note that with our PHP client library, they should be run from the command line. 

If you are still experiencing issues, please send me your report definition via reply privately to author.

Kostya Solovichenko

unread,
Jun 15, 2016, 5:38:16 PM6/15/16
to AdWords API Forum
How can discover, I running the report from the manager level or not?

четверг, 16 июня 2016 г., 0:27:36 UTC+3 пользователь Anthony Madrigal написал:

Kostya Solovichenko

unread,
Jun 15, 2016, 5:49:29 PM6/15/16
to AdWords API Forum
Oh! I understood. Apparently i  running the report from the manager level. I got to get report for second company. VERY THANK YOU!!!!!!!
But as the programmatically get all ids my accounts?

четверг, 16 июня 2016 г., 0:27:36 UTC+3 пользователь Anthony Madrigal написал:

Kostya Solovichenko

unread,
Jun 15, 2016, 5:50:36 PM6/15/16
to AdWords API Forum
If I could, I would have kissed!!

четверг, 16 июня 2016 г., 0:27:36 UTC+3 пользователь Anthony Madrigal написал:

Anthony Madrigal

unread,
Jun 15, 2016, 7:45:36 PM6/15/16
to AdWords API Forum
Hi,

Well I'm glad I was able to be such help! You can get all the accounts under your manager account by first setting your clientCustomerId in your auth.ini file. Once you do that, you can run the file GetAccountHierarchy.php.

Cheers,
Anthony
AdWords API Team

Kostya Solovichenko

unread,
Jun 16, 2016, 7:27:24 AM6/16/16
to AdWords API Forum
Oh. Thank you, Anthony. You really helped me!


четверг, 16 июня 2016 г., 2:45:36 UTC+3 пользователь Anthony Madrigal написал:
Reply all
Reply to author
Forward
0 new messages