Hi there,

We are trying to upload our conversion via the api.

We can create new conversion via the api without a problem but when we want 
to populate it we get an 
error OfflineConversionError.INVALID_CONVERSION_TYPE

If we query for the available channels we get this response : 

{:total_num_entries=>1,
 :page_type=>"ConversionTrackerPage",
 :entries=>
  [
   {:id=>20673018,
    :name=>"OrseddContracts",
    :status=>"ENABLED",
    :category=>"SIGNUP",
    :viewthrough_lookback_window=>30,
    :is_product_ads_chargeable=>false,
    :product_ads_chargeable_conversion_window=>30,
    :ctc_lookback_window=>90,
    :counting_type=>"MANY_PER_CLICK",
    :default_revenue_value=>0.0,
    :always_use_default_revenue_value=>true,
    :conversion_tracker_type=>"UploadConversion",
    :xsi_type=>"UploadConversion"}
  ]
}

This is the request (removed api token) :

<?xml version="1.0" encoding="UTF-8"?>
  <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:wsdl="https://adwords.google.com/api/adwords/cm/v201402"; 
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
  <env:Header>
    <wsdl:RequestHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <userAgent>demo-rails (AwApi-Ruby/0.12.0, Common-Ruby/0.9.3, 
Savon/1.2.0, ruby/2.1.1, HTTPI/1.1.1, net_http)</userAgent>
      <developerToken>OURAPITOKEN</developerToken>
    </wsdl:RequestHeader>
  </env:Header>
  <env:Body>
    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <operations>
        <operator>ADD</operator>
        <operand>
          <googleClickId>CJ3y_v76sr4CFbTm7Aod7SMAqA</googleClickId>
          <conversionName>OrseddContracts</conversionName>
          <conversionTime>20140601 003706 Etc/GMT</conversionTime>
          <conversionValue>1</conversionValue>
        </operand>
      </operations>
    </mutate>
  </env:Body>
</env:Envelope>

Response : 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <requestId>0004fadb465ecf380ae56e0411005c7a</requestId>
      <serviceName>OfflineConversionFeedService</serviceName>
      <methodName>mutate</methodName>
      <operations>1</operations>
      <responseTime>278</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[OfflineConversionError.INVALID_CONVERSION_TYPE @ 
operations[0].operand]</faultstring>
      <detail>
        <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
          <message>[OfflineConversionError.INVALID_CONVERSION_TYPE @ 
operations[0].operand]</message>
          
<ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="OfflineConversionError">
            <fieldPath>operations[0].operand</fieldPath>
            <trigger></trigger>
            
<errorString>OfflineConversionError.INVALID_CONVERSION_TYPE</errorString>
            <ApiError.Type>OfflineConversionError</ApiError.Type>
            <reason>INVALID_CONVERSION_TYPE</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Could you please tell me what i'm doing wrong ?

Thanks in advance, 

Gerard.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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/d/optout.

Reply via email to