【问题标题】:Location of Google .NET SDK documentation for DV360 API? #google-api-dotnet-clientDV360 API 的 Google .NET SDK 文档的位置? #google-api-dotnet-client
【发布时间】:2020-12-15 07:50:30
【问题描述】:

在 DV360 中构建工具来为我们的帐户自动化一些事情,我通过 NuGet 在 VS2019 Pro 中安装了 SDK。注意到 NuGet 包说明中提供的链接已损坏。

查看主 API 列表页面,我没有看到 DV360 API 的条目。

未列出: https://developers.google.com/api-client-library/dotnet/apis/

NuGet 中给出的链接(返回 404): https://developers.google.com/api-client-library/dotnet/apis/displayvideo/v1

【问题讨论】:

  • "NuGet 中给出的链接" - 哪个 NuGet 包?如果您可以提供一个 working 链接(即 NuGet 包)以及损坏的链接,那将非常有帮助...

标签: c# .net google-api-dotnet-client dv360


【解决方案1】:

DV360 还没有 .NET 特定的代码示例和示例。对于报告前 您可以参考他们的 API 文档 - https://developers.google.com/bid-manager/v1.1,其中列出了 DV360 平台上可用的所有资源和方法。

文档中提供的资源和方法可以通过 - Google.Apis.DoubleClickBidManager.v1_1.DoubleClickBidManagerService 包含在 Google.Apis.DoubleClickBidManager.v1_1 Nuget 包中的类访问。

示例 - 获取报告及其文件 - https://developers.google.com/bid-manager/v1.1/reports/listreports

public ListReportsResponse Get(long reportId)
{
    return DoubleClickBidManagerService.Reports.Listreports(reportId).Execute();
}

创建报告 - https://developers.google.com/bid-manager/v1.1/queries/createquery

public long Create(Query query)
{
    var createQueryRequest = DoubleClickBidManagerService.Queries.Createquery(query);
    var createQueryResponse = createQueryRequest.Execute();
    return createQueryResponse.QueryId ?? throw new InvalidOperationException("Response Query Id is null.");
}

有关错误,请参阅 - https://developers.google.com/bid-manager/core_errors

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-06
    • 1970-01-01
    • 1970-01-01
    • 2013-02-28
    • 1970-01-01
    • 1970-01-01
    • 2017-09-17
    相关资源
    最近更新 更多