Hello,

I'm using drupal and adsense module for a long time. Last week I started a new project. I wanted to try wordpress and I implement that project with wordpress instead of drupal. I used adsense module written by google with wordpress. I noticed this new website's responsive adsense ads in mobile device are awesome. Ads are bigger and more attractive.

Than I think this may be because of the content of the website and I implement same website and same content with drupal 7 and adsense module. But responsive ads from drupal 7 website are too small and not attractive. I used bootstrap theme at drupal.

Here are the links of both websites:

Wordpress website link: http://www.review4gadgets.com
Drupal 7 website link: http://d7test.kteknoloji.com

I'm using Chrome browser on android 5.0 handset which has 1080x1920 resolution. Please test with similar device. Do not test with desktop browser, because I don't reproduce same problem with desktop browsers.

Any idea why there is a difference between ads in mobile devices and how to get better ads with drupal as with wordpress?

First picture was taken from wordpress, second taken from drupal.

Thanks

Comments

coolman7 created an issue. See original summary.

coolman7’s picture

Issue summary: View changes
coolman7’s picture

Issue summary: View changes
coolman7’s picture

Issue summary: View changes
StatusFileSize
new602.66 KB
new752.46 KB
coolman7’s picture

Issue summary: View changes
coolman7’s picture

StatusFileSize
new520 bytes
new1 KB

As far as I understand wordpress' adsense module asks for 336x280 sized ads from adsense. Bu drupal adsense module asks without size and google determines the size.

I have modified drupal's adsense module to ask google 336x280 sized ads for mobile devices. I have made a lot of modifications. I tried to compile as a patch here. Please note that I am not experienced to generate patch files. There may be some mistakes while creating patch files. Be careful.

PS: I installed mobile module detect to detect if device is mobile or not: https://www.drupal.org/project/mobile_detect

jcnventura’s picture

Status: Active » Closed (works as designed)

You're the one who must provide on your theme for the space required for the responsive ads.. If you want fixed sized ads, the module also provides for that..

The proposed way is simply too strange. It hardcodes a fixed size, while asking for the responsive ad? You should reserve space for your ads in your theme, and make it in a way that scales with your device size.. I understand Google would harcode ad sizes in their Wordpress plugin. Most Wordpress users wouldn't know what to do when asked about modifying their theme's CSS. But this is not Wordpress.