Forgot to say this at the time, but this is a clear breach of AdSense policy and can end up with you losing your account:
- Hiding ad units at anytime (e.g.,
display:none), unless you’re implementing a responsive ad unit
Source: modification of AdSense code