Hi Nick,

My guess is that either you don't have an app.config, or the library
is not picking up the AdWordsApi section from app.config. This
shouldn't have been an issue though, but a check that I added at
http://code.google.com/p/google-api-adwords-dotnet/source/browse/branches/v11.0/src/Common/Lib/AppConfigBase.cs#227
is throwing up the error. To fix this error, you have to change the
code like

if (settings == null) {
  return defaultValue;
} else {
   return settings.ContainsKey(key) ? (string) settings[key] :
defaultValue;
}

Could you open an issue at 
http://code.google.com/p/google-api-adwords-dotnet/issues/list
so I may track and fix it?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Sep 21, 10:25 pm, nwood888 <nwood...@gmail.com> wrote:
> I'm using the .NET client library.
>
> Here's the code:
>
> Dictionary<string, string> dHeaders = new Dictionary<string,
> string>();
> dHeaders.Add("email", sEmail);
> dHeaders.Add("clientEmail", sClientEmail);
> dHeaders.Add("password", sPassword);
> dHeaders.Add("useragent",
> ConfigurationManager.AppSettings["SiteBuilderUserAgent"]);
> dHeaders.Add("developerToken",
> ConfigurationManager.AppSettings["AdWordsDeveloperToken"]);
>
> AdWordsUser oUser = new AdWordsUser(dHeaders);
>
> This throws an "Exception has been thrown by the target of an
> invocation.".
>
> The InnerException is "Value cannot be null.\r\nParameter name:
> settings"
>
> I've tried instantiating the AdWordsUser object using the App.Config
> values from the client library examples as well - same error.
>
>   Nick

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