Thanks for the quick reply. Yeah, I have place the properties file in my home directory. Its working fine for me now, had done a trivial mistake. Since i was using clientEmail instead of clientId I had replaced the field name with clientEmail, so it was getting null clientId. Sorry for the trouble.
why i felt its using production was because when i was calling method user.getNameSpace, i was still getting "https://adwords.google.com/api/ adwords/v12" [PS: I am still getting in code] while calling getBaseUrl or getAlternateUrl is giving me "https:// sandbox.google.com/ " Regards, Chandan AdWords API Advisor wrote: > Hello Chandan, > > The alternateUrl setting in the ~/adwords.properties file is the > correct way of switching between the Production and Sandbox > environments. The Java client library ships with the > adwords.properties file set to > > alternateUrl=https://sandbox.google.com/ > > Was the adwords.properties file copied the home directory of the user > running the code? Are you positive that your requests are going to the > production environment even with that setting in place? How are you > verifying that your requests are going to Production and not the > Sandbox? > > Cheers, > -Jeff Posnick, AdWords API Team > > > On Nov 26, 12:09�pm, Chandan <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I have copied the jars fromhttp://www.google.com/apis/adwords/clients.html > > and using the code examples directory. > > When i am running the code its connecting to production env > > i.e.https://adwords.google.com/api/adwords/v12. > > Is there a way to switch between production and Sandbox. > > > > I did browse through the forum was not able to find any concrete > > answer. > > I tried setting alternate Url to sandbox url ie. "https:// > > sandbox.google.com/" but still not working > > > > Any help in this regard will be highly appreciated. > > Regards, > > Chandan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
