adsence layout

Discussion in 'Blogging' started by xonica, Aug 30, 2009.

  1. xonica

    xonica Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    141
    Likes Received:
    36
    Occupation:
    Im a writer, predominantly erotica
    Location:
    Angus UK
    can someone explain to me how it is you add a block of ads into an actual blog post as i have seen on so many blogs .,..when i add the code for my adsence it just appears between the text not wrapped in it.. Im using blogger btw if this makes a duiference , and also is there any way it can be made so there is more then 3 blocks per page or no??
     
  2. keinehabe

    keinehabe Supreme Member

    Joined:
    Nov 4, 2008
    Messages:
    1,207
    Likes Received:
    472
    Gender:
    Male
    Occupation:
    -= CEO =-
    Location:
    Heaven
    Home Page:
    only 3 block and 2 link's spots per page , anyway it's highly recommended to use less spots (* tested ;) ) ...
    Code:
     <span style="float: left; padding-right: 5px;"> paste here your adsense code ;)</span>
    
    and you will have your ads blended on the posts ;)
     
  3. xonica

    xonica Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    141
    Likes Received:
    36
    Occupation:
    Im a writer, predominantly erotica
    Location:
    Angus UK
    hi there thanks for that , i cant seem to get that to work tho , is there a place in the style sheet or html i should place it? thank you!
     
  4. linder

    linder Newbie

    Joined:
    Dec 7, 2008
    Messages:
    19
    Likes Received:
    8
    Gender:
    Male
    Location:
    Nova Scotia Canada
    Hope this helps:

    Code:
    Adsense Ad in Blogger
    
    1.  Log into Blogger
    
    2.  Click on "Settings"
    
    3.  Click on "Template"
    
    4.  Click on "Edit Html"
    
    5.  Click on "Expand Widget Templates"
    
    6.  Search for:
    	
    		<data:post.body/>   or   <p><date:post.body/></p>
    
    7.  Type the following code BEFORE the code in step 6 above
    
    		For Adsense:
    
    <div class='post-body entry-content'>
    <div style="float: left;">
    <script type="text/javascript"><!--
    google_ad_client = "pub-YOUR ADSENSE CODE";
    google_ad_width = 336;
    google_ad_height = 280;
    google_ad_format = "336x280_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "000000";
    google_color_text = "000000";
    google_color_url = "000000";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div></div>
    that should work!
     
    • Thanks Thanks x 1
  5. xonica

    xonica Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    141
    Likes Received:
    36
    Occupation:
    Im a writer, predominantly erotica
    Location:
    Angus UK
    you star! I was searching all day to try and find that code , thanks a million!
     
  6. linder

    linder Newbie

    Joined:
    Dec 7, 2008
    Messages:
    19
    Likes Received:
    8
    Gender:
    Male
    Location:
    Nova Scotia Canada
    Hey no problem liberxon. Glad I could help.