googleads-mobile-android-examples
googleads-mobile-android-examples copied to clipboard
How to detect a user clicked on "AppOpenAd OR Interstitial" ad ?
How to detect a user clicked on "AppOpenAd OR Interstitial" ad ? I need prevent fraud ...
for Interstitial ads, use following- when ads is clicked -
@Override
public void onAdImpression() {
super.onAdImpression();
}
when dismissed (close button clicked) -
public void onAdDismissedFullScreenContent() {
// Called when fullscreen content is dismissed.
Log.d("TAG", "The ad was dismissed.");
}
for AppOpenAd - when ads is clicked -
@Override
public void onAdImpression() {
super.onAdImpression();
}
when dismissed (continue to app clicked) -
FullScreenContentCallback() {
@Override
public void onAdDismissedFullScreenContent() {
}