如何将Google Adsense放入GWT中

如何将Google Adsense放入GWT中,第1张

如何将Google Adsense放入GWT中

您可以将Adsense中的javascript代码放在GWT开头的单个HTML页面中。这样,广告将不会显示在与GTW相同的区域中,而是在GWT代码上方/下方显示。对于广告来说可以。

此示例将横幅放在应用程序上方:

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <meta http-equiv="content-type" content="text/html; charset=UTF-8">    <title>www.javaoracleblog.com</title>    <script type="text/javascript" language="javascript" src="com.javaoracleblog.aggregator.nocache.js"></script>  </head>  <body><script type="text/javascript"..ADsense pre here </script>    <!-- OPTIONAL: include this if you want history support -->    <iframe src="javascript:''" id="__gwt_historyframe" tabIndex='-1' ></iframe>  </body></html>

为了向Google WT指示可以信任Google adsense的站点,您需要在-whitelist命令行参数中添加一个正则表达式匹配的URL。

请注意,这可能无法解决上述“我为什么转储GWT”文章中描述的问题。



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5008652.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-14
下一篇2022-11-14

发表评论

登录后才能评论

评论列表(0条)

    保存