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 
<https://developers.google.com/adwords/api/docs/appendix/reports/adgroup-performance-report>
 and Keywords Performance Report 
<https://developers.google.com/adwords/api/docs/appendix/reports/keywords-performance-report>
 to 
fetch the all the results in a single request. 


Regards,
Vishal, Adwords API Team


On Tuesday, June 14, 2016 at 8:36:54 AM UTC-4, Justinas Ringaila wrote:
>
> 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.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d353e41b-964f-4345-ab29-41421e4cfbed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to get keywo... Justinas Ringaila
    • Re: How to ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to