How to detect the touch of admob banner ads on ios

I am new to developing games for iOS. I am developing an application for children and in this application. I integrate admob advertisements. I have to detect a touch event when a user clicks on an ad. Because when a user clicks on this ad, the user first displays parental control.

+4
source share
1 answer

Which SDK are you using? Assuming 6.11.1 (the latter), as a rule, you should implement your class as a delegate for GADBannerViewDelegate or GADInterstitialDelegate (refer to Google Docs ):

YourClass.h:

@interface YourClass : SuperClass <GADBannerViewDelegate, GADInterstitialDelegate> {
}

YourClass.m:

// onAdOpened
- (void)adViewWillPresentScreen:(GADBannerView *)adView {
    <your code here>
}

// onAdLeftApplication
- (void)adViewWillLeaveApplication:(GADBannerView *)adView {
    <your code here>
}
+4
source

All Articles