Select adGroup count using AWQL

391 views
Skip to first unread message

aitkul

unread,
Jul 29, 2014, 11:12:35 AM7/29/14
to adwor...@googlegroups.com
Hello, is there a way to select the number of adGroups within a campaign using one AWQL query? At the moment I query all adGroups and count them iteratively, which takes really long for large campaigns.

Josh Radcliff (AdWords API Team)

unread,
Jul 29, 2014, 11:52:13 AM7/29/14
to adwor...@googlegroups.com
Hi,

Are you using the SOAP services to obtain these counts, e.g., AdGroupService? If so, I would recommend using reports instead, since report requests and responses are much more lightweight than their SOAP counterparts. Our guide on Structure Reports should be helpful here.

Cheers,
Josh, AdWords API Team

Anash P. Oommen (AdWords API Team)

unread,
Jul 30, 2014, 8:14:13 AM7/30/14
to adwor...@googlegroups.com
Hi,

You can also use the totalNumEntries field of the AdGroupPage to get this detail. https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupService.AdGroupPage#totalNumEntries

Cheers,
Anash P. Oommen,
AdWords API Advisor.


On Tuesday, July 29, 2014 11:12:35 AM UTC-4, aitkul wrote:
Reply all
Reply to author
Forward
0 new messages