How do i play an ad every third time i press an button?

The title says it all, how do i play an ad every third time i press an button?

Use PlayerPrefs.SetInt() to save an ad count variable, then read that number using PlayerPrefs.GetInt() before you want to play an ad. Use adCount % 3 to check if it’s the 3rd time, and show an ad. Then just iterate that number with PlayerPrefs.SetInt() and set it to adCount + 1. Hope this helped!