Hi Nikola,
I want to make sure that I understand correctly. On the campaign, you're
trying to set the checkbox next to *Computers* in *Settings -> Devices *via
the API?
Cheers,
Nadine, AdWords API Team
On Monday, November 30, 2015 at 6:57:44 AM UTC-5, Nikola Jordanovski wrote:
>
> Code :
>>
> $campaignCriterionService =
> $this->GetService("CampaignCriterionService", ADWORDS_VERSION);
>
> // Create Mobile Platform. The ID can be found in the documentation.
> // https://developers.google.com/adwords/api/docs/appendix/platforms
> $platform = new Platform();
> $platform->id = $platform_type; // HighEndMobile = 30001
>
> // Create criterion with modified bid.
> $criterion = new CampaignCriterion();
> $criterion->campaignId = $campaignId;
> $criterion->criterion = $platform;
>
> // Create operation.
> $operation = new CampaignCriterionOperation();
> $operation->operand = $criterion;
> $operation->operator = 'SET';
>
> $operations = array($operation);
>
> // Make the mutate request.
>
> $result = $campaignCriterionService ->mutate($operations);
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2c31fcb9-f191-43c0-be1a-a425e3f24379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.