I still getting exception.....
i have used credentials as: email= psplno...@gmail.com password= ******* developerToken= psplno...@gmail.com++inr applicationToken= akjenskamlskdjaklsmnkl useragent= INSERT_COMPANY_NAME clientEmail= client_1+psplno...@gmail.com alternateUrl= https://sandbox.google.com Error: Exception in thread "main" AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException faultSubcode: faultString: Client managers cannot have campaigns of their own. faultActor: faultNode: faultDetail: {https://adwords.google.com/api/adwords/v12}fault: <ns1:code>138</ns1:code> <ns1:message>Client managers cannot have campaigns of their own.</ns1:message> Client managers cannot have campaigns of their own. 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: 494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.axis.encoding.ser.BeanDeserializer.<init> (BeanDeserializer.java:104) at org.apache.axis.encoding.ser.BeanDeserializer.<init> (BeanDeserializer.java:90) at com.google.api.adwords.v12.ApiException.getDeserializer (ApiException.java:264) 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:585) 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:533) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement (XMLNSDocumentScannerImpl.java:330) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch (XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse (DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java: 696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke (MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java: 206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at com.google.api.adwords.v12.CampaignServiceSoapBindingStub.addCampaign_aroundBody0 (CampaignServiceSoapBindingStub.java:514) at com.google.api.adwords.v12.CampaignServiceSoapBindingStub.addCampaign_aroundBody1$advice (CampaignServiceSoapBindingStub.java:142) at com.google.api.adwords.v12.CampaignServiceSoapBindingStub.addCampaign (CampaignServiceSoapBindingStub.java:1) at example.CampaignServiceDemo.main(CampaignServiceDemo.java: 89) Java Result: 1 BUILD SUCCESSFUL (total time: 4 seconds) On Jan 7, 2:34 am, purdue512 <a...@hubshout.com> wrote: > WOW - That's really helpful. Thanks. > > It worked. Now I see my trial accounts. > > This should be on your "Getting Started" instructions. > > The part about the clientEmail header is nowhere to be found (unless I > missed it). > > On Jan 6, 11:14 am, AdWords API Advisor <adwordsapiadvi...@google.com> > wrote: > > > Hello, > > > Here's the full process: > > > 1. Create a new GMail account (or use an existing GMail account, but > > it's nice to keep things separate) > > 2. Make a getClientAccounts() call to the Sandbox with the following > > headers set: > > email: address of the GMail account > > password: password of the GMail account > > useragent: set to any identifying string > > developerToken: set to the value for email, with the string '+ > > +USD' (or the currency code of your choice) appended > > applicationToken: ignored, and could be set to anything or left out > > clientEmail: should be set either to the empty string or left out > > 2a. Making this call is what creates the 5 client accounts in the > > Sandbox's datastore. The accounts are named client_1+[email] through > > client_5+[email]. > > 3. For all future Sandbox calls, set the headers as mentioned in step > > 2, with one change: include a clientEmail header with the value set to > > client_n+[email], e.g. 'client_1+exam...@gmail.com'. > > > Whenever the Sandbox's datastore is refreshed, the client accounts > > are wiped out and you'd need to start from step 2 to recreate them. > > Sandbox refreshes happen about once a month. > > > Cheers, > > -Jeff Posnick, AdWords API Team > > > On Jan 5, 6:41 pm, purdue512 <a...@hubshout.com> wrote: > > > > I also found the following posted elsewhere. This doesn't exactly > > > clear it up for me. Will the 5 sub-accounts be emailed to me or is > > > there a call to see them? I can't find any reference to this > > > anywhere.. > > > > Many thanks. > > > > Patrick Chanezon Aug 17, 2006 > > > > I'm sorry about all the issues you encountered. > > > > There is one missing warning in the documentation: the client_1 to 5 > > > subaccounts are created in the sandbox only after your first > > > successful > > > call. > > > So if you first call contains a clientEmail header it fails. > > > But after you made a successful first call (for example getting the > > > amount > > > of free quota), the accounts have been created and then you can make > > > calls > > > using clientEmail headers. > > > > I just tried it out and it works fine. > > > I guess the reason it worked last week was that you had made a first > > > call > > > without this header. > > > These accounts are cleaned up from the sandbox regularly. > > > > P@ > > > > On Jan 5, 6:25 pm, purdue512 <a...@hubshout.com> wrote: > > > > > Your instructions for getting an Adwords account up and running in the > > > > sandbox say: > > > > > "When you first access a web service in the sandbox, five sandbox > > > > client accounts are automatically created for you. You can work with > > > > these client accounts by setting the clientEmail header > > > > appropriately." > > > > > I seem to be accessing the sandbox just fine as my request for > > > > accounts comes back with an empty array. When I try to build a > > > > campaign using CampaignService.addCampaign, yoru web service says: > > > > > faultString: Client managers cannot have campaigns of their own. > > > > > I'm assuming that I need to be using one of the 5 sandbox client > > > > accounts that are automatically created for me when I first access the > > > > sandbox. Where are those? How do I get to that information? > > > > > Thx > > > > > p.s. Someone else said something about getting a sandbox account > > > > "approved". I did not see anything related to that process in your > > > > sandbox instructions. It only says you need to have an active Google > > > > account... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---