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
| [Flurry logEvent:@"Article_Read"]; |
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
| //after calling FlurryAds.displayAd(mContext, adSpaceName, mAdContainer) | |
| //either onRendered or onRenderFailed will be registerd | |
| @Override | |
| public void onRendered(String adSpace) { | |
| Log.d(kLogTag, "onRendered( " + adSpace + " )"); | |
| } | |
| @Override | |
| public void onRenderFailed(String adSpace) { |
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 { | |
| // Your code | |
| //note: iOS only allows one crash reporting tool per app; if using another, set to: NO | |
| [Flurry setCrashReportingEnabled:YES]; | |
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
| public boolean shouldDisplayAd(String adSpaceName, FlurryAdType type) { | |
| // retruning false in this method would prevent the ad from being displayed | |
| return true; | |
| } |
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 "ViewController.h" | |
| #import "FlurryAdDelegate.h" | |
| #import "FlurryAds.h" | |
| @interface ViewController () | |
| @property (nonatomic, retain) UIView *flurryContainer; | |
| @end | |
| @implementation ViewController |
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 "ViewController.h" | |
| #import "FlurryAdDelegate.h" | |
| #import "FlurryAds.h" | |
| @interface ViewController () | |
| @property (nonatomic, retain) UIView *flurryContainer; | |
| @end | |
| @implementation ViewController |
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
| NSArray *keys = [NSArray arrayWithObjects:@"user_id", nil]; | |
| NSArray *objects = [NSArray arrayWithObjects:@"1234", nil]; | |
| NSDictionary *myCookies = [NSDictionary dictionaryWithObjects:objects forKeys:keys]; | |
| [FlurryAds setUserCookies:myCookies]; |
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
| //set keywords | |
| Map<String, String> keywords = new HashMap<String, String>(); | |
| keywords.put("ltv", "0"); | |
| FlurryAds.setTargetingKeywords(keywords); | |
| //clear keywords | |
| FlurryAds.clearTargetingKeywords(); |
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
| FlurryAds.enableTestAds(true); |