OfflineConversion - How can I access to faults ?

41 views
Skip to first unread message

antonio....@jaraxa.com

unread,
Oct 30, 2015, 9:00:49 AM10/30/15
to AdWords API Forum

Hi all,

Is there a way to obtain the reasons why an offline conversion upload fails, for example TOO_RECENT_CLICK or UNAUTHORIZED_USER 

I have SOAP body responses like following : 

    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[OfflineConversionError.UNAUTHORIZED_USER @ operations[0].operand]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201509">
                    <message>[OfflineConversionError.UNAUTHORIZED_USER @ 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/>
                        <errorString>OfflineConversionError.UNAUTHORIZED_USER</errorString>
                        <ApiError.Type>OfflineConversionError</ApiError.Type>
                        <reason>UNAUTHORIZED_USER</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>

I´m using the reference example for upload offline conversions : 

OfflineConversionFeedReturnValue offlineConversionReturnValue = offlineConversionFeedService.mutate(new OfflineConversionFeedOperation[] {offlineConversionOperation});

But when there is an exception this object is null, so I have no idea how to access to the errors.

Thanks in advance,
Antonio



Anthony Madrigal

unread,
Oct 30, 2015, 4:45:50 PM10/30/15
to AdWords API Forum
Hi Antonio,

This reference page provides all of the errors you can get while using the OfflineConversionFeedService. 

Regards,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages