Hi Yagmur,

AdWordsUser(header) does work, I'm not sure why it isn't working for you. 
See 
http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/examples/csharp/v13/AccountServiceNoConfigDemo.cs
 for 
details. Other than that, there are couple of more ways to switch the config 
at runtime.

1. user.config.DeveloperToken = newdevelopertoken;
    service = (CampaignService) 
user.GetService(AdWordsService.v201101.CampaignService);

2. service = (CampaignService) 
user.GetService(AdWordsService.v201101.CampaignService);
    service.RequestHeader.DeveloperToken = newdevelopertoken;

The OAuth addition for the .NET library missed the client library update 
blog, I guess it will be announced for the next update blog. There's an 
ASP.NET project example that shows how the library works with OAuth. 
Essentially, you comment out Email, Password in web.config, set 
AuthorizationMethod to OAuth. Then initialize the OAuth library in your 
Global.asax.cs.

See 
http://code.google.com/p/google-api-adwords-dotnet/source/browse/#svn%2Ftrunk%2Fexamples%2Fcsharp%2Foauth
 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