INVALID ID and empty trigger field when an adword was deleted.

74 views
Skip to first unread message

Daniel Santonja

unread,
May 31, 2016, 6:40:24 AM5/31/16
to AdWords API Forum
Hi all,

I encountered a problem using the traffic estimator service in which I received and ENTITY_NOT_FOUND.INVALID_ID but the trigger field was empty so I coudn't find the id responsible.
 After talking with the marketing guys apparently they had deleted an adgroup so I tested it and indeed that was the id that was causing trouble. My question is, how can I prevent this in the future, I shouldn't be altering the code every time there is a deletion of a keyword or adgroup, but I cannot prepare myself against the error because the message won't tell me which Id has been deleted, is this a bug or is there a workaround for this.

I am using Java API v201603, TrafficGeneratorService

Error: faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode:
 faultString: [EntityNotFound.INVALID_ID @ ]
 faultActor:
 faultNode:
 faultDetail:
    {https://adwords.google.com/api/adwords/o/v201603}
    ApiExceptionFault:
                        <ns2:message>[EntityNotFound.INVALID_ID @ ]</ns2:message>
                        <ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
                        <ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:EntityNotFound">
                                <ns2:fieldPath/>
                                <ns2:trigger/>
                                <ns2:errorString>EntityNotFound.INVALID_ID</ns2:errorString>
                                <ns2:ApiError.Type>EntityNotFound</ns2:ApiError.Type>
                                <ns2:reason>INVALID_ID</ns2:reason>
                        </ns2:errors>

Thank you and best regards.

Joyce Lava

unread,
May 31, 2016, 12:33:44 PM5/31/16
to AdWords API Forum
Hi Daniel,

You may use AdGroupService.get operation to get all existing adGroup and pass the adGroupId on the TrafficEstimatorService. The same can be done for getting the existing criterion using AdGroupCriterionService.get operation.

Please let me know if it helps answer the question above.

Cheers,
Joyce, AdWords API Team

Daniel Santonja

unread,
Jun 3, 2016, 7:52:49 AM6/3/16
to AdWords API Forum
We use another source for the Ids, but I guess I can use your answer as a way of further filtering.
Thank you!

Joyce Lava

unread,
Jun 3, 2016, 10:59:52 AM6/3/16
to AdWords API Forum
Hi Daniel,

Glad to hear that I was able to give help. Please let us know if you need any other help in using AdWords API.
Reply all
Reply to author
Forward
0 new messages