Hello there!
Sorry for my bad english.
How to use targeting to device platform from Dot NET API?
I was set the checkbox Mobile and unchecked the checkboxes Computers and Tablet on the adwords web site page Campaign Settings >> Advanced settings >> Devices.
Then I executed my code
CampaignCriterionService campaignCriterionService = (CampaignCriterionService)_user.GetService(AdWordsService.v201609.CampaignCriterionService);
Selector criterionPageSelector = new Selector { fields = "BaseCampaignId,BidModifier,CampaignId,IsNegative,CampaignCriterionStatus".Split(',')
, paging = new Paging(), predicates = new[] {
new Predicate()
{
field = "CampaignId",
@operator = PredicateOperator.EQUALS,
values = new[] { campNetId }
} } };
CampaignCriterionPage campaignCriterionPage = new CampaignCriterionPage();
criterionPageSelector.paging.startIndex = offset;
criterionPageSelector.paging.numberResults = pageSize;
campaignCriterionPage = campaignCriterionService.get(criterionPageSelector);
var campPlatformCriterions = campaignCriterionPage.entries.Where(it => it.criterion is Platform).ToList();
Well and what I saw in campPlatformCriterions that there are all the platforms in the criterions: mobile, and tablet, and desctop.
I tried to remove platform criterions and the BatchJobOperation was ended success, unfortunatelly on the web site nothing changed.
Tell me please, how I can get real platform targetings and how I can change it?