Method: advertisers.channels.list
HTTP 请求
GET https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/channels
网址采用 gRPC 转码语法。
路径参数
参数 |
联合参数 owner 。必需。用于标识拥有这些渠道的 DV360 实体。它可以是合作伙伴,也可以是广告客户。owner 只能是下列其中一项: |
advertiserId |
string (int64 format)
拥有相应渠道的广告客户的 ID。
|
查询参数
参数 |
pageSize |
integer
请求的页面大小。 必须介于 1 到 200 之间。如果未指定,则默认为 100 。如果指定的值无效,则返回错误代码 INVALID_ARGUMENT 。
|
pageToken |
string
标识服务器应返回的结果页面的令牌。 通常,这是上次调用 channels.list 方法时返回的 nextPageToken 值。如果未指定,则返回第一页的结果。
|
orderBy |
string
表示要按哪个字段对此列表进行排序。可接受的值包括:
displayName (默认)
channelId
默认排序顺序为升序。如需将字段指定为降序,应将后缀“desc”添加到字段名称中。示例:displayName desc 。
|
filter |
string
允许按渠道字段进行过滤。 支持的语法:
- 频道的过滤表达式最多只能包含一个限制条件。
- 限制的格式为
{field} {operator} {value} 。
- 所有字段都必须使用
HAS (:) 运算符。
支持的字段:
示例:
- 显示名称包含“google”的所有渠道:
displayName : "google" 。
此字段的长度不得超过 500 个字符。 如需了解详情,请参阅我们的过滤 LIST 请求指南。
|
联合参数 owner 。必需。用于标识拥有这些渠道的 DV360 实体。它可以是合作伙伴,也可以是广告客户。owner 只能是下列其中一项: |
partnerId |
string (int64 format)
拥有相应频道的合作伙伴的 ID。
|
响应正文
如果成功,则响应正文包含一个 ListChannelsResponse
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/display-video
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-25。
[null,null,["最后更新时间 (UTC):2025-02-25。"],[[["Lists channels for an advertiser or partner using the `ListChannels` method."],["Requires specifying the owner (either `advertiserId` or `partnerId`) as a path parameter."],["Supports optional query parameters like `pageSize`, `pageToken`, `orderBy`, and `filter` for customizing results."],["Request body should be empty, and the response contains a `ListChannelsResponse` object upon success."],["Needs authorization with the `https://www.googleapis.com/auth/display-video` scope."]]],["This content outlines the process of listing channels for a partner or advertiser via the Display & Video 360 API. The `GET` request to the specified URL uses path parameters like `advertiserId` to identify the owner. It supports query parameters including `pageSize`, `pageToken`, `orderBy`, and `filter` for pagination, sorting, and filtering. The request body must be empty, and successful requests return a `ListChannelsResponse`. Authorization requires the `https://www.googleapis.com/auth/display-video` OAuth scope.\n"]]