I've thought some more about this and have come up with a different approach - but one I need help with as I'm not sure how to do it; hide the style chooser from guests!
Pretty sure I suggested that first
http://xenforo.com/community/thread...or-registered-members-only.53374/#post-570394
<script type='text/javascript'>
var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
if (width > 730) {
display 728x90 leaderboard invocation code
}
</script>
<script type='text/javascript'>
var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
if (width < 729) {
mobile-friendly ad invocation code
}
</script>
This is the nature of Responsive. Not sure why people are blaming XenForo.I concur with @Clickfinity that we lack server side control.
I'm glad you are getting some assistance from others in this thread because blocking your users from having a good mobile experience just for ads would be a bit shortsighted.No, I'll disable responsive. A feature that forces me to change advertisers because they don't offer the 'right' code isn't really useful, sorry.
Google Adsense has published full instructions and code examples on how to swap in different ad blocks based on Responsive, and it's completely acceptable to their Terms of Service.I have 2 ad networks as well. Adsense and tribal fusion. I hope I can find a solution for my 2nd ad network to work responsively.
To follow-up on BSA Pro - they're setting me up with a demo so I can see how it all works (and better understand the pricing model to know whether it would be worth the cost to move up to). The key element is obviously the ability to set-up responsive ad slots / code, but it offers other features such as direct sales, use on sites that are not approved for the BSA Marketplace, integration with the Marketplace for CycleChat, etc. - so I'll feedback here for anyone who's interested as I know other people use BSA Marketplace too.
I still think you should go the way of DfP, then you can still use BSA and any other ad platform you want. I've just about cracked it in regards to getting my ads set up. Its been a lot of trial and error, but they are working and are responsive as they can be.I've decided to close my BSA account and go wholesale Adsense for the 1.2 upgrade. I do feel somewhat backed into a corner over it, but on reflection it would be a shame to deny my membership the responsive design.
Interestingly, on July 22nd Google is automatically rolling Adwords cusotmers into Enhanced Campaigns - forcing them to include mobile ads in every campaign - something the more astute publishers should be aware of and looking to capitalise on ... perhaps with a responsive site design eh?
Interesting times.![]()
Once I've full worked out any kinks, I'll share with you the step by step to get it set up,
Yea, I had problem with with the reporting of impressions as well, originally it was reporting impressions for ads that I'd not even put on my site, but I'd figured that out as well its to do with the single call option.Thanks - I've used DfP in the past but had an issue with impressions / revenue reporting when compared with straight Adsense ad calls (Adsense seemed more favourable), so I reverted back.
I'm very interested to see how others approach ads in their responsive layout though, and think it'll be good for us all to share our experiences here so we can all get the best results for our sites / revenue. I've watched your other thread where you're hammering out the responsive code ...![]()
I'll trade you ...
Why not use this?for DFP / Adsense, i just put the usual ad setup stuff for every ad type in page_container HEAD
then wrapped the ad invocation code in a bit of JS to detect screen width
Code:<script type='text/javascript'> var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if (width > 730) { display 728x90 leaderboard invocation code } </script> <script type='text/javascript'> var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if (width < 729) { mobile-friendly ad invocation code } </script>
Why not use this?
https://support.google.com/adsense/answer/1354736?hl=en
I tried it with epoms ads, but nothing display.I run ads from other agencies in the same spots, so i need some way to cater for their non-responsive ads too
<script type='text/javascript'>
var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
if (width < 729) {
<!-- BEGIN TAG - DO NOT MODIFY -->
<script type="text/javascript">
<!--
epom_key = "1bebc3691b5ff78dabeaeb2a3c33e9c2";
epom_code_format = "ads";
epom_ads_host = "//www.adshost2.com";
epom_click = "";
epom_custom_params = {};
epom_width = "300";
epom_height = "250";
document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");
//-->
</script>
<!-- END TAG -->
}
</script>
I tried it with epoms ads, but nothing display.
Like:
HTML:<script type='text/javascript'> var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if (width < 729) { <!-- BEGIN TAG - DO NOT MODIFY --> <script type="text/javascript"> <!-- epom_key = "1bebc3691b5ff78dabeaeb2a3c33e9c2"; epom_code_format = "ads"; epom_ads_host = "//www.adshost2.com"; epom_click = ""; epom_custom_params = {}; epom_width = "300"; epom_height = "250"; document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>"); //--> </script> <!-- END TAG --> } </script>
<script type="text/javascript">
</script>
<!--END TAG -->
We use essential cookies to make this site work, and optional cookies to enhance your experience.