Campaign targeting is different in the new version.  For example to set 
language = English:

        final Language language = new Language();
        language.setId(LANGUAGE_ENGLISH);

        final CampaignCriterion campaignCriterion = new CampaignCriterion();
        campaignCriterion.setCampaignId(yourCampaignIdOnAdWords);
        campaignCriterion.setCriterion(language);

        final CampaignCriterionOperation operation = 
newCampaignCriterionOperation();
        operation.setOperand(campaignCriterion);
        operation.setOperator(Operator.ADD); 

Similarly, location has its own Location class and you need specify the 
location as an ID, instead of as a string.  I believe USA = 2840.

Jim

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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