Hi Jose,

You can get the list of all campaign targets for a given campaign as
shown in 
http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201003/GetAllCampaignTargets.java.
To get NetworkCoverageType values alone, you can modify the loop like:

if (page.getEntries() != null) {
 for (TargetList targetList : page.getEntries()) {
   if (targetList instanceof NetworkTargetList) {
     NetworkTargetList networkTgtList = (NetworkTargetList)
targetList;
     for (NetworkTarget nwTarget: networkTgtList.getTargets()) {
       NetworkCoverageType value = nwTarget.getNetworkCoverageType();
       // do your stuff here.
     }
   }
 }
}

See the following links for more details:

http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTargetService.NetworkTarget.html
http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTargetService.NetworkTargetList.html
http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTargetService.CampaignTargetPage.html

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Sep 3, 12:33 pm, Jose II <sa...@ota.com.au> wrote:
> Hello World everyone,
>
> I'm newbie from Google Adwords API. Can someone give me logic code
> sample how to get the NetworkCoverageType value from Campaigns list in
> Java, the logic for example in Google Adwords Editor, as you can see
> in Table : campaign, etc..., and search.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to