Hi guys,
I want to use non-AdSense ads in several spots, and am trying to understand exactly how to implement them. Your ad documentation refers to this sequence of code:
<div class=”td-visible-desktop”>

</div>
and so on for different sizes.
What I’m not sure of (being rubbish at code!) is where exactly I put my code, since it doesn’t look like the code you have. An example of my ad code is:
<script id=”mNCC” language=”javascript”> medianet_width=’600′; medianet_height= ‘120’; medianet_crid=’708473874′; </script> <script id=”mNSC” src=”http://contextual.media.net/nmedianet.js?cid=8CUF92N71″ language=”javascript”></script>
Do I replace the entire
paragraph with my code?
Many thanks,
stuart
Ah. It translated the code into an image. Hope you still understood my meaning!
Hi,
Our ad system was designed to work with adsense code and make it responsive for different screen sizes. I’m not sure if your code will work with those divs, but you can try to use those divs but you have to specify size for different screens size like our example there. Using only <div class="td-visible-desktop"> it will hide your ad on other screen sizes(than desktop).
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Thank you Alin. I realise that I would need to repeat with different ad sizes for different screen sizes, but was just using the desktop example rather than all sizes to prevent my post being too long!
What I was getting at was whether I replaced the whole line with my entire code 
<script id=”mNCC” language=”javascript”> medianet_width=’600′; medianet_height= ‘120’; medianet_crid=’708473874′; </script> <script id=”mNSC” src=”http://contextual.media.net/nmedianet.js?cid=8CUF92N71″ language=”javascript”></script>
I’ll give it a go and see what happens!
Hi,
Those ad codes aren’t handled by theme’s ad system. Those ad spots only work for adsense ad codes other ad codes are rendered as entered by the user so for other types of ad codes you can use plugins like: Simple Ads Manager or AdRotate and place the ad shortcode inside theme’s ad spots which will be rendered by the theme.
You can also use wp text widget which will also render your ad codes and place the ads using page builder.
Hope this helps!
Thanks
Hi Lucian, thanks for your response. However, I tried putting the ad codes in as follows, and it seems to be working perfectly!
<div class="td-visible-desktop">
<script id="mNCC" language="javascript"> medianet_width='600'; medianet_height= '120'; medianet_crid='506675382'; </script> <script id="mNSC" src="http://contextual.media.net/nmedianet.js?cid=8CUF92N71" language="javascript"></script>
</div>
<div class="td-visible-tablet-portrait">
<script id="mNCC" language="javascript"> medianet_width='468'; medianet_height= '60'; medianet_crid='703118392'; </script> <script id="mNSC" src="http://contextual.media.net/nmedianet.js?cid=8CUF92N71" language="javascript"></script>
</div>
<div class="td-visible-phone">
<script id="mNCC" language="javascript"> medianet_width='300'; medianet_height= '250'; medianet_crid='266237453'; </script> <script id="mNSC" src="http://contextual.media.net/nmedianet.js?cid=8CUF92N71" language="javascript"></script>
</div>
Many thanks,
stuart
