How to Add Adsense the RIGHT way

So after reading 100's of posts and having one of my friends message me on Skype telling me that it doesn't work, I got to looking into this and discovered that a lot of people were having the same issues and for the people that mentioned about going to phpmyadmin, well for some people this is not even possible, so following the steps below will get Adsense on your website easy as pie.

To add Adsense to your domain, do the following:


A

Here we've the original code:

<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxxxxxxxxx";
/* weare bottom */
google_ad_slot = "xxxxxxxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 

B

For the ad to display correctly in dolphin and not strip out the code do as follows

1. On this line that says <script type="text/javascript"><!-- you need to remove the <!-- so its just <script type="text/javascript">

2. We then need to change the <script type="text/javascript"> to <script type="text/javascript">// <![CDATA[

3. Looking down the script we need to change the //--></script> <script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> to

// ]]></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

C

The highlighted text // ]]> is what needs to be changed as we've done above, and thus adding this to our code makes the changes and displays the ad on the site. Tested with version 7.0.9

 

Once we've finished we're left with the following code which has been altered:

D
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-xxxxxxxxxxxx";
/* weare bottom */
google_ad_slot = "xxxxxxxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
// ]]></script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>

E

You will notice on the original version we had <script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> well we needed to modify this to display the ad, clicking the ad also redirects to where it needs to go.

F

So what do we do here?

1. Open html block

2. Click the html option

3. Paste the new code

4. Click the update

5. Reclick the html option (This is where people make the mistake of just pressing save, this will strip out the code)

6. Click update

7. Click save

8. Enjoy the Ad.

Quote · 3 May 2012

I have noticed on some computers for some reason when following these steps it strips out the code and still leaves the html window open, I dont know why it does this, but am working on updating this further down the track.

Quote · 3 May 2012

Try reading this topic

http://www.boonex.com/forums/?action=goto&my_threads=1#topic/How-Do-I-Add-Facebook-Fans-Box--2010-12-14.htm

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 3 May 2012

Sorry newton but too many posts saying that it doesnt work for them and the entire thread is messed up.

Quote · 3 May 2012

 

Sorry newton but too many posts saying that it doesnt work for them and the entire thread is messed up.

 your right, does that allow you to make the adsense box center in the block?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 3 May 2012

Huh? Seems to me that because I have found an alternative way of adding adsense some people just dont like it, not my fault the other thread is messy.

Quote · 5 May 2012

Didn't work for me.

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 5 May 2012

 

Huh? Seems to me that because I have found an alternative way of adding adsense some people just dont like it, not my fault the other thread is messy.

 I was asking if your able to center the ad in a the block doing it your way?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 5 May 2012

Miscommunication, sorry. yes the ad is centered.

 

Are you using Internet Explorer or Firefox or some other browser? I have noticed there is an issue with the css in Internet Explorer compared to Firefox when it comes to inserting the ads.

Quote · 5 May 2012

 Firefox mostly and sometimes Chrome but I checked it only with FF.

 

Miscommunication, sorry. yes the ad is centered.

 

Are you using Internet Explorer or Firefox or some other browser? I have noticed there is an issue with the css in Internet Explorer compared to Firefox when it comes to inserting the ads.

 

Sometimes communicating your problem and putting it out there is enough to solve it
Quote · 5 May 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.