How to get keywords/ads count per adgroup?

262 views
Skip to first unread message

Justinas Ringaila

unread,
Jun 14, 2016, 8:36:54 AM6/14/16
to AdWords API Forum
Hi,

lets say I a customer that has 20 000 adgroups, I want to get keywords and ads for theses adgroups. I can only get this data in chunks because of the limits. How to get count of entities in one api request? response should return the following info:

adgroup: 1 has 20 ads and 50 keywords, 
adgroup: 2 has 56 ads and 81 keywords, 
etc.

What would be the most elegant way to achieve this?

by the way I'm using .net client library.

thanks.

Vishal Vinayak (Adwords API Team)

unread,
Jun 14, 2016, 4:44:29 PM6/14/16
to AdWords API Forum

Hi Justinas,

There is no way to get the counts directly from an adgroup.

Normally, you can fetch the ads in an adgroup using the AdGroupAdService.get and then count the number of ads. Similarly you can use the AdGroupCriterionService.get to fetch the keywords in an adgroup. 

For an account with a large number of ads and keywords, I would recommend using the Adgroup Performance Report and Keywords Performance Report to fetch the all the results in a single request. 


Regards,
Vishal, Adwords API Team
Reply all
Reply to author
Forward
0 new messages