Wednesday, 12 September 2012

How to change Google AdSense Ads in this way ?

Google AdSense Officially says to use Mobile Ads for mobile websites. But that is meaningless for a responsive webdesign. What we can do is very easy :

We need a php script to detect the device, that is basically done by a responsive theme.
We need WordPress conditional tag to wrap and deliver mobile Ads when the device is mobile and full size when the device can accommodate Google AdSense Ads

How to change Google AdSense Ads in this way ?

First use Ad Injection Plugin. It is very nice plugin to add various difficult filters. You can easily use a PHP based mobile device identification script :

http://code.google.com/p/php-mobile-detect/

Now, the thing is simple, you probably know about WordPress using Conditional Tags. Now it is fully dependent on your WordPress Theme or Theme Framework how easily you can integrate them. For example, if a div class by default can detect a mobile device (that means it is using that php script) using only the conditional tags wrapped with div can change your Google AdSense Ads depending on the device.

This pain with Google AdSense Ads will not remain forever, they will make the javascript a kind of adaptable for all devices.

To read more, please visit here- Google AdSense Ads and Responsive Website Design

No comments:

Post a Comment