You are not logged in.
Pages: 1
Hi,
is it possible to use an ad as a tile ? Until no I have not really an idea how to do this.
Offline
use an iframe inside the tile
Good advice is often confusing, but example is always clear.
Offline
Adsense in an iframe is not allowed.
Anyway, it should be perfectly possible adding adsense in a tile. Maybe in an AJAX subpage too with the (new) Asynchronous ads.
But it seems I can't find some adsense "test" code?
Offline
Ok, and what do you mean with a test code? If the ad could be displayed?
Offline
I mean some code where I can try/debug adsense with, without having my site applied to adsense.
Offline
I had been inactive, but can you give me one example how to use iframe in a tile?
So when you start with $tile[] = , what to do then?
Offline
$tile[] = array("type"=>"simple","group"=>0,"x"=>0,"y"=>0,'width'=>2,'height'=>1,"background"=>"#509601","url"=>"welcome.php",
"title"=>"Welcome","text"=>"<iframe src="http://www.google.com" width="300" height="145"></iframe>");
I think you posted yesterday some Google Adsense example code here, why did you remove it?
Offline
Uh, I removed it and posted another one. At least I thought I posted it
Thank you for the code, i tried this but this wasn't working really. I look now wheter it is.
Ok so now here again the code:
Synchron:
<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxxxxxxxxxxxxx";
/* test */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Asynchron:
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- test -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Offline
Thomas, can you help me?
Offline
If I use those I don't get anything. What should the xxxxx be replaced with?
Offline
The "ad-client with" 16 numbers is your publisher id in google adsense, which means all ad scripts with this number will send the click to this account, and the "ad-slot" with 10 numbers is the id for the ad itself.
Last edited by steebchen (21-09-2013 22:29:55)
Offline
Okay, I cannot try now but doesn't it work to just add that code as a "content" variable in a custom tile? (double check if the apotrophes " ' are right) (use single ones ( ' ) to put the google adsense code in)
Offline
Pages: 1