自
2025 年 9 月 8 日起,每個新委刊項都必須聲明是否會放送歐盟政治廣告。如果透過 Display & Video 360 API 和 SDF 上傳的檔案未提供聲明,系統就會失敗。如要進一步瞭解如何更新整合服務以進行這項聲明,請參閱
淘汰項目頁面。
FrequencyCap
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
設定可控制使用者在指定時間範圍內看到相同廣告的次數。
JSON 表示法 |
{
"unlimited": boolean,
"timeUnit": enum (TimeUnit ),
"timeUnitCount": integer,
"maxImpressions": integer,
"maxViews": integer
} |
欄位 |
unlimited |
boolean
是否套用無上限的展示頻率上限。如果這個欄位設為 true ,則其他展示頻率上限欄位將不適用。
|
timeUnit |
enum (TimeUnit )
套用展示頻率上限的時間單位。 unlimited 為 false 時為必填。
|
timeUnitCount |
integer
展示頻率上限的持續時間 (以 timeUnit 為單位)。 unlimited 為 false 時為必填。根據 timeUnit 的值,適用下列限制:
TIME_UNIT_MONTHS - 必須為 1
TIME_UNIT_WEEKS - 必須介於 1 至 4 之間
TIME_UNIT_DAYS - 必須介於 1 至 6 之間
TIME_UNIT_HOURS - 必須介於 1 至 23 之間
TIME_UNIT_MINUTES - 必須介於 1 到 59 之間
|
maxImpressions |
integer
使用者在這個期間內看到相同廣告的次數上限。必須大於 0。 如果 unlimited 為 false ,且未設定 maxViews ,則為必要欄位。
|
maxViews |
integer
選用設定。使用者在這個期間內點擊或完整觀看廣告的次數上限,超過上限後就不會再向使用者放送廣告。必須大於 0。 僅適用於 YouTube 和合作夥伴資源。 如果 unlimited 為 false ,且未設定 maxImpressions ,則為必要欄位。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eFrequency capping settings determine how often a user sees the same ad within a specific timeframe.\u003c/p\u003e\n"],["\u003cp\u003eThese settings offer control over the maximum impressions or views a user receives within a defined period.\u003c/p\u003e\n"],["\u003cp\u003eYou can set frequency caps based on various time units (lifetime, months, weeks, days, hours, minutes) and limits.\u003c/p\u003e\n"],["\u003cp\u003eThe "unlimited" option bypasses other frequency cap settings, allowing for unlimited ad exposure.\u003c/p\u003e\n"],["\u003cp\u003eFor YouTube and Partner resources, you can set limits for both impressions (ad displays) and views (clicks or full views).\u003c/p\u003e\n"]]],[],null,["# FrequencyCap\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- [JSON representation](#SCHEMA_REPRESENTATION)\n\nSettings that control the number of times a user may be shown with the same ad during a given time period.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"unlimited\": boolean, \"timeUnit\": enum (/display-video/api/reference/rest/v3/TimeUnit), \"timeUnitCount\": integer, \"maxImpressions\": integer, \"maxViews\": integer } ``` |\n\n| Fields ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `unlimited` | `boolean` Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable. |\n| `timeUnit` | `enum (`[TimeUnit](/display-video/api/reference/rest/v3/TimeUnit)`)` The time unit in which the frequency cap will be applied. Required when [unlimited](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.unlimited) is `false`. |\n| `timeUnitCount` | `integer` The number of [timeUnit](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.time_unit) the frequency cap will last. Required when [unlimited](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.unlimited) is `false`. The following restrictions apply based on the value of [timeUnit](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.time_unit): - `TIME_UNIT_MONTHS` - must be 1 - `TIME_UNIT_WEEKS` - must be between 1 and 4 - `TIME_UNIT_DAYS` - must be between 1 and 6 - `TIME_UNIT_HOURS` - must be between 1 and 23 - `TIME_UNIT_MINUTES` - must be between 1 and 59 |\n| `maxImpressions` | `integer` The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when [unlimited](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.unlimited) is `false` and [maxViews](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.max_views) is not set. |\n| `maxViews` | `integer` Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when [unlimited](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.unlimited) is `false` and [maxImpressions](/display-video/api/reference/rest/v3/FrequencyCap#FIELDS.max_impressions) is not set. |"]]