Adgroup Ad ID Invalid

108 views
Skip to first unread message

Mike-Indiana

unread,
Feb 18, 2010, 4:44:20 AM2/18/10
to AdWords API Forum
In PHP... I tried everything. The ID is there and there are no quotes.
I am able to create an adgroup text ad, but I cannot set the status to
PAUSE or DISABLED. Any direction would be helpful.

Error:

SoapFault Object ( [message:protected] => [EntityNotFound.INVALID_ID @
operations[0].operand.ad.id] [string:private] => [code:protected] => 0
[file:protected] =>

AdWords API Advisor

unread,
Feb 18, 2010, 11:12:50 AM2/18/10
to AdWords API Forum
Hi Mike,

Do you have the SOAP XML logs for this request? I've seen some cases
where a correct ID gets truncated when it is serialized to XML.

Best,
- Eric Koleda, AdWords API Team

Mike-Indiana

unread,
Feb 19, 2010, 5:16:23 PM2/19/10
to AdWords API Forum
Sure thing:


[Feb 19 2010 16:12:01.000000 - INFO] POST /api/adwords/cm/v200909/
AdGroupAdService HTTP/1.1

Host: adwords.google.com

Connection: Keep-Alive

User-Agent: PHP-SOAP/5.2.12

Content-Type: text/xml; charset=utf-8

SOAPAction: ""

Content-Length: 1162

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader xsi:type="ns1:RequestHeader">
<ns1:applicationToken>**REMOVED**</ns1:applicationToken>
<ns1:authToken>*****</ns1:authToken>
<ns1:clientEmail>**REMOVED**</ns1:clientEmail>
<ns1:developerToken>**REMOVED**</ns1:developerToken>
<ns1:userAgent>PHP v5.2.12 - AdWords API PHP Client Library -
v1.2.2 - Finance Globe</ns1:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>SET</ns1:operator>
<ns1:operand>
<ns1:adGroupId>463586824</ns1:adGroupId>
<ns1:ad>
<ns1:id>2147483647</ns1:id>
</ns1:ad>
<ns1:status>PAUSED</ns1:status>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


HTTP/1.1 500 Internal Server Error

Content-Type: text/xml; charset=UTF-8

Transfer-Encoding: chunked

Date: Fri, 19 Feb 2010 22:12:02 GMT

Expires: Fri, 19 Feb 2010 22:12:02 GMT

Cache-Control: private, max-age=0

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

Server: GFE/2.0

X-XSS-Protection: 0


<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
<requestId>a47c7dd0af814a17b4a94a8731f20eb0</requestId>
<operations>1</operations>
<responseTime>1404</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[EntityNotFound.INVALID_ID @
operations[0].operand.ad.id]</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/
adwords/cm/v200909">
<message>[EntityNotFound.INVALID_ID @
operations[0].operand.ad.id]</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>
<trigger/>
<ApiError.Type>EntityNotFound</ApiError.Type>
<reason>INVALID_ID</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>

On Feb 18, 10:12 am, AdWords API Advisor

AdWords API Advisor

unread,
Feb 22, 2010, 12:27:40 PM2/22/10
to AdWords API Forum
Hi Mike,

This is a problem with how some versions of the PHP SOAP Client handle
long values. See my reply in the following thread:

http://groups.google.com/group/adwords-api/browse_thread/thread/364a50bd2197a915/

Best,
- Eric Koleda, AdWords API Team

Reply all
Reply to author
Forward
0 new messages