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
package com.flurry.android.v2; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.Button; | |
import android.widget.FrameLayout; | |
import android.widget.RelativeLayout; | |
import android.widget.Spinner; |
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.flurry.sample" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="10" | |
android:targetSdkVersion="21" /> | |
<!--required permission--> | |
<uses-permission android:name="android.permission.INTERNET" /> |
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
#import "FlurryAdDelegate.h" | |
#import "FlurryAds.h" | |
/** | |
* You can integrate interstitials in any placement in your app, but for | |
* testing purposes we present integration within your ViewController | |
*/ | |
// the adSpaceName refers to the ad space configured on dev.flurry.com under Publishers tab |
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
@interface MyDelegateClass : NSObject <FlurryAdDelegate> { | |
// definitions | |
} | |
// MyDelegateClass.m | |
@implementation MyDelegateClass | |
-(void) init |
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
if ([FlurryAds adReadyForSpace:@"INTERSTITAL_MAIN_VC"]) { | |
[FlurryAds displayAdForSpace:@"INTERSTITAL_MAIN_VC" onView:self.view viewControllerForPresentation:self]; | |
} else { | |
[FlurryAds fetchAdForSpace:@"INTERSTITAL_MAIN_VC" frame:self.view.frame size:FULLSCREEN]; | |
} |
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
if ([FlurryAds adReadyForSpace:@"INTERSTITAL_MAIN_VC"]) { | |
[FlurryAds displayAdForSpace:@"INTERSTITAL_MAIN_VC" onView:self.view]; | |
} else { | |
[FlurryAds fetchAdForSpace:@"INTERSTITAL_MAIN_VC" frame:self.view.frame size:FULLSCREEN]; | |
} |
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
#import "Flurry.h" | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
//init Flurry | |
[Flurry startSession:@"YOUR_FLURRY_API_KEY"]; | |
// Your code ... | |
} |