Integrating Google AdSense with DNN 6

by Goran Siric on Tuesday, September 20, 2011 6:47 AM

If you want to integrate Google AdSense adds with your DotNetNuke site here is how I did it:

First you need to login as Admin and add new HTML module to the page using Modules menu on the top of the page.

Move mouse over Manage button on the top left side of added module and from the menu select Edit content.

For the editor select Basic Text Box and for the Render mode select  Raw.

Copy and paste Google AdSense generated code into editor and save module.

After that you need to select invisible container for your module, so you don't have any border or header displayed around Google adds. 

To do this move mouse over  Manage button on the module, and select Settings from the menu. On the Page Setting tab uncheck Display Container option or  select Module Container which does not display any border or header arround content. In standard DarkKnight DNN theme this module container is: Host: DarkKnigth-Invisible

Author
Goran Siric

Blog about programming

3 comment(s) so far...

Anonymous 9/11/2012

Thanks!

 
Anonymous 4/15/2013

thanks for putting this information up!

 
Anonymous 1/30/2014

Hello is this still the best way to integrate Google AdSense with DNN 7?



If you found this useful,
you can buy me a coffe :)

By me a coffe through PayPal :)


Featured articles

AndEngine - Textures tips and tricks

What you should know abot textures before get started programming your first game.

GIMP script for creating Android icons at once

Script for creating Android icons for different screen resolutions at once. Icons can be saved using standard Android icons naming conventions and saved in appropriate folders.

Creating Android button with image and text using relative layout

Source code with examples how to use relative layout to create nice buttons with text and images in Android

Android application and the Internet

Tutorial about connecting to the web pages on the Internet from Android application, using both POST and GET web requests.