We've just joined an Google Adsense alternative as another advertising site, but they, unlike Google, do not have a responsive ad. They've said we're allowed to change the code to make it so, either through CSS or perhaps in the ad itself.
Is there an easy way to accomplish this? With Google's penchant for penalizing sites that aren't completely responsive these days, which we did last year, I'd like to keep all ads/photos responsive.
Below is the ad code they provided. Is there a way to make it responsive?
I was told that the following, used for Google Adsense, not Adbuff, was a template for how to do this, but boy, it's beyond me to understand what parameters go where.
Appreciate if anyone can point me in a good direction.
******
<script type="text/javascript">
var width = window.innerWidth || document.documentElement.clientWidth;
google_ad_client = "ca-publisher-id";
I would recommend that you read the AdSense Help. It should have everything that you need to know. If you have other specific questions, I can try and help but I am not an adsense expert.
Thanks, wmorri. My problem is I'm trying to convert the adsense template above to adbuff, so the Adsense help just gets me confused. Like when it says ad-unit-1 I'm not sure what correlates to that in Adbuff's code.
Maybe someone more used to converting Javascript knows what that means easily, ... I'm not a coder by trade, but am tasked, at my small company, with coding our webpages.
width="300" height="250 - In the iframe code this is setting the heighr and width. As the width is only 300 pixles I wouldn't worry about it. This way narrower than a smartphone in portrait mode. Not all page elements need to be repsonsive as long as Google can see the page as a whole is responsive
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!