Chrome 协助测试提供了多种测试模式,可以预览在没有第三方 Cookie 的情况下,网站的行为模式。为了帮助出价方进行测试,出价请求包含 Chrome 的 cookie 弃用标签。出价方还可以使用预定位功能来过滤包含 Cookie 弃用标签的请求。
如需了解 Google Ad Manager 如何处理 Cookie 弃用标签,请参阅 Google Ad Manager 帮助中心。
出价请求
Google Authorized Buyers 出价请求协议
Chrome 的 Cookie 弃用标签在 BidRequest.Device 消息的 cookie_deprecation_label 字段中表示。此字段在公开 Beta 版协议中可用。
定义如下:
message BidRequest {
...
message Device {
...
// Chrome-facilitated cookie deprecation testing label as provided by
// Chrome.
// https://developer.chrome.com/en/docs/privacy-sandbox/chrome-testing/
optional string cookie_deprecation_label
}
optional Device device
}
OpenRTB 协议
Chrome 的 Cookie 弃用标签在 OpenRTB BidRequest.device.ext 消息中提供。定义如下:
message DeviceExt {
...
// Chrome-facilitated cookie deprecation testing label as received from
// Chrome.
// https://developer.chrome.com/en/docs/privacy-sandbox/chrome-testing/
optional string cdep;
}
示例
以下示例展示了 Google Authorized Buyers 和 OpenRTB 协议如何表示 Chrome 提供的标签。如果 Chrome 返回 label_only_3:
Google Authorized Buyers 协议 BidRequest:
device {
cookie_deprecation_label: "label_only_3"
}
OpenRTB BidRequest:
{
"device": {
"ext": {
"cdep": "label_only_3"
}
}
}
此扩展程序可在协议的公开 Beta 版中使用。
可用性
出价请求中是否存在 Chrome 弃用标签取决于现有的隐私保护措施和控制措施。例如,如果用户选择停用个性化广告,则 Chrome 提供的标签将不可用。
预定位维度
出价方可以在预定位配置中设置新的预定位维度,以过滤出具有 Chrome 标签的请求。每个预定位配置都可以包含一个或多个标签。
支持的标签包括:
| 模式 | 标签 |
| B |
|
| A |
|
例如,如果预定位配置具有 [label_only_3, label_only_4],则当请求包含 label_only_3 或 label_only_4 时,预定位配置会匹配。