It appears that, despite this:

https://developers.google.com/adwords/api/docs/reference/v201302/CampaignCriterionService.Platform

"type - This field can be selected using the value "CriteriaType". This 
field can be filtered on. This field is read only and should not be set. If 
this field is sent to the API, it will be ignored. Indicates that this 
instance is a subtype of Criterion. Although this field is returned in the 
response, *it is ignored on input* and cannot be selected. Specify xsi:type 
instead."

The field is *not* ignored on input but instead throws that error. Removing 
this fixed the problem:

<ns2:type>PLATFORM</ns2:type>


On Tuesday, July 16, 2013 10:57:37 AM UTC-5, John Bliss wrote:
>
> OK. That seems to work for a SET, but when I attempt to do an ADD (SEE 
> below), I'm getting, 
> "CampaignCriterionError.INVALID_OPERATION_ENHANCED_CAMPAIGN @ 
> operations[0].operand.criterion" What am I doing wrong? (Keep in mind, I'm 
> submitting the request below *after* the Campaign is already enhanced.)
>
> <ns1:Envelope xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201302"; 
> xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/";>
>     <ns1:Header>
>         <ns2:RequestHeader>
>             <ns2:authToken>[redacted]</ns2:authToken>
>             <ns2:clientCustomerId>[redacted]</ns2:clientCustomerId>
>             <ns2:developerToken>[redacted]</ns2:developerToken>
>             <ns2:userAgent>[redacted]</ns2:userAgent>
>         </ns2:RequestHeader>
>     </ns1:Header>
>     <ns1:Body>
>         <ns2:mutate>
>             <ns2:operations xsi:type="CampaignCriterionOperation" 
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='
> https://adwords.google.com/api/adwords/cm/v201302'>
>                 <ns2:operator>
>                     ADD
>                 </ns2:operator>
>                 <ns2:operand>
>                     <ns2:campaignId>[redacted]</ns2:campaignId>
>                     <ns2:criterion xsi:type="Platform" xmlns:xsi='
> http://www.w3.org/2001/XMLSchema-instance' xmlns='
> https://adwords.google.com/api/adwords/cm/v201302'>
>                         <ns2:id>
>                             30001
>                         </ns2:id>
>                         <ns2:type>
>                             PLATFORM
>                         </ns2:type>
>                         <ns2:platformName>
>                             HighEndMobile
>                         </ns2:platformName>
>                     </ns2:criterion>
>                     <ns2:bidModifier>
>                         0.0
>                     </ns2:bidModifier>
>                 </ns2:operand>
>             </ns2:operations>
>         </ns2:mutate>
>     </ns1:Body>
> </ns1:Envelope>
>
> On Wednesday, June 26, 2013 11:03:49 PM UTC-5, Takeshi Hagikura (AdWords 
> API Team) wrote:
>>
>> Hello John,
>>
>> Please use 
>> CampaignCriterionService<https://developers.google.com/adwords/api/docs/reference/v201302/CampaignCriterionService>
>>  to 
>> update device bid adjustments.
>> You can find a code 
>> example<https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201302/campaignmanagement/SetBidModifier.java>
>>  updating 
>> the modifier. 
>>
>> Best,
>> - Takeshi, AdWords API Team 
>>
>> On Thursday, June 27, 2013 12:48:54 AM UTC+9, John Bliss wrote:
>>>
>>> Currently, I can use the AdWords website to view a Campaign, click 
>>> Settings (tab), Devices, and then edit Device Bid adjustment.
>>>
>>> When looking at 
>>> https://developers.google.com/adwords/api/docs/reference/v201302/CampaignService.Campaign
>>>  I 
>>> do not see how I'd use the API to edit those Device Bid adjustments.
>>>
>>> Please advise.
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to