AdWords API Re: Error when running AddCampaignDemo for v2009 against the sandbox

2009-08-28 Thread AdWords API Advisor

Hi Zachary,

I agree, the error message in v2009 wasn't very helpful in this case.
I'll raise this issue with the core development team to see if they
can make the exception more specific.

Best,
- Eric

On Aug 28, 5:51 pm, Zachary Shaw  wrote:
> I think what gave me the worst problems was I am new to the the
> Adwords API and the v2009 error messages didn't help.  It wasn't until
> I tried to do the same thing in v13 that I saw the error messages
> about a missing client.
>
> On Aug 28, 5:21 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Zachary,
>
> > I'm glad you were able to find the solution to your problem.  For the
> > benefit of anyone else that may be running into similar issues,
> > information on how to access the Sandbox environment can be found
> > here:http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Aug 28, 5:13 pm, Zachary Shaw  wrote:
>
> > > After much head banging I figured out I needed a clientId and then
> > > after much more head banging I figured out the clientId for the
> > > sandbox was one of
> > > client_x+emailaddress  where x = 1 through 5
>
> > > On Aug 28, 12:00 pm, Zachary Shaw  wrote:
>
> > > > I get an error when trying to go against the sandbox using the
> > > > AddCampaignDemohttp://code.google.com/p/google-api-adwords-java/
> > > > v5.1.0
>
> > > > I'm not sure if it's a properties related issue. I have validated that
> > > > my login credentials are correct by posting an incorrect password I
> > > > get the "Could not get ClientLogin token for user." message.
>
> > > > Any suggestions would be much appreciated.
>
> > > > below are my properties:
>
> > > > # clientId and useSandbox are optional and may be commented out.
> > > > email=[what my email would be]
> > > > password=[what my password should be]
> > > > #clientId=INSERT_CLIENT_LOGIN_EMAIL_OR_ID_HERE
> > > > useragent=FOO BAR
> > > > developerToken=[what my email would be]++USD
> > > > #applicationToken=INSERT_APPLICATION_TOKEN_HERE
> > > > useSandbox=true
>
> > > > Here is the error I get:
>
> > > > AxisFault
> > > >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
> > > >  faultSubcode:
> > > >  faultString: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> > > >  faultActor:
> > > >  faultNode:
> > > >  faultDetail:
> > > >         {https://adwords.google.com/api/adwords/cm/v200906}
> > > > ApiExceptionFault:InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> > > > @ ApiException > > > ApplicationException.Type>http://www.w3.org/2001/
> > > > XMLSchema-instance" 
> > > > xsi:type="InternalApiError">InternalAp
> > > >  iError
> > > > ApiError.Type>UNEXPECTED_INTERNAL_API_ERROR
>
> > > > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> > > >         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > Method)
> > > >         at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > > > (NativeConstructorAccessorImpl.java:39)
> > > >         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > > > (DelegatingConstructorAccessorImpl.java:27)
> > > >         at 
> > > > java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > > >         at java.lang.Class.newInstance0(Class.java:355)
> > > >         at java.lang.Class.newInstance(Class.java:308)
> > > >         at org.apache.axis.encoding.ser.BeanDeserializer.
> > > > (BeanDeserializer.java:104)
> > > >         at org.apache.axis.encoding.ser.BeanDeserializer.
> > > > (BeanDeserializer.java:90)
> > > >         at com.google.api.adwords.v200906.ApiException.getDeserializer
> > > > (ApiException.java:142)
> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > > > (NativeMethodAccessorImpl.java:39)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > (DelegatingMethodAccessorImpl.java:25)
> > > >         at java.lang.reflect.Method.invoke(Method.java:597)
> > > >         at 
> > > > org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized
> > > > (BaseDeserializerFactory.java:154)
> > > >         at
> > > > org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
> > > > (BaseDeserializerFactory.java:84)
> > > >         at 
> > > > org.apache.axis.encoding.DeserializationContext.getDeserializer
> > > > (DeserializationContext.java:464)
> > > >         at
> > > > org.apache.axis.encoding.DeserializationContext.getDeserializerForType
> > > > (DeserializationContext.java:547)
> > > >         at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild
> > > > (SOAPFaultDetailsBuilder.java:157)
> > > >         at org.apache.axis.encoding.DeserializationContext.startElement
> > > > (DeserializationContext.java:1035)
> > > >         at
> > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
> > > > (AbstractSAXParser.java:501)
> > > >         at
> > > > com.sun.org.apac

