Created
July 27, 2012 20:23
-
-
Save revmob-sdk/3190274 to your computer and use it in GitHub Desktop.
RevMob iOS SDK 2
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
RevMobFullscreen *fullscreen = [[RevMobAds session] fullscreenWithPlacementId:@"your placementId"]; | |
[fullscreen showAd]; |
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
[[RevMobAds session] scheduleLocalNotification]; | |
// in your AppDelegate.m | |
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { | |
[[RevMobAds session] processLocalNotification:notification]; | |
} |
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 <RevMobAds/RevMobAds.h> | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
[RevMobAds startSessionWithAppID:@"your AppID"]; // collect your AppID at http://revmob.com | |
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; | |
// Override point for customization after application launch. | |
self.viewController = [[[SampleAppViewController alloc] init] autorelease]; | |
self.window.rootViewController = self.viewController; | |
[self.window makeKeyAndVisible]; | |
return YES; | |
} | |
@end |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
[RevMobAds startSessionWithAppID:@"your AppID"]; | |
[RevMobAds session].testingMode = RevMobAdsTestingModeWithAds; | |
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; | |
// Override point for customization after application launch. | |
} |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
[RevMobAds startSessionWithAppID:@"your AppID"]; | |
[RevMobAds session].testingMode = RevMobAdsTestingModeWithoutAds; | |
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; | |
// Override point for customization after application launch. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment