Jump to content

Help with Advertisements for Desktop & Mobile


mwcboard

Recommended Posts

I read this information:

And it's not very clear.  I created 2 ad units for the top of my site, 1 for desktop 1 for mobile.  I used the "ipsresponsive_showDesktop" in the desktop on and the "showMobile" in the mobile one.  However, I am getting mobile advertisements on my desktop, specifically when I click on a thread.  Do I have to do all of this within the same ad unit?  Currently I'm using adsense & "responsive" ads, but I'm moving away from adsense to another advertiser and they do not offer responsive ads, only 728x90 & 300x50.  Any help is appreciated.  

Link to comment
Share on other sites

I do this:

<div class="adslot_1">
ad-code
</div>

<div class="adslot_2">
ad-code
</div>

.adslot_1 { width: 300px; height: 200px; }
@media (min-width:500px) { .adslot_1 { width: 500px; height: 90px; } }
@media (min-width:1150px) { .adslot_1 { width: 728px; height: 90px; } }
@media (min-width:1400px) { .adslot_1 { width: 980px; height: 120px; } }
.adslot_2 { width: 300px; height: 200px; }
@media (min-width:500px) { .adslot_2 { width: 500px; height: 90px; } }
@media (min-width:900px) { .adslot_2 { width: 728px; height: 90px; } }
@media (min-width:1100px) { .adslot_2 { width: 980px; height: 120px; } }

----------------------------------

Because Google Adsense doesn´t really like the system in the post above, due to the max three ads per page.
And the above way only hides the ads, but they are still called for if using Adsense.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...