Skip to content

Commit

Permalink
Add app event listener to Ad Manager interstitial ad.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 689485204
  • Loading branch information
Mobile Ads Developer Relations authored and copybara-github committed Oct 24, 2024
1 parent be2dbfc commit c3de222
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ public void pollAd(@NonNull String adUnitId) {
return;
}
activity.runOnUiThread(
() -> adManagerInterstitialAd.setOnPaidEventListener(onPaidEventListener));
() -> {
adManagerInterstitialAd.setOnPaidEventListener(onPaidEventListener);
adManagerInterstitialAd.setAppEventListener(appEventListener);
});
adManagerInterstitialAd.setFullScreenContentCallback(fullScreenContentCallback);
}

Expand Down

0 comments on commit c3de222

Please sign in to comment.