Hey Aswini -
At least with the java client, I don't believe that you actually have to 
download all of the ads. Instead, set up your selector, and then do 
something like:
        Paging paging = new Paging();
        paging.setNumberResults(1); //make this as small as possible since 
we don't really want to retrieve the ads
        paging.setStartIndex(0);
        selector.setPaging(paging);
        AdGroupAdPage page = getAdGroupAdService(acctId).get( selector );
        int numberOfAds = page.getTotalNumEntries();

I haven't used this for ads, but I use this technique for other objects and 
it works great.

HTH -
mm

On Tuesday, August 19, 2014 8:12:00 AM UTC-5, Aswini wrote:
>
> Hi Josh, 
>
> I followed 1st way ( AdGroupAdService.get 
> <https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService#get>
>  ). 
> Through this I downloaded total Text Ads of all campaigns it's took almost 
> 3 hours time. I don't want to download any Text Ads of particular AdGroup. 
> I need only count of TextAds for particular Adgroups. How can i get it 
> this. 
>
>
> On Tuesday, August 19, 2014 6:32:49 PM UTC+5:30, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> There are (at least) two ways you could do this:
>>
>> 1. Perform an AdGroupAdService.get 
>> <https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService#get>
>>  (or AdGroupAdService.query 
>> <https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService#query>)
>>  
>> and filter by AdType 
>> <https://developers.google.com/adwords/api/docs/reference/v201406/AdGroupAdService.Ad#Ad.Type>
>>  equal 
>> to *TEXT_AD*. Each client library 
>> <https://developers.google.com/adwords/api/docs/clientlibraries> contains 
>> an example named *GetTextAds* that does just that in the 
>> examples/basic_operations folder.
>>
>> 2. Use the Ad Group Performance Report 
>> <https://developers.google.com/adwords/api/docs/appendix/reports#ad> with 
>> a filter on *AdType * of *TEXT_AD*, and include zero impressions 
>> <https://developers.google.com/adwords/api/docs/guides/zero-impression-reports>
>> .
>>
>> Cheers,
>> Josh, Adwords API Team
>>
>> On Tuesday, August 19, 2014 2:40:40 AM UTC-4, Aswini wrote:
>>>
>>> Hi
>>>
>>> How can i get Text Ads count for particular AdGroups. Is there any 
>>> Adwords api class providing this option ? 
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7b8510a4-8771-41b8-814e-e7b58a96c236%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to