Skip to content

Instantly share code, notes, and snippets.

@Override
public void onStart()
{
super.onStart();
FlurryAgent.onStartSession(this, YOUR_API_KEY);
// Your code
}
@Override
public void onStop()
import com.flurry.android.FlurryAds;
import com.flurry.android.FlurryAdSize;
import com.flurry.android.FlurryAgent;
import com.flurry.android.FlurryAdListener;
public class BannerAdsActivity extends Activity implements FlurryAdListener {
FrameLayout mBanner;
private String adSpace="MediatedBannerBottom";
@Override
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<activity
android:name="com.flurry.android.FlurryFullscreenTakeoverActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">
</activity>
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|
screenLayout|uiMode|screenSize|smallestScreenSize" />
<meta-data
android:name="com.flurry.admob.MY_AD_UNIT_ID"
android:value="@string/appSpot_admob_apikey" />
<meta-data
android:name="com.flurry.admob.test"
import com.flurry.android.FlurryAds;
import com.flurry.android.FlurryAdSize;
import com.flurry.android.FlurryAgent;
import com.flurry.android.FlurryAdListener;
public class InterstitialAdsActivity extends Activity implements FlurryAdListener {
FrameLayout adLayout;
// the adSpaceName refers to the ad space configured on dev.flurry.com under Publishers tab
// under left-hand nav Inventory / Ad Spaces
String adSpaceName = "Takeover";
#import "FlurryAdDelegate.h"
#import "FlurryAds.h"
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
// Register yourself as a delegate for ad callbacks
[FlurryAds setAdDelegate:self];
// Fetch fullscreen ads early when a later display is likely. For
<FrameLayout
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"/>
<FrameLayout
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"/>
FlurryAgent.setLogEnabled(true);
FlurryAgent.setLogLevel(2); //verbose
//if you haven't already added the AdUnityListener do so to see whether the ads are received or not
FlurryAds.setAdListener(new AdUnityListener() {
public void spaceDidReceiveAd(String adSpaceName)
{
Log.d(kLogTag, "spaceDidReceiveAd");
}