Skip to content

Instantly share code, notes, and snippets.

#import "FlurryAdDelegate.h"
#import "FlurryAds.h"
/**
* Banners can be displayed with a single method. Here we will show how you
* would display banners when a view appears and remove it when the view
* disappears.
*/
- (void)viewDidAppear:(BOOL)animated {
- (void) videoDidFinish:(NSString *)adSpace{
NSLog(@"Ad Space [%@] Video Did Finish", adSpace);
// Grant the reward here.
// The amount is the same for all user for all videos watched
}
@Override
public void onVideoCompleted(String arg0) {
Log.d(kLogTag, "onVideoCompleted("+arg0+")");
// For client side rewarded ad spaces, grant the reward here.
// The amount is the same for all user for all videos watched
}
// Capture author info & user status
Map<String, String> articleParams = new HashMap<String, String>();
articleParams.put("Author", "John Q");
articleParams.put("User_Status", "Registered");
FlurryAgent.logEvent("Article_Read", articleParams, true);
// In a function that captures when a user navigates away from article
// Capture author info & user status
Map<String, String> articleParams = new HashMap<String, String>();
articleParams.put("Author", "John Q");
articleParams.put("User_Status", "Registered");
FlurryAgent.logEvent("Article_Read", articleParams);
FlurryAgent.logEvent("Article_Read");
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flurry.mediated.admob"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
import com.flurry.android.FlurryAgent;
@Override
protected void onStart()
{
super.onStart();
FlurryAgent.onStartSession(this, "YOUR_API_KEY");
}
@Override
// Capture author info & user status
NSDictionary *articleParams = [NSDictionary dictionaryWithObjectsAndKeys:
@"John Q", @"Author",
@"Registered", @"User_Status",
nil];
[Flurry logEvent:@"Article_Read" withParameters:articleParams timed:YES];
// In a function that captures when a user navigates away from article
// Capture author info & user status
NSDictionary *articleParams = [NSDictionary dictionaryWithObjectsAndKeys:
@"John Q", @"Author",
@"Registered", @"User_Status",
nil];
[Flurry logEvent:@"Article_Read" withParameters:articleParams];