SearchGoogleAdsRequest multiple accounts

26 views
Skip to first unread message

Todd Evans

unread,
Mar 9, 2021, 8:44:03 PM3/9/21
to AdWords API and Google Ads API Forum
We are using code like the following to make requests but it only handles 1 account at time.
How can we perform the same gaql for multiple accounts(up to 150 accounts) for one of our clients.

We feel making these kinds queries many times in a short span of time if highly inefficient.
In the Reporting UI we can select multiple accounts and we want to replicate that feature.

SearchGoogleAdsRequest searchGoogleAdsRequest = new SearchGoogleAdsRequest()
{
                    CustomerId = CustomerID,
                    Query = gaql
 };

 var result = GoogleAdsServiceClient.Search(searchGoogleAdsRequest).ToList();

Google Ads API Forum Advisor Prod

unread,
Mar 10, 2021, 8:21:09 PM3/10/21
to toddev...@gmail.com, adwor...@googlegroups.com
Hi Todd,

Thank you for posting your concern.

I am afraid that Google Ads API reporting can only be requested per client account unlike in the report UI which has the ability to retrieve data and statistics in the MCC account.

With this, I suggest to continue to use the current implementation of the code that processes the report per account. Also, this option could be helpful in getting the client accounts and use the values that will be returned in the current code.

However, our team has already raised a feature request for this, subject for review. For now, you may follow our blog as we will post there any relevant updates about this feature and Google Ads API.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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