我有点卡在配置 DFP 广告上。在官方插件中,我卡在这里:
如果 DFP 部分的 AdPlugin 无法解决问题,那么也许可以使用自定义代码,但我似乎也无法正确设置。![]()
查看广告位和 JavaScript 代码
页眉代码?
<!-- Start GPT Tag -->
<script async src='https://securepubads.g.doubleclick.net/tag/js/gpt.js'></script>
<script async src='https://cdn.biddercore.io/tagman/adprofit/sites/rikatillsammans.se/index.js'></script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs();
googletag.pubads().setCentering(true);
googletag.pubads().disableInitialLoad();
googletag.enableServices();
});
</script>
<!-- End GPT Tag -->
以及广告位(用于内部广告?)
<!-- GPT AdSlot 1 for Ad unit 'rikatillsammans.se_320x320_1' ### Size: [[1,1],[300,250],[320,100],[320,160],[320,320],[320,480]] -->
<div id='div-gpt-ad-1481365-1'>
<script>
googletag.cmd.push(function() {
googletag.defineSlot('/21806588294/rikatillsammans.se/rikatillsammans.se_320x320_1', [[1,1],[300,250],[320,100],[320,160],[320,320],[320,480]], 'div-gpt-ad-1481365-1')
.addService(googletag.pubads());
googletag.display('div-gpt-ad-1481365-1'); });
</script>
</div>
<!-- End AdSlot 1 -->
<!-- GPT AdSlot 2 for Ad unit 'rikatillsammans.se_320x320_2' ### Size: [[1,1],[300,250],[320,100],[320,160],[320,320],[320,480]] -->
<div id='div-gpt-ad-1481365-2'>
<script>
googletag.defineSlot('/21806588294/rikatillsammans.se/rikatillsammans.se_320x320_2', [[1,1],[300,250],[320,100],[320,160],[320,320],[320,480]], 'div-gpt-ad-1481365-2')
.addService(googletag.pubads()); googletag.cmd.push(function() {
googletag.display('div-gpt-ad-1481365-2'); });
</script>
</div>
<!-- End AdSlot 2 -->
<!-- GPT AdSlot 3 for Ad unit 'rikatillsammans.se_980x240' ### Size: [[1,1],[970,250],[980,120],[980,240],[980,300],[980,360],[980,400],[980,480]] -->
<div id='div-gpt-ad-1481365-4'>
<script>
googletag.cmd.push(function() {
googletag.defineSlot('/21806588294/rikatillsammans.se/rikatillsammans.se_980x240', [[1,1],[970,250],[980,120],[980,240],[980,300],[980,360],[980,400],[980,480]], 'div-gpt-ad-1481365-4')
.addService(googletag.pubads());
googletag.display('div-gpt-ad-1481365-4'); });
</script>
</div>
<!-- End AdSlot 3 -->
因此,我正在寻找一位熟悉 Discourse 的人来帮助我正确设置它?我愿意接受按小时付费或固定价格的报价。