googleads / googleads-dotnet-lib

Google Ad Manager SOAP API .NET client library
Apache License 2.0
108 stars 198 forks source link

Google Ad Manager SOAP API .NET Client Library

This project hosts the .NET client library for the Google Ad Manager SOAP API.

Features

Supported Frameworks

Announcements and updates

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

Getting started

  1. Install your library. We recommend using the following Nuget distribution:

    • Google.Dfp: Ad Manager API DotNet Client Library

    You can learn more about the nuget package manager at http://www.nuget.org. For other distribution options, see the alternative distribution options below.

  2. Setup your OAuth2 credentials.

    The and Ad Manager API uses OAuth2 as the authentication mechanism. Follow the appropriate guide below based on your use case.

    If you're accessing an API using your own credentials...

    If you're accessing an API on behalf of clients...

Alternative distribution options

Binary distribution

The binary distribution of the Ads API .NET library consists of a precompiled version of the library as a .NET assembly, code examples for using the library, and library documentation. If you are interested in just using the library and not in its internals, and you don't use nuget package manager in your development environment, then you should download this distribution.

The contents of this distribution are as follows:

  \
    \lib
      - Precompiled assemblies.
      - Documentation xmls for the assemblies.
    \examples
       Code examples, in C# and VB.NET (when available).
    README
    ChangeLog
    COPYING
    Visual Studio solution file

To run the code examples:

Alternatively, 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.).

To use the library in a new project:

// Create an appropriate AdsUser instance.
AdManagerUser user = new AdManagerUser();

// Create the required service.
using (NetworkService networkService = user.GetService<NetworkService>())
{
    // make calls to service class.
}

You can refer to this wiki article for more details.

How to enable logging

See https://github.com/googleads/googleads-dotnet-lib/wiki#logging for details.

Miscellaneous

Wiki

Issue tracker

API Documentation:

Support forum

Authors