Monetization Features

For a more complete overview of the Monetization features please refer to the dedicated section Monetization Features.

This section is required only if you want to monetize your application by displaying ads.

To begin, make sure you import the Advertising header file called AppsfireAdSDK.h.

#import "AppsfireAdSDK.h"

Then, inside the -application:didFinishLaunchingWithOptions: callback method of your application delegate, you can define the various options:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // connect to appsfire services
    [AppsfireSDK connectWithAppId:@"YOUR_APP_ID" parameters:nil];

    // here you can use the debug mode
    // it'll allow you to see an ad whatever the situation
    // do not ship a build with this debug mode enabled!
    #ifdef DEBUG
        [AppsfireAdSDK setDebugModeEnabled:YES];
    #endif

    // [...]
    // window & root controller creation
    return YES;

}

We recommend that you take a look at the AppsfireAdSDK.h header file to know how to be notified when ads are loaded.