I wanted to create an IAP that would turn off ads and have been trying to think about how to do this properly. There is no option with AdMob to disable ads, I can only hide one that is already showing.
My current solution is to attach the AdMob code to a Global Variable. I placed the AdMob code under the variable 0 and anything else (1) has no AdMob code. When the user clicks the purchase button, it will set the GV to 1 and hide any current ads being shown. Am I on the right track or is there a better way to do this?
Thanks!