GithubHelp home page GithubHelp logo

bhanditz / google-ads-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googleads/google-ads-dotnet

0.0 2.0 0.0 3.44 MB

License: Apache License 2.0

Batchfile 0.01% Shell 0.01% C# 99.99%

google-ads-dotnet's Introduction

Google Ads Client Library for .NET

This project hosts the .NET client library for the Google Ads API.

Build Status

Build Status

Features

  • Stub classes for all the supported API versions and services.
  • Easy management of credentials, authentication, and session information.
  • Docs available in HTML and XML format.

Requirements

  • .NET Framework 4.5.2+
  • .NET Standard 2.0

Announcements and updates

For API and client library updates and news, please follow our Google Ads Developers blog: http://googleadsdeveloper.blogspot.com/.

Running the code examples

We provide a zip package for the examples. To run the code examples, follow these steps:

  1. Download the Google.Ads.GoogleAds.Examples zip file from https://github.com/googleads/google-ads-dotnet/releases/latest.
  2. Extract the examples zip file into a local folder.
  3. Open `Google.Ads.GoogleAds.Examples.sln in Visual Studio and build it.
  4. Follow the instructions on the Authentication guide to create an OAuth2 client ID and Secret.
  5. Run the AuthenticateInStandaloneApplication code example from the Visual Studio project. When prompted, provide the client ID and client secret from the previous step. AuthenticateInStandaloneApplication performs the authentication and prints the configuration in XML format. Copy the configuration into the App.config of the Google.Ads.GoogleAds.Examples project.
  6. Open the Properties dialog for the Examples project by right clicking Google.Ads.GoogleAds.Examples project in the Solution Explorer and selecting the Properties option from the context menu.
  7. Navigate to the Debug Tab and enter the command-line options, which are of the form version.examplename. For instance, V0.GetCampaigns is the command-line option to run GetCampaigns in the V0 version of the Google Ads API.
  8. Compile and run the Google.Ads.GoogleAds.Examples project.

As an alternative to steps 8-10, each code example has a main() method, so you can set the appropriate code example as the Startup object (Select the Application tab on the Examples Properties dialog and pick the desired class from the "Startup object" dropdown.).

Using the client library in your own project

The client library binaries are distributed via Nuget. Add a Nuget reference to the Google.Ads.GoogleAds package in your project to use the client library.

How do I make API calls?

// Create a Google Ads client.
GoogleAdsClient client = new GoogleAdsClient();

// Create the required service.
CampaignServiceClient campaignService =
    client.GetService(Services.V0.CampaignService);

// make more calls to service class.

See the Getting Started guide for more details, and examples folder for code examples that show how to use various services.

Miscellaneous

Wiki

Issue tracker

API Documentation

Support forum

Authors

google-ads-dotnet's People

Contributors

anashoommen avatar coryliseno avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.