AdWords API Re: Error when running AddCampaignDemo for v2009 against the sandbox

2009-08-28 Thread Zachary Shaw

I think what gave me the worst problems was I am new to the the
Adwords API and the v2009 error messages didn't help.  It wasn't until
I tried to do the same thing in v13 that I saw the error messages
about a missing client.

On Aug 28, 5:21 pm, AdWords API Advisor 
wrote:
> Hi Zachary,
>
> I'm glad you were able to find the solution to your problem.  For the
> benefit of anyone else that may be running into similar issues,
> information on how to access the Sandbox environment can be found
> here:http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Aug 28, 5:13 pm, Zachary Shaw  wrote:
>
> > After much head banging I figured out I needed a clientId and then
> > after much more head banging I figured out the clientId for the
> > sandbox was one of
> > client_x+emailaddress  where x = 1 through 5
>
> > On Aug 28, 12:00 pm, Zachary Shaw  wrote:
>
> > > I get an error when trying to go against the sandbox using the
> > > AddCampaignDemohttp://code.google.com/p/google-api-adwords-java/
> > > v5.1.0
>
> > > I'm not sure if it's a properties related issue. I have validated that
> > > my login credentials are correct by posting an incorrect password I
> > > get the "Could not get ClientLogin token for user." message.
>
> > > Any suggestions would be much appreciated.
>
> > > below are my properties:
>
> > > # clientId and useSandbox are optional and may be commented out.
> > > email=[what my email would be]
> > > password=[what my password should be]
> > > #clientId=INSERT_CLIENT_LOGIN_EMAIL_OR_ID_HERE
> > > useragent=FOO BAR
> > > developerToken=[what my email would be]++USD
> > > #applicationToken=INSERT_APPLICATION_TOKEN_HERE
> > > useSandbox=true
>
> > > Here is the error I get:
>
> > > AxisFault
> > >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
> > >  faultSubcode:
> > >  faultString: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> > >  faultActor:
> > >  faultNode:
> > >  faultDetail:
> > >         {https://adwords.google.com/api/adwords/cm/v200906}
> > > ApiExceptionFault:InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> > > @ ApiException > > ApplicationException.Type>http://www.w3.org/2001/
> > > XMLSchema-instance" 
> > > xsi:type="InternalApiError">InternalAp
> > >  iError
> > > ApiError.Type>UNEXPECTED_INTERNAL_API_ERROR
>
> > > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> > >         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > Method)
> > >         at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > > (NativeConstructorAccessorImpl.java:39)
> > >         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > > (DelegatingConstructorAccessorImpl.java:27)
> > >         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > >         at java.lang.Class.newInstance0(Class.java:355)
> > >         at java.lang.Class.newInstance(Class.java:308)
> > >         at org.apache.axis.encoding.ser.BeanDeserializer.
> > > (BeanDeserializer.java:104)
> > >         at org.apache.axis.encoding.ser.BeanDeserializer.
> > > (BeanDeserializer.java:90)
> > >         at com.google.api.adwords.v200906.ApiException.getDeserializer
> > > (ApiException.java:142)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > > (NativeMethodAccessorImpl.java:39)
> > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > (DelegatingMethodAccessorImpl.java:25)
> > >         at java.lang.reflect.Method.invoke(Method.java:597)
> > >         at 
> > > org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized
> > > (BaseDeserializerFactory.java:154)
> > >         at
> > > org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
> > > (BaseDeserializerFactory.java:84)
> > >         at org.apache.axis.encoding.DeserializationContext.getDeserializer
> > > (DeserializationContext.java:464)
> > >         at
> > > org.apache.axis.encoding.DeserializationContext.getDeserializerForType
> > > (DeserializationContext.java:547)
> > >         at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild
> > > (SOAPFaultDetailsBuilder.java:157)
> > >         at org.apache.axis.encoding.DeserializationContext.startElement
> > > (DeserializationContext.java:1035)
> > >         at
> > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
> > > (AbstractSAXParser.java:501)
> > >         at
> > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE
> > >  lement
> > > (XMLNSDocumentScannerImpl.java:400)
> > >         at
> > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> > > $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
> > >         at 
> > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
> > > (XMLDocumentScannerImpl.java:648)
> > >         at
> > > com.sun.org.apa

