Skip to content

Instantly share code, notes, and snippets.

@ydn
Created June 10, 2015 20:31
Show Gist options
  • Save ydn/712b72084108e4f5a71f to your computer and use it in GitHub Desktop.
Save ydn/712b72084108e4f5a71f to your computer and use it in GitHub Desktop.
Flurry Native Ad integration callbacks
class ViewController: UIViewController, FlurryAdNativeDelegate {
// For instance, the two most frequently used callbacks are:
func adNativeDidFetchAd(nativeAd: FlurryAdNative!){
// The SDK returns this callback for every instance of the native ad fetched
// The FlurryAd object contains all of the ad assets
}
// Informational callback invoked when there is an ad error
func adNative(nativeAd: FlurryAdNative!, adError: FlurryAdError, errorDescription: NSError!){
// The SFK returns this callback for every failed attempt to fetch a native ad
// The nativeAd object contains no assets
// The error provides further info on why the request failed
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment