Hi, Ok, I see now. If it uses the same AdWordsUser than the credentials are the same. All accounts have permission to use the v2009 API automatically.
The request ID is returned in the ResponseHeader of the SOAP XML response. If you enable logging in the client library it will be easy to see this value. Best, - Eric On Nov 24, 5:51 pm, Ales Sturala <[email protected]> wrote: > Hello, > The piece of code is called together, both campaign services v2006 and > v13 are using the same instantiation of AdWordsUser, so same > credentials. At first it uses the v13 and it works, and right after > that instantiates the v2006 campaign service and then using it fails. > So I really don't think it's wrong credentials, unless I have to > enable somehow the v2006 for the client. > > I don't have request ID, how do I get it? Do I have to enable logging > of the AdWords API and then can I find it there? > > On Nov 24, 11:10 pm, AdWords API Advisor > > > > <[email protected]> wrote: > > Hi, > > > Can you double check that you are using the correct credentials of > > your AdWords account or MCC account to generate the authToken? Do you > > have the request ID for a request that demonstrates this issue? > > > Best, > > - Eric Koleda, AdWords API Team > > > On Nov 24, 4:45 pm, Ales Sturala <[email protected]> wrote: > > > > Hello, > > > I get into troubles with the API v200906 (.NET) when trying to access > > > an account in production environment. > > > > When any operation is called I get an exception: > > > AuthorizationError.USER_PERMISSION_DENIED @ > > > > I've spent several hours figuring out what is wrong with the given > > > credentials or with permissions but still getting the same error. Then > > > I tried to use the v13 service instead of v200906 and everything > > > worked properly. > > > > So the question is why when using v13 the operations are executed but > > > when using v200906 then I get the permission denied error? > > > > We already migrated our tools to v200906 but we've always run it only > > > in a sandbox (because of some problems with the v2006) and the > > > "sandbox" authentication works allright, so that's why I think that > > > it's connected only to the production environment. > > > > Here is piece of code demonstrating the issue: > > > > var csrv13 = (com.google.api.adwords.v13.CampaignService) > > > adwordsUser.GetService(ApiServices.v13.CampaignService); > > > > var cc13 = csrv13.getAllAdWordsCampaigns(0); > > > > // ^^ variable cc13 contains all campaigns > > > > var csrv2009 = > > > (com.google.api.adwords.v200906.CampaignService.CampaignService) > > > adwordsUser.GetService > > > (ApiServices.v200906.CampaignService); > > > > com.google.api.adwords.v200906.CampaignService.CampaignSelector sel = > > > new com.google.api.adwords.v200906.CampaignService.CampaignSelector(); > > > > var cc2009 = csrv2009.get(sel); > > > > // ^^ throws the exception AuthorizationError.USER_PERMISSION_DENIED @ -- 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.
