好的,所以這是我正在使用的代碼,但橫幅廣告似乎不會加載。測試模式已啓動,但完全沒有顯示。RevMob橫幅廣告不會顯示
let completionBlock:() -> Void = {
//Custom method defined below
self.banner?.showAd()
self.bannerView?.showAd()
}
let failureBlock: (NSError!) -> Void = {error in
print("Gifting Chaos Session failed to start with error: \(error.localizedDescription)")
}
RevMobAds.startSession(withAppID: "myKEY", withSuccessHandler: completionBlock, andFailHandler: nil)
bannerView? = RevMobAds.session().bannerView()
let x = CGFloat(0)
let y = CGFloat(0)
let width = CGFloat(375)
let height = CGFloat(50)
self.bannerView?.frame = CGRect(x: x, y: y, width: width, height: height)
bannerView?.loadAd()
bannerView?.showAd()
banner?.releaseAd()
self.banner?.showAd()
我會建議使用AdMob,但這是您的決定,我想。 – Sethmr