Widget:Adsense: Difference between revisions

From Elwiki
(Created page with "<noinclude>__NOTOC__ This widget allows you to embed '''[//www.google.com/adsense/ AdSense ads]''' on your wiki page. Created by Ike Hecht for [//www.wikiworks.com WikiWorks]...")
 
No edit summary
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>__NOTOC__
<nomobile>
This widget allows you to embed '''[//www.google.com/adsense/ AdSense ads]''' on your wiki page.
<div style="float:right;padding:3px;clear:both;">


Created by Ike Hecht for [//www.wikiworks.com WikiWorks].
<div id="AD-Elwiki-Widget-Main"></div>


== Using this widget ==
<script type="text/javascript">
For information on how to use this widget, see the [http://www.mediawikiwidgets.org/AdSense widget description page on MediaWikiWidgets.org].
window['nitroAds'].createAd('AD-Elwiki-Widget-Main', {
 
  "refreshLimit": 10,
== Copy to your site ==
  "refreshTime": 90,
To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
  "renderVisibleOnly": false,
</noinclude><includeonly><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  "refreshVisibleOnly": true,
<!-- Elwiki bottom large rec -->
  "sizes": [
<ins class="adsbygoogle"
    [
    style="display:inline-block;width:336px;height:280px"
      "300",
    data-ad-client="ca-pub-6118345385630775"
      "250"
    data-ad-slot="4466807211"></ins>
    ]
<script>
  ],
(adsbygoogle = window.adsbygoogle || []).push({});
  "report": {
 
    "enabled": true,
</script></includeonly>
    "wording": "Report Ad",
    "position": "bottom-right"
  }
});
</script>
</div>
</nomobile>

Latest revision as of 21:42, 6 May 2020

<script type="text/javascript"> window['nitroAds'].createAd('AD-Elwiki-Widget-Main', {

 "refreshLimit": 10,
 "refreshTime": 90,
 "renderVisibleOnly": false,
 "refreshVisibleOnly": true,
 "sizes": [
   [
     "300",
     "250"
   ]
 ],
 "report": {
   "enabled": true,
   "wording": "Report Ad",
   "position": "bottom-right"
 }

}); </script>