Connect with us

Wordpress Tips

Customizing Responsive AdSense Ads: 3 Ways

Many webmasters rely on ads to monetize their content. Using ads that are not responsive on a responsive site is not a great idea. If you are using AdSense, Google has done most of the hard work for you. You will just have to configure your ads properly to make them match your responsive design. Here are just 3 ways to customize your responsive AdSense ads for your site:

🛠️ Divi Builder drag & drop page builder for WP

screen-width

Specify an exact size per screen width: this is the approach we have used on many of our sites. You will just have to define ad sizes for different screen sizes.

horizontal-ads

Specify a general shape for ads: this approach is useful if you only want to display horizontal, vertical, or rectangle-shaped ads on your responsive site. For instance, we use rectangle ads in our sidebar and horizontal ads below our posts.

fixed-dimension

Specify a fixed dimension for your ads: want your ad to have a fixed height? You will just have to style it accordingly. The above code snippet lets you display ads with a fixed height of 90px.

Since many webmasters are making their websites responsive, spending some time to learn about all your AdSense ad options is not a bad idea. The good news is Google has plenty of useful information available for AdSense publishers.

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Wordpress Tips

To Top