OfflineConversionError.INVALID_CONVERSION_TYPE

34 views
Skip to first unread message

mahmoud adel

unread,
Aug 15, 2019, 8:36:00 PM8/15/19
to adwor...@googlegroups.com
i do not know i get this error although i am using correct conversion action that i created on my manager account to upload conversions for multiple client accounts
and here is the error log
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>XXX-XXX-XXXX</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.6.0, Common-Java/4.6.0, Axis/1.4, Java/1.8.0_144, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <googleClickId>EAIaIQobChMI4snBqpr54wIVUBAbCh2T-AKLEAEYASAAEgLDs_D_BwE</googleClickId>
                    <conversionName>scp</conversionName>
                    <conversionTime>20190815 235501 EET</conversionTime>
                    <conversionValue>0.0</conversionValue>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

[15 Aug 2019 23:26:01,733-soapXmlLogger:INFO:main] SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
            <requestId>0005902e85363ad00ae9e811c708dfa0</requestId>
            <serviceName>OfflineConversionFeedService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>178</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[OfflineConversionError.INVALID_CONVERSION_TYPE @ operations[0].operand]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
                    <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>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <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>

Request failed due to ApiException. Underlying ApiErrors:
  Error 0: OfflineConversionError{apiErrorType=OfflineConversionError, errorString=OfflineConversionError.INVALID_CONVERSION_TYPE, fieldPath=operations[0].operand, fieldPathElements=[FieldPathElement{field=operations, index=0}, FieldPathElement{field=operand}], reason=INVALID_CONVERSION_TYPE, trigger=}

Google Ads API Forum Advisor Prod

unread,
Aug 15, 2019, 10:30:28 PM8/15/19
to adwor...@googlegroups.com
Hi Mahmoud,

Thank you for sharing your logs, however, I had to edit your initial post as it contained private information of your account. You may check out our forum posting guidelines for future posts.

Moving forward to your issue, you can refer to the the INVALID_CONVERSION_TYPE documentation to learn more about its causes. To narrow down the cause of the error, could you confirm if you have set up cross-account conversion tracking?

I asked because upon checking the SOAP logs you included, I could see that you used a MCC account in your request header. If you have indeed completed the set up for cross-account conversion tracking, then using your MCC as the clientCustomerId and your MCC's OAuth2 credentials should be correct and your request should be successful.

That being said, if you have not completed the set up, could you identify which account the "scp" conversion belongs to? You can use the ConversionTrackerService.get() for each of your client accounts to do so. Once you have done so, you may retry your request using that account's ID as the clientCustomerId and use OAuth2 credentials which has access to that account. Let me know if this works.

Should the issue persist, you may send to me privately, using the Reply privately to author option, the updated SOAP request and response logs so I can further investigate.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UEJGZ5:ref
Reply all
Reply to author
Forward
0 new messages