UNEXPECTED_INTERNAL_API_ERROR occurs when a remaketing list contains > 400 rules , created by API

33 views
Skip to first unread message

Jian Xu

unread,
Oct 27, 2015, 12:55:39 PM10/27/15
to AdWords API Forum
Hi, 

I've met an InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, when i use the Adwords API to create a remarketing list which contains a list of String rules (the relation between the rules is OR).  The test is done with an test account.

After multi tests, i've found that if the rules is less then 400, it could pass. Otherwise , adwords will always return an internal error. 

Below is the soap msg , with 464 StringRuleItems:

<soapenv:Body>
            <operations>
                <ns7:operator xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201509">ADD</ns7:operator>
                <operand xmlns:ns8="https://adwords.google.com/api/adwords/rm/v201509" xsi:type="ns8:ExpressionRuleUserList">
                    <ns8:name>992_TARGET_20151027030959</ns8:name>
                    <ns8:rule>
                        <ns8:groups>
                            <ns8:items>
                                <ns8:StringRuleItem>
                                    <ns8:key>
                                        <ns8:name>cid</ns8:name>
                                    </ns8:key>
                                    <ns8:op>EQUALS</ns8:op>
                                    <ns8:value>170610</ns8:value>
                                </ns8:StringRuleItem>
                            </ns8:items>
                        </ns8:groups>
                        <ns8:groups>
                            <ns8:items>
                                <ns8:StringRuleItem>
                                    <ns8:key>
                                        <ns8:name>cid</ns8:name>
                                    </ns8:key>
                                    <ns8:op>EQUALS</ns8:op>
                                    <ns8:value>24017</ns8:value>
                                </ns8:StringRuleItem>
                            </ns8:items>
                        </ns8:groups>

.....

soap response : 
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
            <requestId>00052316a22c7af00a0de655a507a112</requestId>
            <serviceName>AdwordsUserListService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>15710</responseTime>
        </ns2: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>
                <ns2:ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201509" xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201509">
                    <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>operations[0].operand.rule</fieldPath>
                        <trigger/>
                        <errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</errorString>
                        <ApiError.Type>InternalApiError</ApiError.Type>
                        <reason>UNEXPECTED_INTERNAL_API_ERROR</reason>
                    </errors>
                </ns2:ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Do you have any idea about that? Thanks!

Jian Xu

unread,
Oct 28, 2015, 6:00:15 AM10/28/15
to AdWords API Forum
Find a solution, we could use logicalUserList to separate these rules. 
Reply all
Reply to author
Forward
0 new messages