Is there any way to get a callback when unity ads banner that has been pressed? I've tried to use rewarded video callbacks but nothing worked.
Asked
Active
Viewed 173 times
1 Answers
-1
Refer to the official documentation under the Implementing rewarded ads section.
You can see that there is a function AdFinished
that looks like this:
void AdFinished (ShowResult result) {
if (result == ShowResult.Finished) {
// Reward the player
}
}
and that that is added as a callback in the following way:
ad.Show (AdFinished);

ZektorH
- 2,680
- 1
- 7
- 20
-
I've checked, there's no callback with opened banner. – MCTG Oct 22 '19 at 14:59
-
Please refer to the "Adding a callback method to your script" section on that page. It show how to create a function with void return that accepts only a single `ShowResult` argument. – ZektorH Oct 22 '19 at 15:01
-
So, you're saying that one of the following: ShowResult.Failed/Finished/Skipped is the same as OpenedBanner? – MCTG Oct 22 '19 at 15:04
-
I have updated my answer to clarify. If you'd like, feel free to start a chat with me: https://chat.stackoverflow.com/users/11869748/ – ZektorH Oct 22 '19 at 15:07
-
This is for interstitial and rewarded ad, not for the banner ad. – MCTG Oct 22 '19 at 17:45