RevMob check Banner is loaded or not in iPhone?

2019-08-17 05:47发布

I am using Revmob Framework for displaying ad banners and it's working fine.

So now my Question is that how to know programmatically that banner is loaded or not?

Like if we are using iads then there is a method "isBannerLoaded" to check banner is loaded or not.

Actually I want to set it's frame as banner is loaded or not loaded.

So is there any method like "isBannerLoaded" in Revmob Framework?

1条回答
时光不老,我们不散
2楼-- · 2019-08-17 06:36

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");
    ...
}

You can find RevMobAdsDelegate documentation at http://sdk.revmob.com/ios-api/Protocols/RevMobAdsDelegate.html

查看更多
登录 后发表回答