Hi,
I have been unsuccessfully trying to get Google Adsense working
on my tiddlywiki. I tried making a Macro for it and then calling the macro
in the tiddler I want the ad to show up. The macro code is:
config.macros.helloWorld = {};
config.macros.helloWorld.handler = function
(place,macroName,params,wikifier,paramString,tiddler){
// this will run when macro is called from a tiddler
google_ad_client = "ca-pub-3721757435752071";
google_ad_slot = "2111634986";
google_ad_width = 728;
google_ad_height = 90;
var NewScript=document.createElement('script')
NewScript.src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
document.body.appendChild(NewScript);
}
This does not work. Please excuse me if there are some silly mistakes or
assumptions, I hardly know much about javascript programming or web
programming, this is just some guess work I am trying by reading stuff here and
there.
I am curious as to why this does not work and if there is a possibility to make
this work.
Thanks!
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.