Desktop ad shows in mobile viewport

Posted in: Newspaper
Post count: 6

Hello, I have a non-Adsense 728×90 ad that shows in the mobile viewport and stretches off the page. I have followed every advice in other posts on this forum. I even created Custom ad 1 and Custom ad 2 in the Theme panel and configured them in the ad box. But the same ad code shows in all 4 viewports. So I was able to show a mobile ad for Custom 1, but the same ad also shows for desktop and tablet. Imgur image Why not make the 4 viewports separate instead of all 4 the same?

My question: Is there a way to hardcode the mobile ad so it doesn’t show on desktop?

Post count: 35449

Hi,
If you want to use banners, you can use the ad box element and an image ad tab you can set separate images for each viewport in part – https://forum.tagdiv.com/ads-adsense-overview/https://prnt.sc/sFuGTyN9FbSh

Post count: 6

Hello, Calin. Thank you for replying. I’m not using image ads, I’m using non-Google banner ads that are not images. I pasted the ad code into Custom ad 2 in the Theme panel. Then I dragged the box ad to the mobile header. Then I chose Custom ad 2 in TagDiv composer. However, when I click the other viewports, the Custom ad 2 code shows in all 4 viewports. I only want the mobile ad to show on mobile.

Post count: 20685

Hi,

If the ad is placed in the mobile header, then it’s quite unusual if its displayed on desktop. The whole mobile header is hidden on desktop, so why would just the ad from it appear. Could we take a look at this on your website? You can provide a link here, or by email at contact@tagdiv.com Then we can inspect the ad to see what happens exactly.

Thank you!

Post count: 6

Hello, Simion. Thank you for replying. I am still having this issue. I sent an email with my blog link and the link to this forum post.

Post count: 6

Hello, Simion. Thank you for your help. I placed the mobile code in the header. But the ad is not centered. The logo and search button push the ad to the right. How do I move the logo and search button under the mobile ad so I can center the ad? Thank you! https://i.postimg.cc/GmbzRNyW/mobile-ad1.jpg

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.