Hi Craig, Please ignore the comment that starts with "// Displays" in my previous post. Just noticed it after clicking the Send button.
AdWordsUser user = new AdWordsUser(); // Get AccountService. AccountInterface accountService = user.getService(AdWordsService.V13.ACCOUNT_SERVICE); // Initialize the sandbox and retrieve a list of 5 client accounts in sandbox. String[] clients = accountService.getClientAccounts(); Cheers, Anash P. Oommen, AdWords API Advisor. On Feb 9, 3:12 pm, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Craig, > > You could use the Java client library > fromhttp://code.google.com/p/google-api-adwords-java > instead, you can find all the java code examples here. As for the > snippet you need, it will look something like this when using the Java > client library. > > AdWordsUser user = new AdWordsUser(); > > // Get AccountService. > AccountInterface accountService = > user.getService(AdWordsService.V13.ACCOUNT_SERVICE); > // Displays the account's name, timezone, language, and currency. > String[] clients = accountService.getClientAccounts(); > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Feb 9, 11:16 am, Craig Smith <craig.smith....@gmail.com> wrote: > > > > > > > > > I noticed on the forum (http://groups.google.com/group/adwords-api/ > > browse_thread/thread/1840738dc7b82e3a/d41bb4480db257f0) that when the > > sandbox is refreshed the accounts are also lost and need to be > > reestablished. This requires a call to > > AccountService.getClientAccounts(). I went to the documentation and > > followed the link to the Java source code example > > athttp://code.google.com/p/adwords-api-java-samples/source/browse/trunk... > > but I get a 403 error. I tried a couple of accounts without success. > > > Can you post the sample here or fix the security issue? > > > Craig -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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