[ad_1]
[ADINSERTER VIEWPORT=”Phone” css=”min-height: 50px;”] [ADINSERTER ROTATE name=”320_50_1″ share=”50″]phone_ad_1 [ADINSERTER ROTATE name=”320_50_2″ share=”50″]phone_ad_2
I wanted to insert different banners based on Desktop and Phone Viewport. It works fine without ROTATE.
However, now I have 2 banners each for Desktop and Phone. I’m using the below code but it also inserts phone_ad_1 and phone_ad_2 even on Desktop and similarly, it also inserts desktop_ad_1 and desktop_ad_2 on Mobiles.
In short, it is picking all 4 ad units and rotating them irrespective of VIEWPORT.
[ADINSERTER VIEWPORT=”Desktop” css=”min-height: 90px;”] [ADINSERTER ROTATE name=”728_90_1″ share=”50″]desktop_ad_1 [ADINSERTER ROTATE name=”728_90_2″ share=”50″]desktop_ad_2[ADINSERTER VIEWPORT=”Phone” css=”min-height: 50px;”] [ADINSERTER ROTATE name=”320_50_1″ share=”50″]phone_ad_1 [ADINSERTER ROTATE name=”320_50_2″ share=”50″]phone_ad_2
