Hello Wesley, 

You will be able to only target the OperatingSystemVersion using the 
CampaignCriterionService 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService>
 by 
selecting the Criteria as OperatingSystemVersion 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.OperatingSystemVersion>.
 
It is currently not possible to exclude this criteria through the API. 
Also, please note that this is only targetable for Display campaigns. 
Targeting for other campaigns or excluding this might result in an error. 
You may refer to the operating system versions from here 
<https://developers.google.com/adwords/api/docs/appendix/codes-formats#mobile-platforms>
 and 
also take a look at the Criteria Usage 
<https://developers.google.com/adwords/api/docs/appendix/criteria-usage> table 
as a reference. To remove the OperatingSystemVersion campaign criteria, 
please find the SOAP request below:

<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201806";> 
<operations> 
<operator>REMOVE</operator> 
<operand> 
<campaignId>xxxxxxxx</campaignId> 
<criterion xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806"; 
xsi:type="ns2:OperatingSystemVersion"> 
<ns2:id>630161</ns2:id> 
</criterion> 
</operand> 
</operations>

If you continue to have an issue with this, could you please share the 
complete API SOAP logs, so I can take a look. 

Regards,
Bharani, AdWords API Team

On Thursday, August 23, 2018 at 5:08:44 AM UTC-4, [email protected] wrote:
>
> Hello,
>
> How can I exclude all versions of iOS in my campaign without explicitly 
> removing every criterionID for an iOS version. My operation looks something 
> like this:
>
>         {
>                 'xsi_type': 'CampaignCriterionOperation',
>                 'operator': 'REMOVE',
>                 'operand': {
>                     'xsi_type': 'CampaignCriterion',
>                     'campaignId': campaign_id,
>                     'criterion': {
>                         'xsi_type': 'OperatingSystemVersion',
>                         'id': 630161,
>                         'name': 'iOS',
>                         'osMajorVersion': 2,
>                         'osMinorVersion': 0,
>                         'operatorType': 'GREATER_THAN_EQUAL_TO'
>                     }
>                 }
>             }
>
> but I can't the following error:
>
>     NewEntityCreationError.TEMP_IDS_NOT_ALLOWED
>
> Thanks,
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1e9a8248-76f4-46ed-a904-af9098c9dcb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... wesley
    • ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to