Skip to content

Instantly share code, notes, and snippets.

@ydn
Created June 10, 2015 21:55
Show Gist options
  • Save ydn/3de39acb4b193666a532 to your computer and use it in GitHub Desktop.
Save ydn/3de39acb4b193666a532 to your computer and use it in GitHub Desktop.
Ad Banner Callbacks (Swift)
class ViewController: UIViewController, FlurryAdBannerDelegate {
// Invoked when an ad is received for the specified bannerAd object
func adBannerDidFetchAd(bannerAd: FlurryAdBanner!) { }
// Invoked when the banner ad is rendered
func adBannerDidRender(bannerAd: FlurryAdBanner!) { }
// Informational callback invoked when an ad is clicked for the specified @c bannerAd object
func adBannerDidReceiveClick(bannerAd: FlurryAdBanner!) { }
// Informational callback invoked when there is an ad error
func adBanner(bannerAd: FlurryAdBanner!, adError: FlurryAdError, errorDescription: NSError!) {
// @param bannerAd The banner ad object associated with the error
// @param adError an enum that specifies the reason for the error
// @param errorDescription An error object that gives additional information on the cause of the ad error
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment