Having the collapsable sidebar is great but I just wondered whether having an advert placed in the sidebar would then be a violation of Google's Adsense terms?

How is the sidebar content hidden and would that stop an advert form loading or would it load and hide it?
How does adsense work since the sidebar isn't on all pages? It may be in your best interest to disable it entirely or not have ads in the sidebar at all. Do your users use the feature?
You need to be very careful with this indeed. When an ad is called but not displayed its a policy violation.

However there are a few exceptions to the rule. When you use responsive code <display:none> is allowed to hide an ad for certain pagewidths.

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.