Attempts to Add OfflineDataUpload using STORE_SALES_UPLOAD_FIRST_PARTY return OfflineDataUploadError.INVALID_CONVERSION_TYPE

71 views
Skip to first unread message

Steve Wilhelm

unread,
Dec 7, 2017, 7:34:14 PM12/7/17
to AdWords API Forum
We are attempting to upload OfflineData as a First party using the following SOAP XML

   <SOAP-ENV:Header>
      <tns:RequestHeader>
         <tns:clientCustomerId xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708">6********</tns:clientCustomerId>
         <tns:developerToken xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708">f**********</tns:developerToken>
         <tns:userAgent xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708">Euclid AdAdmin (AwApi-Python, googleads/9.0.0, Python/2.7.10)</tns:userAgent>
         <tns:validateOnly xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708">false</tns:validateOnly>
         <tns:partialFailure xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708">false</tns:partialFailure>
      </tns:RequestHeader>
   </SOAP-ENV:Header>
   <ns0:Body>
      <ns2:mutate>
         <ns2:operations>
            <ns1:operator>ADD</ns1:operator>
            <ns2:operand>
               <ns2:externalUploadId>456</ns2:externalUploadId>
               <ns2:uploadType>STORE_SALES_UPLOAD_FIRST_PARTY</ns2:uploadType>
               <ns2:uploadStatus/>
               <ns2:uploadMetadata>
                  <ns2:StoreSalesUploadCommonMetadata xsi:type="ns2:FirstPartyUploadMetadata">
                     <ns2:loyaltyRate>0.012345</ns2:loyaltyRate>
                     <ns2:transactionUploadRate>0.012345</ns2:transactionUploadRate>
                  </ns2:StoreSalesUploadCommonMetadata>
               </ns2:uploadMetadata>
               <ns2:offlineDataList>
                  <ns2:StoreSalesTransaction>
                     <ns2:userIdentifiers>
                        <ns2:userIdentifierType>EXTERNAL_USER_ID</ns2:userIdentifierType>
                        <ns2:value>id123</ns2:value>
                     </ns2:userIdentifiers>
                     <ns2:transactionTime>20171205 175300 America/Los_Angeles</ns2:transactionTime>
                     <ns2:transactionAmount>
                        <ns2:money>
                           <ns1:microAmount>200000000</ns1:microAmount>
                        </ns2:money>
                        <ns2:currencyCode>USD</ns2:currencyCode>
                     </ns2:transactionAmount>
                     <ns2:conversionName>ConversionTest</ns2:conversionName>
                  </ns2:StoreSalesTransaction>
               </ns2:offlineDataList>
               <ns2:failureReason/>
            </ns2:operand>
         </ns2:operations>
      </ns2:mutate>
   </ns0:Body>
</SOAP-ENV:Envelope>

Returns the following error

 ListReturnValue.Type = "OfflineDataUploadReturnValue"
   value[] =
      (OfflineDataUpload){
         uploadId = 11909
         externalUploadId = 456
         uploadType = "STORE_SALES_UPLOAD_FIRST_PARTY"
         uploadStatus = "UNKNOWN"
         partialDataErrors[] =
            (OfflineDataUploadError){
               fieldPath = None
               trigger = None
               errorString = "OfflineDataUploadError.INVALID_CONVERSION_TYPE"
               ApiError.Type = "OfflineDataUploadError"
               reason = "INVALID_CONVERSION_TYPE"
            },
      },
 }

The Conversion named ConversionTest was created in the Google Adwords console







Vincent Racaza (AdWords API Team)

unread,
Dec 8, 2017, 12:55:11 AM12/8/17
to AdWords API Forum
Hi Steve,

The OfflineDataUploadError.INVALID_CONVERSION_TYPE means that the conversion action/tracker is not existing in your account, or in your scenario, since this is already existing based on your screenshot, then, there's a possibility that the conversion tracker was not enabled at the time of the click. Also, since the conversion tracker is in your MCC account, can you confirm if you are uploading the conversions in your MCC account? If you are setting the clientCustomerId as your client account in your request, and not as manager account, then there's a possibility that the client account was not used for cross-account conversion tracking at the time of the click. 

Please check the validation rules for the OfflineDataUpload. If you believe that the INVALID_CONVERSION_TYPE error should have not generated on your end based on the validation rules, then can you please provide your SOAP request and response logs with your actual clientCustomerid so I can further investigate? Please use the Reply privately to author option.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages