Re: Authentication problems with .Net Library
Thanks Anash, Now my POC is working, I run GetAllCampaigns example first as you told me. I also tried to run my code with OAuth, but it keeps sending the same exception. Since I'm working with a console application I copied this code to my main method: static void Main(string[] args) { IServiceLocator injector = new AdsServiceLocator(); ServiceLocator.SetLocatorProvider(new ServiceLocatorProvider(delegate() { return injector; })); AdWordsUser user = new AdWordsUser(); // more code... } AuthToken key is still empty. Should I add that code somewhere else? Thanks. On Aug 11, 7:33 am, AdWords API Advisor wrote: > Hi Nariz, > > You have to initialize the sandbox by running the GetAllCampaigns example, > and after that your configuration would work just fine. As for using OAuth, > you should add a Global.asax and add some initialization code in your > Global::Init(). > Seehttp://code.google.com/p/google-api-adwords-dotnet/source/browse/trun...for > details. > > Hope this helps, let me know if you have more questions. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: Authentication problems with .Net Library
I found how to set the AuthToken in the app.config, it was right in front of me: Anyway, I'm still looking the answers for my other questions. Thanks. On Aug 10, 9:17 pm, Nariz Wallace wrote: > Hi, > > I downloaded the .Net Adwords Library. I've been reviewing the samples > programs (TargetingIdeaService). I extracted some code to start > creating some proofs of concept, but bigest issue, so far, is that I > cannot get logged in to the sandbox, I replaced the default values for > my authentication info in the the app.config in order to use the > sandbox's services, this is how my app.config looks now: > > > > > > > > > > > > > > > > > https://adwords- > sandbox.google.com"/> > > > With those values I'm getting the following exception when I try to > execute TargetingIdeaService.get(): > > {"AuthenticationError.NOT_ADS_USER @ ; trigger:'908874548491' > Service[TargetingIdeaService.get]"} > > I also tried to use OAuth as AuthorizationMethod (I used the OAuth > consumer key/secret as anonymous/anonymous) but I didn't get any > success either, I got the following exception: > > OAuth provider cannot be null when selecting Authorization method > as "OAuth" > > Documentation about .net library doesn't mention anything about > configuring an OAuth provider, at least I haven't found anything about > it yet. > > Is there a way to use sandbox with a non-MCC account? > If not, Is there a free way to generate a DeveloperToken? > > Can someone provide some working settings or tell me what I'm missing > or doing wrong? > > I also read about authToken, looks like I need it to use the sandbox, > but there is no settings samples (key) in the app.config to configure > it, How can I generate and pass this token over my instances? > > Any thoughts? Help would be appreciate. > > Thanks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Authentication problems with .Net Library
Hi, I downloaded the .Net Adwords Library. I've been reviewing the samples programs (TargetingIdeaService). I extracted some code to start creating some proofs of concept, but bigest issue, so far, is that I cannot get logged in to the sandbox, I replaced the default values for my authentication info in the the app.config in order to use the sandbox's services, this is how my app.config looks now: https://adwords- sandbox.google.com"/> With those values I'm getting the following exception when I try to execute TargetingIdeaService.get(): {"AuthenticationError.NOT_ADS_USER @ ; trigger:'908874548491' Service[TargetingIdeaService.get]"} I also tried to use OAuth as AuthorizationMethod (I used the OAuth consumer key/secret as anonymous/anonymous) but I didn't get any success either, I got the following exception: OAuth provider cannot be null when selecting Authorization method as "OAuth" Documentation about .net library doesn't mention anything about configuring an OAuth provider, at least I haven't found anything about it yet. Is there a way to use sandbox with a non-MCC account? If not, Is there a free way to generate a DeveloperToken? Can someone provide some working settings or tell me what I'm missing or doing wrong? I also read about authToken, looks like I need it to use the sandbox, but there is no settings samples (key) in the app.config to configure it, How can I generate and pass this token over my instances? Any thoughts? Help would be appreciate. Thanks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Authentication Issue with Adwords API (v201101)
Hi, I downloaded the .Net Adwords Library, I've been reviewing the samples (TargetingIdeaService) I extracted some code to start working on some proofs of concept, but my problem so far is that I cannot get logged in to the sandbox, I modified the default values in the the app.config to use the sandbox and set my authentication data, this is what I have now: https://adwords- sandbox.google.com"/> With those settings I'm getting the following exception when I try to execute TargetingIdeaService.get(): {"AuthenticationError.NOT_ADS_USER @ ; trigger:'908874548491' Service[TargetingIdeaService.get]"} I also tried to use OAuth as AuthorizationMethod (I used the OAuth consumer key/secret as anonymous/anonymous) but I didn't get any success, I got the following exception: OAuth provider cannot be null when selecting Authorization method as "OAuth" Documentation about .net library doesn't mention how to config a OAuth provider, at least I haven't found anything about it yet. Is there a way to use sandbox with a non-MCC account? If not, there is a free way to generate a DeveloperToken? Can someone provide some working settings or tell me what I'm missing or doing wrong? I also read about authToken, looks like I need it to use the sandbox, but there is no settings samples (key) in the app.config to provide provide it, how can I generate and provide this token? Any thoughts? Any help would be appreciate. Thanks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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