我正在使用 DFP 在网站中呈现广告。在 DFP 中,我配置了多个广告供应商。为了生成报告,我需要在生成对每个广告位的请求时保存。我怎样才能找到每个插槽的请求何时生成。我正在使用 DFP 多请求模式。
提前致谢
我正在使用 DFP 在网站中呈现广告。在 DFP 中,我配置了多个广告供应商。为了生成报告,我需要在生成对每个广告位的请求时保存。我怎样才能找到每个插槽的请求何时生成。我正在使用 DFP 多请求模式。
提前致谢
您可以使用 SlotRenderEndedEvent。
文档:https ://developers.google.com/doubleclick-gpt/reference#googletageventsslotrenderendedevent
googletag.cmd.push( function() {
googletag.pubads().addEventListener('slotRenderEnded', function(data) {
//saving data..
console.log(new Date().getTime());
console.log(data.creativeId);
});
});