in a variable store the time of completion + minutes for which you want to disable ads.
then compare the current time with the time stored in variable at frequent intervals,
if current time value is equal or greater than value stored in variable, then enable all ads again.
You can use API based time to be more safe from easy device time manipulation.