简体   繁体   English

在HTML5游戏中插入广告

[英]Inserting ads in HTML5 game

I want to insert ads in an HTML5 game using Google IMA SDK and DFP like here . 我想使用谷歌IMA SDK和DFP喜欢HTML5游戏中插入广告的位置 I managed to display video ad following the guide (even though it's for video content) and looking at how it's done in the game mentioned earlier. 我设法按照指南显示了视频广告(即使它是针对视频内容的),并研究了它在前面提到的游戏中的效果。 But I'm using sample ad tag from the guide: 但我使用的是指南中的示例广告代码:

http://pubads.g.doubleclick.net/gampad/ads?sz=640x360&iu=/6062/iab_vast_samples/skippable&ciu_szs=300x250,728x90&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&correlator=[timestamp]

and not the ad tag generated in the DFP. 而不是DFP广告管理系统中生成的广告代码。 If I insert it instead I get an error The VAST response document is empty. 如果我插入它,则会收到错误消息The VAST response document is empty. . Probably I messed up something, since I couldn't find any guide how to insert such ads from the beginning: where to sign up, how to generate tags and so on. 可能我搞砸了,因为我找不到从一开始就如何插入此类广告的指南:在哪里注册,如何生成标签等。 I heard also that I must send to Google an example page for approval. 我还听说我必须将示例页面发送给Google进行批准。 Where? 哪里? What page? 哪一页? It's all so confusing, tutorials are mostly irrelevant or outdated and I'm newbie at this, so I'm asking: is there any up to date guide about it, or could someone at least write what should I do step-by-step? 一切都很令人困惑,教程大多无关紧要或过时了,我是新手,所以我问:是否有关于它的最新指南,或者有人至少可以写我应该逐步做的事情?

If your using html5. 如果您使用的是html5。

I would recomend using just using adsense code inside a Modal. 我建议仅在Modal中使用adsense代码。 http://www.webdesignerdepot.com/2012/10/creating-a-modal-window-with-html5-and-css3/ http://www.webdesignerdepot.com/2012/10/creating-a-modal-window-with-html5-and-css3/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM