我在我的应用程序中集成了facebook横幅广告,但是我觉得尺寸有问题。
override func viewDidLoad()
{
super.viewDidLoad()
...
fbAdView = FBAdView.init(placementID: "***************", adSize: kFBAdSizeHeight90Banner, rootViewController: self)
fbAdView.frame = CGRect(x: 0, y: 0, width: 320, height: 90)
fbAdView.delegate = self
fbAdView.loadAd()
}
func adViewDidLoad(_ adView: FBAdView) {
print("FBAd adViewDidLoad")
adViewContainer.addSubview(fbAdView)
}