Skip to content

Commit 4c1395c

Browse files
authored
Update AdCallback documentation
1 parent 376f0da commit 4c1395c

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -382,20 +382,26 @@ bannerView.setSize(adaptiveSize);
382382

383383
### AdCallback
384384
```java
385+
// Executed when the ad is displayed.
386+
// @param ad Information of displayed ad.
387+
@MainThread void onShown(com.cleversolutions.ads.AdStatusHandler ad);
388+
389+
// Executed when the ad is failed to display.
390+
// The Banner may automatically appear when the Ad is ready again.
391+
// This will trigger the [onShown] callback again.
392+
@MainThread void onShowFailed(String message);
393+
385394
// Executed when the user clicks on an ad.
386395
@AnyThread void onClicked();
387396

388-
// Executed when the interstitial ad is closed.
389-
@AnyThread void onClosed();
390-
391-
// Executed when the ad is completed. Used for Rewarded Ad only.
397+
// Executed when the Ad is completed.
398+
// Banner Ad does not use this callback.
392399
@AnyThread void onComplete();
393400

394-
// Executed when the ad is failed to display.
395-
@MainThread void onShowFailed(String message);
396-
397-
// Executed when the ad is displayed.
398-
@MainThread void onShown(com.cleversolutions.ads.AdStatusHandler ad);
401+
// Executed when the ad is closed.
402+
// The Banner Ad cannot be displayed automatically after this callback for the current view.
403+
// If you decide to show the Banner Ad on this view then you need refresh view visibility.
404+
@AnyThread void onClosed();
399405
```
400406

401407
### Check Ad Availability

0 commit comments

Comments
 (0)