Search code examples
iphoneanalyticsadsflurry

Integrating Flurry AppCircle Clips


I've integrated Flurry Analytics and now am trying to add Flurry AppCircle Clips, but the AppCircle docs only seem to pertain to banners.

I'm looking for full screen ads or video ads to display at key times during my app's usage and would like to see documentation of how to implement such.

Has anyone any examples of creating a full-screen AppCircle Clip?


Solution

  • Using the Flurry SDK (3.0.3), after including all the proper header files...

    Include the FlurryAdDelegate protocol:

    // MyAppDelegate.h
    @interface MyAppDelegate : NSObject <FlurryAdDelegate> {
        // ...
    }
    

    Setup Flurry Analytics and AppCircle: (Not sure why the delegate-setting redundancy, but it didn't seem to work with only setting the protocol.)

    // MyAppDelegate.m
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        [FlurryAppCircle setAppCircleEnabled:YES];
        [FlurryClips setVideoAdsEnabled:YES];
        [FlurryAppCircle setAppCircleDelegate:self];
        [FlurryAnalytics startSession:@"AWWWTH36PXLU6Y3DN3GB"];
    
        // rest of my code ...
    }
    

    Then in my custom UIView class: (Again, after including all the proper header files)

    // MyCustomView.m
    [FlurryClips videoAdIsAvailable:@"VIDEO_SPLASH_HOOK"];
    [FlurryClips openVideoTakeover:@"VIDEO_SPLASH_HOOK"
                       orientation:@"portrait"
                       rewardImage:nil
                     rewardMessage:nil
                       userCookies:nil
                          autoPlay:YES];
    

    Also be sure to #import MediaPlayer.h in the appropriate view. (I think I read this somewhere in some version of the Flurry docs, but can't find it now... Doesn't help that the PDFs have a funny character encoding and are thus non-indexable).

    I'd host the AppCircle-Clips docs they sent me, but am not sure if they'd approve, since they don't seem to have these available on the downloaded SDK. (Perhaps, because it won't let me download the 3.1 for my project?)

    For further AppCircle-Clips-related questions, you can also email [email protected]