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 <[email protected]>
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 [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

Reply via email to