Jump to content

Help with Advertisements for Desktop & Mobile


mwcboard

Recommended Posts

Posted

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.  

Posted

Hello,

I put 2 images into root directory

desktop.thumb.png.ddaa29b3edefcd0dd140ad

mobile.thumb.png.c523a27b25f4ae10800a477

Then added into template

<img class='ipsResponsive_hidePhone ipsResponsive_hideTablet' src='{setting="base_url"}/desktop.png' />
<img class='ipsResponsive_hideDesktop' src='{setting="base_url"}/mobile.png' />

Result

desk.thumb.png.5a2df63670dde0825f181b5e7

mob.thumb.png.dab6e9feee0150af0a273c2862

 

Posted

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.

Archived

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

  • Recently Browsing   0 members

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