Hi,

When we are trying to add campaign criterion with id=630252 we are getting 
error from api :[CriterionError.CANNOT_TARGET_CRITERION @ 
operations[0].operand.criterion; trigger:'630252']
also when such criterion is created using adwords interface we can not see 
it with api. This suggests that this criterion can not be handled with api, 
on the other side 
https://developers.google.com/adwords/api/docs/appendix/mobileplatforms 
suggests 
that it is supprted.

SOAP Request:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Header>
    <ns1:RequestHeader 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0" 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201209";>
      __HEADER_REMOVED__
    </ns1:RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201209";>
      <operations>
        <operator>ADD</operator>
        <Operation.Type>CampaignCriterionOperation</Operation.Type>
        <operand>
          <campaignId>__CAMPIGN_ID_REMOVED__</campaignId>
          <criterion xsi:type="ns2:OperatingSystemVersion" 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201209";>
            <ns2:id>630252</ns2:id>
            <ns2:Criterion.Type>OperatingSystemVersion</ns2:Criterion.Type>
          </criterion>
          <CampaignCriterion.Type>CampaignCriterion</CampaignCriterion.Type>
        </operand>
      </operations>
    </mutate>
  </soapenv:Body>
</soapenv:Envelope>

SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201209";>
      <requestId>0004d6a0393d0b800ae53cdb00006e5d</requestId>
      <serviceName>CampaignCriterionService</serviceName>
      <methodName>mutate</methodName>
      <operations>0</operations>
      <responseTime>193</responseTime>
      <units>0</units>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[CriterionError.CANNOT_TARGET_CRITERION @ 
operations[0].operand.criterion; trigger:'630252']</faultstring>
      <detail>
        <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201209";>
          <message>[CriterionError.CANNOT_TARGET_CRITERION @ 
operations[0].operand.criterion; trigger:'630252']</message>
          
<ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xsi:type="CriterionError" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
            <fieldPath>operations[0].operand.criterion</fieldPath>
            <trigger>630252</trigger>
            
<errorString>CriterionError.CANNOT_TARGET_CRITERION</errorString>
            <ApiError.Type>CriterionError</ApiError.Type>
            <reason>CANNOT_TARGET_CRITERION</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>


Radosław Pociecha

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to