<addAds><ads><adGroupId>274033396</adGroupId><adType>TextAd</
adType><description1>Submit your website</
description1><description2>to many directories.</
description2><destinationUrl>http://www.isubmit.com/?test1=1</
destinationUrl><displayUrl>www.isubmit.com/?test1=1</
displayUrl><headline>Submit your URL</headline><status>Enabled</
status></ads></addAds>
Here is your response:
[soapenv:Header] => Array
(
[responseTime] => 186
[operations] => 1
[units] => 250
[requestId] => 98e265e7a947b1075210565a9d4c7852
)
[soapenv:Body] => Array
(
[addAdsResponse] => Array
(
[ns1:addAdsReturn] => Array
(
[ns1:adGroupId] => 274033396
[ns1:adType] => TextAd
[ns1:destinationUrl] => http://www.isubmit.com/?test1=1
[ns1:disapproved] => false
[ns1:displayUrl] => www.isubmit.com/?test1=1
[ns1:id] => 403362196
[ns1:status] => Enabled
[ns1:description1] => Submit your website
[ns1:description2] => to many directories.
[ns1:headline] => Submit your URL
)
)
)
Notice the ns1:id which equals 403362196. Now, if you log into the
account (goog...@isubmit.com -> campaign #84 -> Ad Group #9), hold
your mouse over the word "Edit" of the second Creative, you will see
that the real Creative ID is 496322956.
Now, since I use scripts to erase one of my clients creatives, the
only number I can automatically obtain is the 4703362196. However,
when I do a:
<updateAds><ads><id>403362136</id><status>Disabled</status></ads></
updateAds>
It doesn't recognize the Creative ID, and returns:
[soapenv:Header] => Array
(
[responseTime] => 91
[operations] => 0
[units] => 0
[requestId] => d823ee90dd41c67ef67b0ffa1b0c264f
)
[soapenv:Body] => Array
(
[soapenv:Fault] => Array
(
[faultcode] => soapenv:Server.userException
[faultstring] => java.lang.RuntimeException:
Abstract keyValue without superclass.
[detail] => Array
(
[ns1:stackTrace] =>
java.lang.RuntimeException: Abstract keyValue without superclass.
at
com.google.soap.base.PolymorphicBeanDeserializer.startElement(PolymorphicBeanDeserializer.java:
70)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:
1038)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
159)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:
1138)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:199)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:342)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:
146)
at
com.google.ads.netapi.config.AdWordsApiProvider.processMessage(AdWordsApiProvider.java:
62)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:
319)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:
118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:
285)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:
637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
709)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
802)
at com.google.gse.FilteredServlet
$ChainEnd.doFilter(FilteredServlet.java:144)
at
com.google.soap.base.LoggingFilter.doFilter(LoggingFilter.java:142)
at com.google.gse.FilteredServlet
$Chain.doFilter(FilteredServlet.java:122)
at
com.google.servlet.balancing.LoadBalancingFilter.processRequestLocally(LoadBalancingFilter.java:
416)
at
com.google.servlet.balancing.LoadBalancingFilter.loadBalanceRequest(LoadBalancingFilter.java:
218)
at
com.google.servlet.balancing.LoadBalancingFilter.doFilter(LoadBalancingFilter.java:
165)
at com.google.gse.FilteredServlet
$Chain.doFilter(FilteredServlet.java:122)
at com.google.gse.FilteredServlet.service(FilteredServlet.java:
94)
at
com.google.gse.HttpConnection.runServlet(HttpConnection.java:502)
at com.google.gse.HttpConnection.run(HttpConnection.java:426)
at com.google.gse.DispatchQueue
$WorkerThread.run(DispatchQueue.java:296)
[ns2:isRuntimeException] => true
)
)
)
)
Thanks
Scott