[ERROR] AdWords API - operations[0].operand.ad.id

22 views
Skip to first unread message

Geunho Lee

unread,
Feb 23, 2021, 2:32:13 AM2/23/21
to AdWords API and Google Ads API Forum
JAVA에서 AdGroupAdServiceInterface를 사용하여 AD를 등록하려고 합니다.

그러나, EntityNotFound.INVALID_ID가 발생합니다.

ClientCustomerId의 AdGroupId를 사용했습니다.

<?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>0005bbfba01eb1060a624d4308011335</requestId>
            <serviceName>AdGroupAdService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>363</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.ad.id; trigger:'&lt;null&gt;']</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
                    <message>[EntityNotFound.INVALID_ID @ operations[0].operand.ad.id; trigger:'&lt;null&gt;']</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound">
                        <fieldPath>operations[0].operand.ad.id</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>ad</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>id</field>
                        </fieldPathElements>
                        <trigger>&lt;null&gt;</trigger>
                        <errorString>EntityNotFound.INVALID_ID</errorString>
                        <ApiError.Type>EntityNotFound</ApiError.Type>
                        <reason>INVALID_ID</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Google Ads API Forum Advisor Prod

unread,
Feb 23, 2021, 11:35:15 AM2/23/21
to egn...@gmail.com, adwor...@googlegroups.com

Hi Geunho,

Thank you for reaching out. The EntityNotFound.INVALID_ID indicates that you were referencing the ID of an entity from a different account or you were referencing the ID of an entity that was removed. Please have it corrected and make the API call again.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


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