自
2025 年 9 月 8 日起,每个新订单项都需要声明是否会投放欧盟 (EU) 政治广告。Display & Video 360 API 和未提供声明的 SDF 上传操作将会失败。如需详细了解如何更新集成以进行此声明,请参阅我们的
弃用页面。
REST Resource: partners.channels.sites
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:网站
JSON 表示法 |
{
"name": string,
"urlOrAppId": string
} |
字段 |
name |
string
仅限输出。网站的资源名称。
|
urlOrAppId |
string
必需。相应网站的应用 ID 或网址。必须采用 UTF-8 编码,长度不得超过 240 个字节。
|
方法 |
|
批量修改单个渠道下的网站。 |
|
在渠道中创建网站。 |
|
从频道中删除网站。 |
|
列出渠道中的网站。 |
|
替换单个渠道下的所有网站。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eA Site represents an app or website belonging to a channel, identified by a name and a URL or App ID.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage sites using methods to create, delete, list, bulk edit, or replace them within a channel.\u003c/p\u003e\n"],["\u003cp\u003eSites are defined by a JSON structure containing the site's name and its URL or App ID.\u003c/p\u003e\n"]]],["Sites, representing apps or websites within a channel, are defined by a name and a URL or app ID. Actions available for managing sites include: creating a new site; deleting an existing site; listing all sites within a channel; bulk editing multiple sites at once; and replacing all sites within a channel. Sites data is represented in JSON format. Site names are output-only, while the app ID or URL are required for each site.\n"],null,["# REST Resource: partners.channels.sites\n\n| Display \\& Video 360 API is deprecated and will sunset on **October 7, 2025** . Migrate to [Display \\& Video 360 API v4](/display-video/api/reference/rest/v4) before sunset to avoid an interruption in service.\n- [Resource: Site](#Site)\n - [JSON representation](#Site.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Site\n--------------\n\nA single site. Sites are apps or websites belonging to a channel.\n\n| JSON representation |\n|--------------------------------------------------|\n| ``` { \"name\": string, \"urlOrAppId\": string } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The resource name of the site. |\n| `urlOrAppId` | `string` Required. The app ID or URL of the site. Must be UTF-8 encoded with a maximum length of 240 bytes. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------|\n| ### [bulkEdit](/display-video/api/reference/rest/v3/partners.channels.sites/bulkEdit) | Bulk edits sites under a single channel. |\n| ### [create](/display-video/api/reference/rest/v3/partners.channels.sites/create) | Creates a site in a channel. |\n| ### [delete](/display-video/api/reference/rest/v3/partners.channels.sites/delete) | Deletes a site from a channel. |\n| ### [list](/display-video/api/reference/rest/v3/partners.channels.sites/list) | Lists sites in a channel. |\n| ### [replace](/display-video/api/reference/rest/v3/partners.channels.sites/replace) | Replaces all of the sites under a single channel. |"]]