这个website快速解释了dsp(需求方平台)如何进行cookie同步。
根据该网站,当用户访问在线零售网站时,如果该零售网站与DSP1
合作,则DSP可以删除http cookie。
当用户访问包含广告资源的其他网站时,SSP会尝试通过以下内容同步Cookie
After SSP123 selects a winning bidder though, it runs one last piece of javascript that forces user123 to call out to a handful of regular bidders, including DSP456.
我的问题是,一个forces user123 to call out
网站的来源不同?
此外,如果SSPcookieXYZ
SSPcookieXYZ
只能访问SSP123
,因为它只是一个仅限http的cookie,url = 'https://www.metal-archives.com'
req = request.Request(url, headers={"User-Agent": "foobar"})
try:
response = request.urlopen(req)
except (ssl.SSLError, URLError):
# Try to use the older TLSv1 to see if we can fix the problem
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
response = request.urlopen(req, context=context)
如何传递给DSP?
答案 0 :(得分:1)
答案隐藏在句子的第一部分:
您的购物车页面上有 1×1像素,这迫使用户呼叫DSP456的网络服务器 (强调我的)
所以,说你是dsp123。您的购物车页面将包含以下代码:
<img src="https://dsp456/spacer.gif" />
这会向DSP456的服务器创建一个HTTP请求,作为响应的一部分,会有一个cookie。
第二步中的重要技巧是查询字符串。 在SSP123的网站上假设以下代码:
<img src="https://dsp456/spacer.gif?sspCookie=SSPcookieXYZ" />
请注意,这也可以是:
fetch('https://dsp456/track?sspCookie=SSPcookieXYZ')
现在请记住,我们已经在dsp456
设置了Cookie,现在dsp456
已经两个 Cookie - 来自sspCookie的信息以及自己的Cookie。< / p>