Tagged: ajax portfolio
Hi!
I’m trying to place ads on my ajax portfolio preview text section with no success.
I’ve tried all possible ways :
– adding it manual using the html editor,
– using a shortcode,
– using a widget.
All ended up the same way : Adsense’s code is stripped!
This doesn’t happen when I use it in entries. It only affects the preview text.
Any fix for this?
Cheers!
Hi Adame!
Afaik you can’t use the adsense code with the portfolio preview feature because Google doesn’t allow to embed or generate the adsense code with ajax (see: http://productforums.google.com/forum/#!topic/adsense/oy3bC3-qJzw or http://stackoverflow.com/questions/435391/refresh-a-div-that-has-a-google-ad-inside-it#441425 ). The portfolio preview feature uses ajax to load the content and thus your content won’t show any google adsense ads. From a technical point of view it might be possible to “activate” the ads somehow but I’m not sure how and I wouldn’t recommend because you’re risking a permanent ban.
Cheers!
Peter
Peter,
Hmmm. So no need to force it.
Thanks for pointing that “Google Policy” thing out.
Cheers!