如何在Swift中实现Facebook Audience网络通知?

时间:2016-02-08 13:21:54

标签: ios swift facebook-audience-network

我正在成功加载广告,但我无法收到通知。

例如;

class ViewController : UIViewController , FBAdViewDelegate {
    ...
    func adViewDidLoad(adView: FBAdView) {
        print("ad loaded"); // never called, although ad displays
    }
}

1 个答案:

答案 0 :(得分:0)

我没有指派代表;

self.fanView = FBAdView(placementID:PLACEMENT_ID, 
    adSize:kFBAdSizeHeight50Banner, rootViewController:self);
self.fanView.delegate = self; // needed this