Created
October 30, 2018 18:52
-
-
Save flurrydev/66cc710154722cbe5b52bafe18068153 to your computer and use it in GitHub Desktop.
Swift sample native ads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var nativeAd = FlurryAdNative(space:"staticAds") | |
| var nativeAds: [FlurryAdNative] = [] | |
| override func viewDidLoad() { | |
| super.viewDidLoad(); | |
| for _ in 1...5 { | |
| nativeAd?.adDelegate = self; | |
| nativeAd?.viewControllerForPresentation = self; | |
| nativeAd?.trackingView = self.containerView | |
| // Request the ad from Flurry | |
| nativeAd?.fetchAd(); | |
| nativeAds.append(nativeAd!) | |
| nativeAd = FlurryAdNative(space:"staticAds") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment