Hello
Thank you Luis.
I tried coding as shown below using Platform, but an error will be returned.
error contents:
OperatorError.OPERATOR_NOT_SUPPORTED @ operations [1] .operand.criterion; trigger: 'CriterionId {id = 30000}', OperatorError.OPERATOR_NOT_SUPPORTED @ operations [2] .operand.criterion; trigger: 'CriterionId {id = 30001}
Coding content:
$ platform = new Platform ();
$ platform-> setId (30000);
// $ platform-> setPlatformName ('Desktop');
$ campaignCriteria [] = new CampaignCriterion ($ campaignId, null, $ platform);
// HighEndMobile
$ platform = new Platform ();
$ platform-> setId (30001);
// $ platform-> setPlatformName ('HighEndMobile');
$ campaignCriteria [] = new CampaignCriterion ($ campaignId, null, $ platform);
// Tablet
$ platform = new Platform ();
$ platform-> setId (30002);
// $ platform-> setPlatformName ('Tablet');
$ campaignCriteria [] = new CampaignCriterion ($ campaignId, null, $ platform);
$ operations = [];
foreach ($ campaignCriteria as $ campaignCriterion) {
$ operation = new CampaignCriterionOperation ();
$ operation-> setOperator (Operator :: ADD);
$ operation-> setOperand ($ campaignCriterion);
$ operations [] = $ operation;
}
$ result = $ campaignCriterionService-> mutate ($ operations);
Thank you
2018年7月12日木曜日 14時27分52秒 UTC+9 Luis Xander Talag (AdWords API Team):