Double click code

Posted in: Newspaper
Post count: 6

I use Double Click for Publishers and am having a difficult time getting it to work with the theme. Does the theme support it? I have tried putting some code in on the site here: bsupulse.com

Post count: 6

I was able to get this figured out so I will place what I figured out here as a reference in case others are also using double click.

First, in your header file you need to use the following code:

<script type=’text/javascript’ src=’//partner.googleadservices.com/gampad/google_service.js’>
</script>
<script type=’text/javascript’>
GS_googleAddAdSenseService(“ca-pub-your google ad sense pubid”);
GS_googleEnableAllServices();
</script>
<script type=’text/javascript’>
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “DFP inventory name spot1 here”);
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “DFP inventory name spot2 here”);
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “DFP inventory name spot3 here”);
GA_googleAddSlot(“ca-pub-your google ad sense pubid”, “rightsidebar_300x250″);

</script>
<script type=’text/javascript’>
GA_googleFetchAds();
</script>

Then in the theme file under the ads setting you place the following code in place:

<div style=”width:300px;height:250px;margin-top:10px;margin-left:auto;margin-right:auto”>
<script type=”text/javascript”>
GA_googleFillSlot(“rightsidebar_300x250”);
</script>
</div>

This works for me.

Post count: 6600

Glad that you have managed it.
Thanks for sharing!!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.