作为 Chrome 协助测试的一部分,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 协议
OpenRTB BidRequest.device.ext
消息中会提供 Chrome 的 Cookie 弃用标签。定义如下:
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 出价请求:
{
"device": {
"ext": {
"cdep": "label_only_3"
}
}
}
此扩展程序可在该协议的公开 Beta 版中使用。
可用性
出价请求中存在的 Chrome 弃用标签会受到现有隐私保护措施和控制机制的影响。例如,如果用户选择停用个性化广告,则无法使用 Chrome 提供的标签。
预定位维度
出价方可以在预定位配置中设置新的预定位维度,以过滤带有 Chrome 标签的请求。每个预定位配置可以包含一个或多个标签。
支持的标签包括:
模式 | 标签 |
B |
|
A |
|
例如,如果预定位配置包含 [label_only_3, label_only_4]
,则当请求包含 label_only_3
或 label_only_4
时,预定位配置将匹配。