Hi Rob, The document I linked you to discusses a few ways to obtain the CID, beyond simply logging into the UI (which cannot be done for sandbox accounts).
The java library you are using has that example, but it is named GetAllCampaigns: http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201109/GetAllCampaigns.java Once you've run that example, can you please provide the SOAP logs when running the GetAccountHierarchy example? - Kevin Winter AdWords API Team Original Message Follows: ------------------------ From: Robert Leggett <[email protected]> Subject: RE: CreateAccountService InternalApiError Date: Thu, 12 Apr 2012 10:28:43 +1000 > Hi Kevin, > > Thank you for your reply. > > I am very confused at the moment. > > Firstly the document you specified to get the clientId http://code.google.com/apis/adwords/docs/accountinfoguide.html refers to an AdWords UI, when I access that URL and log in with my Google account I believe this is a production account based off the URL (please see screen shot below), please NOTE I do not want a production account and if this a production account I would like it closed. Is there a sandbox version of the AdWords UI? If so what is the URL so I can get the client ID for the GOOGLE account I have created? > > [cid:[email protected]] > > Secondly like I stated in the previous email the initial created accounts the MCC account and 5 customer accounts does not work and returns 0 for all the customer client ids. > > I have tried follow the below steps also posted by Anash P. Oommen but the following URL http://code.google.com/p/google-api-adwords-java/source/browse/trunk#trunk/examples/v201109 does not contain a GetCampaigns code example!!! > > Anash P. Oommen steps: > 1. Run GetCampaigns code example. This initializes the sandbox and creates 5 test sandbox accounts. > 2. Run GetAccountHierarchy code example. This will return the customer ids of the 5 sandbox accounts you just created. > 3. Use one of the accounts retrieved in (2) to make calls to the sandbox. > > Please see attached my code in JAVA. If I am doing this wrong please point me in the correct direction, I am following the directions above 1. Run GetCampaigns then 2. GetAccountHierachy and getting 0 values returned > > Finally when will the createAccount functionality be available in sandbox, as I will need to test that later and be able to create accounts? > > > Thanks > Regards > Robert Leggett > > Level 8, 30 Collins Street T: +61 3 9657 1111 > Melbourne VIC 3000 F: +61 3 9657 1155 > www.uxcps.com.au<https://mail.uxcps.com.au/owa/redir.aspx?C=03ac5ca9fb754d8e9addfe52d74e6b28&URL=http%3a%2f%2fwww.uxcps.com.au> M: +61 4 2572 4439 > > From: [email protected] [mailto:[email protected]] On Behalf Of Kevin Winter > Sent: Thursday, 12 April 2012 12:38 AM > To: [email protected] > Subject: Re: CreateAccountService InternalApiError > > Hi Rob, > The CreateAccountService would only be used in sandbox to test code that needs to create a new account. If you are testing how to create campaigns, you should be able to just use the initially created accounts as you quoted from the documentation. This page elaborates more on how to get a clientCustomerId: http://code.google.com/apis/adwords/docs/accountinfoguide.html > > What request are you making to obtain the clientCustomerId? It's possible your sandbox account was not initialized properly - you may want to sign up for a new account (https://www.google.com/accounts/NewAccount) and try to use that one with sandbox. > > - Kevin Winter > AdWords API Team > > On Tuesday, April 10, 2012 9:04:45 PM UTC-4, [email protected]<mailto:[email protected]> wrote: > Hi Kevin, > > Can you please suggest a work around, I am trying to add an account in the Sandbox Environment and using Production is not an option. > > When will this issue get fixed. > > I want to have an account so I can create a campaign, adgroup and ad. As you are aware I need a clientId for those mutable operations to be successful. > > I have followed the sandbox documentation and expected as stated "This initial call to the sandbox creates an MCC sandbox account, along with five client accounts, for the email address you specified" but this also does not work as all the clientIds from the 5 accounts are 0. > > Please suggest what to do. > > Thanks > > Rob > > > On Friday, 16 December 2011 02:06:36 UTC+11, Kevin Winter wrote: > Hi, > Unfortunately, there is a known issue that prevents this service from functioning correctly in the sandbox. However, we have tested and can confirm this works properly in production. > > - Kevin Winter > AdWords API Team > -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Also find us on our blog and discussion group: > http://adwordsapi.blogspot.com > http://groups.google.com/group/adwords-api > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > You received this message because you are subscribed to the Google > Groups "AdWords API Forum" group. > To post to this group, send email to [email protected]<mailto:[email protected]> > To unsubscribe from this group, send email to > [email protected]<mailto:[email protected]> > For more options, visit this group at > http://groups.google.com/group/adwords-api?hl=en > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
