Hi there,
You can implement a counter that is incremented every time a user taps on your "Play Again" button. Once the counter reaches a specific limit (in this case, 5), then you can show your Interstitial Ad. To illustrate this:
- Increase "counter" by 1 every time the "Play Again" button is tapped
- Check if "counter" is greater or equal than your limit (5)
- If Yes, show your Interstitial Ad and reset your "counter" to 0
- If No, do nothing
Let me know if this works for you. If you would like further assistance with this, I would suggest you consult a general developer forum, such as StackOverflow, for further assistance since your concern is more with your implementation rather than something specific with the Mobile Ads SDK.
Regards,
Joshua Lagonera
Mobile Ads SDK Team