更新时间:2023-02-24 07:56:17
您需要实现revMobDelegate并使用revmobAdDidReceive:
You need to implement the revMobDelegate and use revmobAdDidReceive:
@interface MyAdClass : NSObject <RevMobAdsDelegate>
...
@implementation MyAdClass
-(void) prepare {
...
ad = [[[RevMobAds session] bannerView] retain];
ad.delegate = self;
[ad loadAd];
...
}
- (void)revmobAdDidReceive {
NSLog(@"ad received");
...
}
您可以在 http://sdk.revmob.com/上找到RevMobAdsDelegate文档.ios-api/Protocols/RevMobAdsDelegate.html