Re: sample AddCampaignTargetingCriteria.java doesn't work

2012-02-12 Thread Anash P. Oommen
Hi Nachomac, Here are the rules to keep in mind when targeting in AdWords: 1. If you don't target anything, the default is All. 2. If you want to target only specific things, then add those targets to the list. 3. You cannot remove an item that you are not targeting. This also means that if you

Re: sample AddCampaignTargetingCriteria.java doesn't work

2012-02-09 Thread nachomac
This is the code that fires that error message: CampaignCriterionServiceInterface campaignCriterionService = user.getService(AdWordsService.V201109.CAMPAIGN_CRITERION_SERVICE); List operations2 = new ArrayList(); Platform mobile = ne

Re: sample AddCampaignTargetingCriteria.java doesn't work

2012-02-09 Thread nachomac
Hello, I tried using NegativeCampaignCriterion excluding Platform Mobile, but I still get the following error: [CampaignCriterionError.CANNOT_EXCLUDE_CRITERIA_TYPE @ operations[0].operand.criterion; trigger:'PLATFORM'] What am I missing here? On 9 feb, 17:17, mm wrote: > Yeah, there's no way t

Re: sample AddCampaignTargetingCriteria.java doesn't work

2012-02-09 Thread mm
Yeah, there's no way that example is going to work. When the campaign is created, adwords adds all 3 platform criteria to it. In order to get the desired result in that example, the desktop platform should be removed, rather than adding the mobile and tablet platforms. Slightly more discussion here

Re: sample AddCampaignTargetingCriteria.java doesn't work

2012-02-08 Thread nachomac
Basically I want to target just PCs and Tablets, but I'm unable to do it. On 8 feb, 13:18, nachomac wrote: > Hello, I'm trying this > example:http://code.google.com/p/google-api-adwords-java/source/browse/trunk/... > just changing the campaign_id and user. It sets the geographical > criterion, b

sample AddCampaignTargetingCriteria.java doesn't work

2012-02-08 Thread nachomac
Hello, I'm trying this example: http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201109/AddCampaignTargetingCriteria.java just changing the campaign_id and user. It sets the geographical criterion, but not the platforms. After running the program, the platforms for the