Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:08:01+00:00 2026-05-27T10:08:01+00:00

Most things that I’ve found about the .net AdWords API mention creating a bunch

  • 0

Most things that I’ve found about the .net AdWords API mention creating a bunch of settings for the application that will be used when you create an instance of the AdWordsUser class; however, I’ve had no luck with this. My user always ends up nil and no settings are being read even though I named them as indicated in the AdWordsAppConfig class.

AdWordsAppConfig appConfig = new AdWordsAppConfig();
appConfig.AdWordsApiServer = "https://adwords-sandbox.google.com";
appConfig.Email = "fname.lname@gmail.com";
appConfig.Password = "password";
appConfig.DeveloperToken = "fname.lname@gmail.com++USD";

AdWordsUser user = new AdWordsUser();

The AdWordsUser has an overloaded constructor that accepts a dictionary of strings containing configuration parameters but doesn’t have on that accepts an AdWordsAppConfig object.

http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/src/AdWords/Lib/AdWordsAppConfig.cs

According to the AdWordsAppConfig class the following is used to retreive the settings when you call the constructor; however, how do you create a section called “AdWordsApi” in the App.Config? I don’t see that option in the settings editor.

ReadSettings((Hashtable) ConfigurationManager.GetSection("AdWordsApi"));

Any ideas on the proper way to set the configuration information and create the user instance that I need?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:08:01+00:00Added an answer on May 27, 2026 at 10:08 am

    What Eric mentioned is the long-term solution, but if anyone is looking for a quick answer, this is how you do it:

    AdWordsUser user = new AdWordsUser();
    (user.Config as AdWordsAppConfig).Password = "XXXXX";
    //TODO (Add more configuration settings here.
    
    CampaignService campaignService = (CampaignService) user.GetService(AdWordsService.v201109.CampaignService);
    //TODO (Add your code here to use the service.)
    

    Cheers,
    Anash

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of the most difficult things about understand Spring is that Spring supports multiple
These functions are Utility type things that most of my programs objects will use.
One of the things that bugs me the most about VIM is having to
Why is it the simple things that IE manages to mess up the most?
I've got a menu that contains, among other things, some most-recently-used file paths. The
I only want facts as far as possible. There are some things that ASP.Net
I'm aware that most things in modern programming languages are at least partially based
Most things I read about Unit Tests is about testing your classes and their
One of the things I like most about Cocoa is the readability factor. One
This seems like one of the most basic things that one might want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.