我是 iOS 游戏开发的新手。我正在开发一个儿童应用程序,并在该应用程序中集成了 admob 广告。当用户点击广告时,我必须检测触摸事件。因为当用户点击该广告时,用户首先显示家长控制。
Which SDK are you using? Assuming 6.11.1 (latest), normally you should implement your class as a delegate for GADBannerViewDelegate or GADInterstitialDelegate (reffer 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>
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.