自
2025 年 9 月 8 日起,每個新委刊項都必須聲明是否會放送歐盟政治廣告。如果透過 Display & Video 360 API 和 SDF 上傳的檔案未提供聲明,系統就會失敗。如要進一步瞭解如何更新整合服務以進行這項聲明,請參閱
淘汰項目頁面。
REST Resource: advertisers.channels.sites
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:網站
單一網站。「網站」是指屬於某個頻道的應用程式或網站。
JSON 表示法 |
{
"name": string,
"urlOrAppId": string
} |
欄位 |
name |
string
僅供輸出。網站的資源名稱。
|
urlOrAppId |
string
必要欄位。網站的應用程式 ID 或網址。必須採用 UTF-8 編碼,長度上限為 240 位元組。
|
方法 |
|
大量編輯單一管道下的網站。 |
|
在管道中建立網站。 |
|
從管道中刪除網站。 |
|
列出頻道中的網站。 |
|
替換單一管道下的所有網站。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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 like bulkEdit, create, delete, list, and replace to control their association with channels.\u003c/p\u003e\n"],["\u003cp\u003eSite data is represented in JSON format with the fields \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003eurlOrAppId\u003c/code\u003e, where \u003ccode\u003ename\u003c/code\u003e is read-only and system-generated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eurlOrAppId\u003c/code\u003e field is required when creating a site and must be UTF-8 encoded with a maximum length of 240 bytes.\u003c/p\u003e\n"]]],[],null,["# REST Resource: advertisers.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/advertisers.channels.sites/bulkEdit) | Bulk edits sites under a single channel. |\n| ### [create](/display-video/api/reference/rest/v3/advertisers.channels.sites/create) | Creates a site in a channel. |\n| ### [delete](/display-video/api/reference/rest/v3/advertisers.channels.sites/delete) | Deletes a site from a channel. |\n| ### [list](/display-video/api/reference/rest/v3/advertisers.channels.sites/list) | Lists sites in a channel. |\n| ### [replace](/display-video/api/reference/rest/v3/advertisers.channels.sites/replace) | Replaces all of the sites under a single channel. |"]]