Hi Madhu,

This was an issue with v11.0.0 of .NET library, it is fixed in
v11.1.0. The library throws this error when it cannot find AdWordsApi
node in your App.config/Web.config, so copying the nodes from
http://code.google.com/p/google-api-adwords-dotnet/source/browse/branches/v11.0/src/App.config
to your Web.config should fix the issue as well.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Oct 11, 2:22 pm, Madhu <mad...@pdbuk.com> wrote:
> Hi,
>
> I am getting this error message when creating a adword user.
> Please help me to fix this error
>
> ------------------Code--------------------------------
> using Google.Api.Ads.AdWords.Lib;
> using Google.Api.Ads.AdWords.v201008;
>
>   Dictionary<string, string> headers = new Dictionary<string,
> string>();
>         headers.Add("email","email");
>         headers.Add("password", "*******");
>         headers.Add("useragent", "****");
>         headers.Add("developerToken", "*******");
>         headers.Add("service", "adwords");
>         headers.Add("applicationToken", *****");
>         headers.Add("clientEmail", "email");
>         //AdWordsUser user = new AdWordsUser(headers);
>
>         AdWordsUser user = new AdWordsUser(headers);
>
> ---------------------------error----------------------------------
>
> [ArgumentNullException: Value cannot be null.
> Parameter name: settings]
>    Google.Api.Ads.Common.Lib.AppConfigBase.ReadSetting(Hashtable
> settings, String key, String defaultValue) +127
>    Google.Api.Ads.Common.Lib.AppConfigBase.ReadSettings(Hashtable
> settings) +111
>    Google.Api.Ads.AdWords.Lib.AdWordsAppConfig.ReadSettings(Hashtable
> settings) +53
>    Google.Api.Ads.AdWords.Lib.AdWordsAppConfig..ctor() +309
>    Google.Api.Ads.AdWords.Lib.LegacyAdWordsServiceFactory..ctor() +56
>
> [TargetInvocationException: Exception has been thrown by the target of
> an invocation.]
>    System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean
> publicOnly, Boolean noCheck, Boolean& canBeCached,
> RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
>    System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
> fillCache) +86
>    System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean
> skipVisibilityChecks, Boolean fillCache) +230
>    System.Activator.CreateInstance(Type type, Boolean nonPublic) +67
>    System.Activator.CreateInstance(Type type) +6
>    Google.Api.Ads.Common.Lib.AdsUser.RegisterServices(Type[]
> servicesFamilies) +427
>    Google.Api.Ads.Common.Lib.AdsUser..ctor() +108
>    Google.Api.Ads.AdWords.Lib.AdWordsUser..ctor() +78
>    _Default.GetAllAdGroups() in c:\inetpub\wwwroot\Google
> \Default.aspx.cs:96
>    _Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot
> \Google\Default.aspx.cs:22
>    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
> Object o, Object t, EventArgs e) +14
>    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
> sender, EventArgs e) +89
>    System.Web.UI.Control.OnLoad(EventArgs e) +148
>    System.Web.UI.Control.LoadRecursive() +122
>    System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +3414
>
> Thanks in advance
> Madhu

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to