Failed to Remove FeedItemTarget

39 views
Skip to first unread message

yhu...@marinsoftware.com

unread,
Sep 12, 2018, 6:26:31 AM9/12/18
to AdWords API and Google Ads API Forum
Hi,

I after upgrade to v201806, I use FeedItemTargetService to manipulate FeedItemTarget objects. However for some reason I can not remove an existing FeedItemCriterionTarget. 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201806" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>524-837-1008</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>marinsoftware.com:marin-google-api-coordinator:C02PR2FYG8 (AwApi-Java, AdWords-Axis/3.15.0, Common-Java/3.15.0, Axis/1.4, Java/1.8.0_112, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>REMOVE</operator>
                <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806" xsi:type="ns2:FeedItemCriterionTarget">
                    <ns2:feedId>41083103</ns2:feedId>
                    <ns2:feedItemId>11245594748</ns2:feedItemId>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

and the response is
<?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/v201806">
            <requestId>000575a9e477d6580a626710100c31bf</requestId>
            <serviceName>FeedItemTargetService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>350</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;(InternalApiErro]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201806">
                    <message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;(InternalApiErro]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="InternalApiError">
                        <fieldPath/>
                        <trigger/>
                        <errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</errorString>
                        <ApiError.Type>InternalApiError</ApiError.Type>
                        <reason>UNEXPECTED_INTERNAL_API_ERROR</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Thanks in advance for any help 

Best,
Yi Huang

Bharani Cherukuri (AdWords API Team)

unread,
Sep 12, 2018, 3:34:33 PM9/12/18
to AdWords API and Google Ads API Forum
Hello Yi, 

If you're looking to remove the FeedCriterionTarget, you will need to specify the Criterion type that you intend to remove. Please find the attached sample SOAP logs as a reference. Can you give this a try and let me know if that resolves the issue?

Thanks,
Bharani, AdWords API Team
Sample_Logs.rtf
Reply all
Reply to author
Forward
0 new messages