I just made my site responsive and when the screen is wide (more than 700px) it shows a side template on the side of the page with 2 ads. Using media queries when the screen is less than 700px it hides the side template and show two other templates, one at the bottom and the other one on top.
Is that the correct way to do it? would I get penalize for having 4 codes in the same page?