3 ms·
As far as I understand, this will just set ad options dynamically, before the ad is loaded. This is why it is not connected with window.onresize event, the ad
by grakic 14y ago
As far as I understand, this will just set ad options dynamically, before the ad is loaded.
This is why it is not connected with window.onresize event, the ad is loaded just once and do not change.
- chrsstrm 14y agofrom http://support.google.com/adsense/bin/answer.py?hl=en&answer=48182 http://support.google.com/adsense/bin/answer.py?hl=en&an... Ad behavior AdSense code may not be altered, nor may the standard behavior, targeting or delivery of ads be manipulated in any way that is not explicitly permitted by Google. This includes but is not limited to the following: clicking Google ads may not result in a new browser window being launched, nor may Google ads be placed in an IFRAME. If you ask me, loading different units through conditionals qualifies as altered. Good way to get hit with the No Explanation Ban Hammer.
- grakic 14y agoAnd what if you do it server side (using user-agent and other info get before with javascript)? The ad placement is not altered, and it is not adsense code that is changed in any way. I understand you want to underline the risks. It is possible Google uses some automated site code screening which will flag this for a ban. Even than, doing it server site must be completely legit.
- chrsstrm 14y agoWe're not talking mobile vs. desktop, we're talking responsive layout controlled by media queries, which can't be determined until the code hits the browser and your js (Modernizr or similar) measures the window. UA measures the screen size, not the window size. Not to mention that in theory, you would only load one size, but changing the orientation of a device or resizing your desktop browser window can trigger another breakpoint and essentially hide your ad, making the whole exercise pointless. And yes, the main point is always act in fear of Google, until they announce responsive ads.