Hello everybody, I just got approved for Google Adsense and I'm trying to implement it using drupal. Now at first I thought I'd just post the ad code into every single one of my pages, but then I realized I could just post it as a block (the only problem with that as I'm not sure if it will just pick out relevant keywords for the page it's on or whether it will pick keywords from throughout the site). So I have google adsense on the right sidebar, but it sticks out a lot because the white ad banner which would blend in with the white background so the ads don't blatantly look like ads is surrounded by some gray stuff, presumably because the size of the right sidebar is predefined. Is there any way to get rid of the gray or change the size of the right sidebar?

Comments

syawillim’s picture

I take it you are using the AdSense module....if you go to administer>>settings>>adsense you will find options for doing what you want.

www.justapickle.com
blogging community for the socially conscious

www.slickfish.com.au
professional, affordable web site design, production and maintenance for small business

erdemkose’s picture

Use Google AdSense module. It is a little bit complicated to set it up but it gives you the ability to define and manage different ads blocks.

Is there any way to get rid of the gray or change the size of the right sidebar?

Which theme are you using?

--------------------------------------------------------------
http://erdemkose.com/

RobintheGoblin’s picture

OK, I downloaded and installed the adsense module, the only part that confused me was when it told me to add the Google Adsense Client ID to the profile info, I did that, but I don't know how to find my Client ID, I searched the Google Adsense but found nothing so I simply entered the email address that I registered my adsense account under, however I still see the google ads and apparently as the admin I'm not supposed to.

I'm using the default theme, lastly, what are the advantages to adding adsense through PHP code rather than simply adding it through a block?

erdemkose’s picture

Your Google AdSense ClientID starts with pub-. You can find it in the code that Google gives you.

Under administer >> settings >> adsense everything is explained. Read it carefully.

Advantages of using adsense module are:
1) adsense module tracks your clicks if you want. İt can report them by day or by page.
2) adsense module hides the block for administrator because Google wants so.
3) You can easily change your ClientID and also the colors and size and type of your adsense ads.
4) revenue sharing: if you have multiple authors on your site you can share the revenue.

--------------------------------------------------------------
http://erdemkose.com/

Chill35’s picture

If I put my Google Adsense code in a block, and let registered users the right to hide that block in their user settings, will my revenue decrease ?

If I use CSS (display:none) on the block will Google find out about it and will cut my revenues ?

Signed : someone who needs money but hates advertisement.

Chill35’s picture

My questions were dumb all right.

Just showing Google AdSense ads won't get me anything, it's when a visitor clicks on one of the ad links that I will earn a few cents.

Sorry about that.

kalashari’s picture

I wanna use google Adsense module for Drupal, but I don't want other 'regular' users to see AdSense ID field in their profiles... How do I turn that field off for regular useres?