Hi Brian,
Do not create a Language, try creating a Criterion instead. For example,
like this:
// Get the CampaignCriterionService.
CampaignCriterionService campaignCriterionService =
(CampaignCriterionService) user.GetService(
AdWordsService.v201109.CampaignCriterionService);
CampaignCriterion campaignCriterion = new CampaignCriterion();
campaignCriterion.campaignId = *******;
campaignCriterion.criterion = new Criterion();
campaignCriterion.criterion.id = 1002; //FRENCH
CampaignCriterionOperation operation = new
CampaignCriterionOperation();
operation.@operator = Operator.REMOVE;
operation.operand = campaignCriterion;
try {
CampaignCriterionReturnValue retVal =
campaignCriterionService.mutate(
new CampaignCriterionOperation[] {operation});
if (retVal != null && retVal.value != null) {
// Do your stuff here.
}
} catch (Exception ex) {
Console.WriteLine("Failed to remove targeting. Exception says
\"{0}\"", ex.Message);
}
Cheers,
Anash P. Oommen,
AdWords API Advisor.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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