I want to use custom configuration to create AdwordsUser object in .net. I found this link and follow the instructions
http://code.google.com/p/google-api-adwords-dotnet/wiki/HowToUseAdWordsUser here are the 5 header fields I have supplied Dictionary<string, string> headers = new Dictionary<string, string>(); headers.Add("email", "ENTER_YOUR_EMAIL_HERE"); headers.Add("password", "ENTER_YOUR_PASSWORD_HERE"); headers.Add("useragent", "ENTER_YOUR_COMPANY_NAME_HERE"); headers.Add("developerToken", "ENTER_YOUR_DEVELOPER_TOKEN_HERE"); headers.Add("clientEmail", "ENTER_YOUR_CLIENT_EMAIL_HERE"); then I created AdwordsUser object user = new AdWordsUser(headers); but in the end I got this error The remote server returned an error: (403) Forbidden. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The remote server returned an error: (403) Forbidden. and here is the stack trace [WebException: The remote server returned an error: (403) Forbidden.] System.Net.HttpWebRequest.GetResponse() +5373789 Google.Api.Ads.Common.Lib.AuthToken.GetToken() +816 [AuthTokenException: AuthToken login failed. See ErrorCode for more details.] Google.Api.Ads.Common.Lib.AuthToken.GetToken() +885 Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory.ReadHeadersFromConfig(AppConfigBase config) +310 Google.Api.Ads.Common.Lib.ServiceFactory.set_AppConfig(AppConfigBase value) +67 Google.Api.Ads.Common.Lib.AdsUser.SetHeadersFromConfig() +147 Google.Api.Ads.Common.Lib.AdsUser..ctor(AppConfigBase config, Dictionary`2 headers) +218 Google.Api.Ads.AdWords.Lib.AdWordsUser..ctor(Dictionary`2 headers) +108 _Default.GetAllAdgroup(String clientemail) in c:\Users\admin \Documents\Visual Studio 2010\WebSites\WebSite1\Default.aspx.cs:30 _Default.Page_Load(Object sender, EventArgs e) in c:\Users\admin \Documents\Visual Studio 2010\WebSites\WebSite1\Default.aspx.cs:17 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 please tell me what is the issue.. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
