Hi Josh, thanks for the infos.

Il giorno giovedì 22 maggio 2014 22:00:38 UTC+2, Josh Radcliff (AdWords API 
Team) ha scritto:
>
> Hi,
>
> The API services such as CampaignService, AdGroupService, etc. are for 
> maintaining the objects in your AdWords account. When you need performance 
> statistics for those objects you'll need to use the reporting 
> feature<https://developers.google.com/adwords/api/docs/guides/reporting>
> .
>
> For your use case, I would recommend reading about zero impression 
> reports<https://developers.google.com/adwords/api/docs/guides/zero-impression-reports>
>  and 
> considering one of the simpler formats such as CSV, TSV (see the bottom of 
> this 
> page <https://developers.google.com/adwords/api/docs/guides/reporting>).
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, May 22, 2014 4:44:58 AM UTC-4, Emiliano Busiello wrote:
>>
>> I am a beginner on Adwords so I may make some terminology mistakes here.
>>
>> As far as I understand the structure is Client -> Campaign -> AdGroup -> 
>> Keywords/Ads, what I would like to do is get all Ads that have impressions 
>> equal to 0, at the moment I'm able to retrieve an Adgroup and with getAd 
>> retrieve the ad, problem is that only some fields are available then (no 
>> clicks, impressions, cost, etc.). This is my (Scala) code at the moment: 
>>
>> val adwordsCredentials = new 
>> OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile().build().generateCredential()
>> val adwordsSession = new 
>> AdWordsSession.Builder().fromFile().withOAuth2Credential(adwordsCredentials).build()
>> val adgroupService = new AdWordsServices().get(adwordsSession, 
>> classOf[AdGroupAdServiceInterface])
>> def getAds() = {
>>   val builder = new SelectorBuilder()
>>   val selector = builder
>>     .fields("Id", "Name", "Status", "AdGroupId")
>>     .offset(0)
>>     .limit(100)
>>     .build()
>>
>>   val results = adgroupService.get(selector)
>>
>>   if (results.getEntries() != null) {
>>     results.getEntries().foreach( row => {
>>       println(row.getAd.getId)
>>     })
>>   }}
>>
>> Some questions now arises, is it possible to directly query for ads 
>> (bypassing the AdGroup) and use a predicate like .in() for example as where 
>> clause, if not, how can I get Ads properties like this?  I digged the 
>> Ad.java class and there are no getter for the properties I'm looking 
>> for.
>>
>> I also read about creating reports which (hopefully) should have the fields 
>> I'm asking for, but my main goal is to query the api every 5 or 6 hours and 
>> store do something with the data, reports manipulation (as XML I guess) is 
>> the last option I want to think about. 
>> In truth this seems a fairly easy operation to do and all the APIs have this 
>> kind of possibilities, is using reports the only chance I have?
>>
>> I also posted this as a SO question 
>> <http://stackoverflow.com/questions/23788547/adwords-api-select-ads-with-empty-impression>
>>  if interested.
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to