Hi All
I'm trying to add a geo location using the following code ,and getting the
following error
CampaignCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand.
criterion
i'm not really sure what i'm doing wrong:
Criterion criterion = new Criterion();
criterion.setId(Long.parseLong("1012873")); // a dma of Anchorage, AK
criterion.setCriterionType("LOCATION");
CampaignCriterion Criterion = new CampaignCriterion();
Criterion.setCriterion(criterion);
Criterion.setCampaignId(Long.parseLong("246273610"));
CampaignCriterionOperation create = new CampaignCriterionOperation();
create.setOperand(Criterion);
create.setOperator(Operator.ADD);
CampaignCriterionOperation[] operations = new
CampaignCriterionOperation[] {create};
campaignCriterionService.mutate(operations);
i know that i do have a campaign id of "1012873" since i extracted it:
using data that i store in a hashBasedtable , that extracts campaign ID
from my existing account:
{246273610={30002=PLATFORM, 30000=PLATFORM, 30001=PLATFORM}, 242139610={1000
=LANGUAGE, 1023191=LOCATION, 21137=LOCATION, 30002=PLATFORM, 2376=LOCATION,
30000=PLATFORM, 2840=LOCATION, 30001=PLATFORM}, 246273490={30002=PLATFORM,
30000=PLATFORM, 30001=PLATFORM}}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/a1d4da2c-5db4-4f71-a915-71856c66d216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.