• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

googleads/googleads-dotnet-lib: Google Ads .NET client library

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

googleads/googleads-dotnet-lib

开源软件地址(OpenSource Url):

https://github.com/googleads/googleads-dotnet-lib

开源编程语言(OpenSource Language):

C# 100.0%

开源软件介绍(OpenSource Introduction):

Google Ads API .NET Client Library

This project hosts the .NET client library for the various SOAP-Based Ads APIs at Google - AdWords API and Google Ad Manager API.

The AdWords API will sunset on April 27, 2022.
Upgrade to the Google Ads API.

Features

  • Distributed via Nuget
  • Stub classes for all the supported API versions and services.
  • Helpful utilities
  • SOAP messages are logged, for easier debugging purposes
  • Automatic handling of SOAP headers
  • Easy management of credentials, authentication, and session information
  • Docs available in HTML and XML format.

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 of choice. We recommend using the following Nuget distributions:

AdWords API

Ad Manager API

  • 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.

  1. Setup your OAuth2 credentials.

The AdWords and Ad Manager APIs use 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. There are separate downloads for AdWords and Ad Manager APIs.

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:

  • Open Visual Studio solution file in the root folder of the binary distribution in Microsoft Visual Studio
  • Open App.config for the examples project and follow the instructions in the file to enter required configuration values.
  • Save and close App.config.
  • Open the Properties dialog for the Examples project (Right click the Examples project of your choice in the Solution Explorer and select the Properties option from the context menu.).
  • Navigate to the Debug Tab and enter the command line options. The command line options are of the form version.examplename. For instance, v201809.AddCampaign is the command line option to run AddCampaign example in v201603 version of the AdWords API.
  • Compile and run the Examples project.

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 a new Visual Studio project of your choice (for instance, a C# Windows application).
  • Copy the lib folder from the binary distribution to your project folder. Add references to all the assemblies in this folder in your project.
  • Add a reference to System.Web.Services in your project.
  • Copy examples\App.config to your project directory and add it to your project.
  • Edit the required keys in App.config. If your application has its own App.config, then you need to merge its contents with the contents of examples\App.config.
  • Make a call to the library, e.g.:
// Create an appropriate AdsUser instance.
AdWordsUser user = new AdWordsUser();

// Create the required service.
using (CampaignService service = (CampaignService) user.GetService(
     AdWordsService.v201809.CampaignService))
{
    // make more 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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap