How to use Google billing to stop ads on app

Please I would like to use Google billing to stop ads for a period of time in my app. For example if a user buy a 1 month stop ads subscription, no ads will be shown to that user for one month. Please any one to teach me how.