AdWords API Re: Error when running AddCampaignDemo for v2009 against the sandbox

2009-08-28 Thread AdWords API Advisor

Hi Zachary,

I'm glad you were able to find the solution to your problem.  For the
benefit of anyone else that may be running into similar issues,
information on how to access the Sandbox environment can be found
here: 
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html.

Best,
- Eric Koleda, AdWords API Team

On Aug 28, 5:13 pm, Zachary Shaw  wrote:
> After much head banging I figured out I needed a clientId and then
> after much more head banging I figured out the clientId for the
> sandbox was one of
> client_x+emailaddress  where x = 1 through 5
>
> On Aug 28, 12:00 pm, Zachary Shaw  wrote:
>
>
>
> > I get an error when trying to go against the sandbox using the
> > AddCampaignDemohttp://code.google.com/p/google-api-adwords-java/
> > v5.1.0
>
> > I'm not sure if it's a properties related issue. I have validated that
> > my login credentials are correct by posting an incorrect password I
> > get the "Could not get ClientLogin token for user." message.
>
> > Any suggestions would be much appreciated.
>
> > below are my properties:
>
> > # clientId and useSandbox are optional and may be commented out.
> > email=[what my email would be]
> > password=[what my password should be]
> > #clientId=INSERT_CLIENT_LOGIN_EMAIL_OR_ID_HERE
> > useragent=FOO BAR
> > developerToken=[what my email would be]++USD
> > #applicationToken=INSERT_APPLICATION_TOKEN_HERE
> > useSandbox=true
>
> > Here is the error I get:
>
> > AxisFault
> >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
> >  faultSubcode:
> >  faultString: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >         {https://adwords.google.com/api/adwords/cm/v200906}
> > ApiExceptionFault:InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> > @ ApiException > ApplicationException.Type>http://www.w3.org/2001/
> > XMLSchema-instance" 
> > xsi:type="InternalApiError">InternalAp 
> > iError
> > ApiError.Type>UNEXPECTED_INTERNAL_API_ERROR
>
> > InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> >         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >         at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > (NativeConstructorAccessorImpl.java:39)
> >         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > (DelegatingConstructorAccessorImpl.java:27)
> >         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> >         at java.lang.Class.newInstance0(Class.java:355)
> >         at java.lang.Class.newInstance(Class.java:308)
> >         at org.apache.axis.encoding.ser.BeanDeserializer.
> > (BeanDeserializer.java:104)
> >         at org.apache.axis.encoding.ser.BeanDeserializer.
> > (BeanDeserializer.java:90)
> >         at com.google.api.adwords.v200906.ApiException.getDeserializer
> > (ApiException.java:142)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         at 
> > org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized
> > (BaseDeserializerFactory.java:154)
> >         at
> > org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
> > (BaseDeserializerFactory.java:84)
> >         at org.apache.axis.encoding.DeserializationContext.getDeserializer
> > (DeserializationContext.java:464)
> >         at
> > org.apache.axis.encoding.DeserializationContext.getDeserializerForType
> > (DeserializationContext.java:547)
> >         at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild
> > (SOAPFaultDetailsBuilder.java:157)
> >         at org.apache.axis.encoding.DeserializationContext.startElement
> > (DeserializationContext.java:1035)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
> > (AbstractSAXParser.java:501)
> >         at
> > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE 
> > lement
> > (XMLNSDocumentScannerImpl.java:400)
> >         at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> > $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
> >         at 
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
> > (XMLDocumentScannerImpl.java:648)
> >         at
> > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
> > (XMLNSDocumentScannerImpl.java:140)
> >         at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan 
> > Document
> > (XMLDocumentFragmentScannerImpl.java:510)
> >         at 
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (XML11Configuration.java:807)
> >         at 
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > 

AdWords API Re: Error when running AddCampaignDemo for v2009 against the sandbox

2009-08-28 Thread Zachary Shaw

After much head banging I figured out I needed a clientId and then
after much more head banging I figured out the clientId for the
sandbox was one of
client_x+emailaddress  where x = 1 through 5


On Aug 28, 12:00 pm, Zachary Shaw  wrote:
> I get an error when trying to go against the sandbox using the
> AddCampaignDemohttp://code.google.com/p/google-api-adwords-java/
> v5.1.0
>
> I'm not sure if it's a properties related issue. I have validated that
> my login credentials are correct by posting an incorrect password I
> get the "Could not get ClientLogin token for user." message.
>
> Any suggestions would be much appreciated.
>
> below are my properties:
>
> # clientId and useSandbox are optional and may be commented out.
> email=[what my email would be]
> password=[what my password should be]
> #clientId=INSERT_CLIENT_LOGIN_EMAIL_OR_ID_HERE
> useragent=FOO BAR
> developerToken=[what my email would be]++USD
> #applicationToken=INSERT_APPLICATION_TOKEN_HERE
> useSandbox=true
>
> Here is the error I get:
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode:
>  faultString: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
>  faultActor:
>  faultNode:
>  faultDetail:
>         {https://adwords.google.com/api/adwords/cm/v200906}
> ApiExceptionFault:InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> @ ApiException ApplicationException.Type>http://www.w3.org/2001/
> XMLSchema-instance" 
> xsi:type="InternalApiError">InternalApiError
> ApiError.Type>UNEXPECTED_INTERNAL_API_ERROR
>
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at java.lang.Class.newInstance0(Class.java:355)
>         at java.lang.Class.newInstance(Class.java:308)
>         at org.apache.axis.encoding.ser.BeanDeserializer.
> (BeanDeserializer.java:104)
>         at org.apache.axis.encoding.ser.BeanDeserializer.
> (BeanDeserializer.java:90)
>         at com.google.api.adwords.v200906.ApiException.getDeserializer
> (ApiException.java:142)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized
> (BaseDeserializerFactory.java:154)
>         at
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
> (BaseDeserializerFactory.java:84)
>         at org.apache.axis.encoding.DeserializationContext.getDeserializer
> (DeserializationContext.java:464)
>         at
> org.apache.axis.encoding.DeserializationContext.getDeserializerForType
> (DeserializationContext.java:547)
>         at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild
> (SOAPFaultDetailsBuilder.java:157)
>         at org.apache.axis.encoding.DeserializationContext.startElement
> (DeserializationContext.java:1035)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
> (AbstractSAXParser.java:501)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> (XMLNSDocumentScannerImpl.java:400)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
> (XMLDocumentScannerImpl.java:648)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
> (XMLNSDocumentScannerImpl.java:140)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> (XMLDocumentFragmentScannerImpl.java:510)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (XML11Configuration.java:807)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (XML11Configuration.java:737)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> (XMLParser.java:107)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> (AbstractSAXParser.java:1205)
>         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(SAXParserImpl.java:522)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>         at org.apache.axis.encoding.DeserializationContext.parse
> (DeserializationContext.java:227)
>         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>         at