actually ignore the first post because the None property doesn’t remove the ad.
The visible property should be able to remove it. Are you testing on iOS or Android?
Try setting visible to false explicitly somewhere:
onStateChanged: ads.visible = state == "main_state"
Maybe this will help.