Hi ZekeZ,

How are you attempting to do step 4 in your list?  You can remove 
CampaignCriterion objects by passing a collection of 
CampaignCriterionOperations to CampaignCriterionService.mutate with operand 
= the CampaignCriterion and operator = REMOVE.  I just confirmed this with 
one of my test accounts.

Similarly, for step #5 you could add the new Locations and Proximities 
via CampaignCriterionOperations with operator = ADD, as shown in the 
AddCampaignTargetingCriteria<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201402/targeting/AddCampaignTargetingCriteria.java>
 example 
in each client library's v201402/targeting examples folder.  You may also 
want to check out the 
GetCampaignTargetingCriteria<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201402/targeting/GetCampaignTargetingCriteria.java>
 example 
in the same folder, as it demonstrates how to select CampaignCriterion 
objects by criterion type.

Cheers,
Josh, AdWords API Team

On Monday, April 14, 2014 11:25:39 AM UTC-4, ZekeZ wrote:
>
> Trying to dynamically GeoTarget our campaigns based on the locations of 
> our accounts. Currently using v201306, but will move to another version if 
> appropriate.
>
> Here's the scenario:
>
> 1) Read account information from internal customers database table - 
> successful
> 2) Access Adwords API and retrieve all existing campaigns - successfully 
> doing that now using the CampaignService and CampaignCriterionService 
> 3) Retrieve all existing Locations and Proximities - successfully doing 
> that now using CampaignCriterionService
> 4) Remove all existing existing Locations and Proximities - no luck
> 5) Dynamically repopulate the Locations and Proximities based on current 
> internal customer data - no luck
>
> Has anyone successfully performed this scenario.
>
> Any advice / suggestions would be greatly appreciated.
>
> ZekeZ
>

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