cro

CrossPromoter

A control which allows you to display an app to cross promote within your own app.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

36

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

2

License

MIT

Categories

Readme

CrossPromoter

A drop-in library that helps you cross-promote your apps.

The purpose of CrossPromoter is simple. You have a few apps, and you want to let others know about them when they're using one of your apps. You don't need to sign up for an ad-network, and you don't want to run ads.

CrossPromoter is quite configurable, but also easy enough that with just an AppID and a message, you can construct a banner and/or interstitial.

How about a few examples to show how simple it is.

Whether you're displaying a banner or an interstitial, you're always going to have to configure an app to display, so something like this should work.

App *featuredApp = [[App alloc] init];
featuredApp.appName = @"We also make Picks";
featuredApp.appIdentifier = 899161866;
featuredApp.appIcon = [UIImage imageNamed:@"my-app-icon"];
AdvertisementViewController *bannerAdViewController = [self createAdViewControllerWithDisplayMode:DisplayModeBanner];
bannerAdViewController.adBackgroundColor = [UIColor colorWithRed:52.0f/255.0f green:73.0f/255.0f blue:94.0f/255.0f alpha:0.9f];
[self presentAdViewController:bannerAdViewController animated:YES completion:nil];

And your end result should look like this!

Now let's say you wanted to display an interstitial, maybe once every few times the user uses the app as to not overwhelm them. All you'd have to do is this instead.

AdvertisementViewController *interstitialAdViewController = [self createAdViewControllerWithDisplayMode:DisplayModeInterstitial];
interstitialAdViewController.adBackgroundColor = [UIColor colorWithRed:52.0f/255.0f green:73.0f/255.0f blue:94.0f/255.0f alpha:1.0f];
[self presentAdViewController: interstitialAdViewController animated:YES completion:nil];

// In this example we've changed the App object's name to "Picks: The Smarter To-do List";

And voila!

Both the banner and the interstitial give the user the option to install the app without leaving the current app.

And alternatively to share it.

You can style the ads however you like, but you don't need to do anything more than provide an App object as we did above.

Also provided is a randomizer, where you provide as many app store identifiers and percentage as you like, and it will pick one for you to present in your AdvertisementViewController.

NSArray* identifiers = @[ @(picksAppStoreIdentifier), @(metroptimizerAppStoreIdentifier) ];
NSArray* percentages = @[ @(0.5), @(0.5) ];
NSInteger identifier = [AdvertisementViewController chooseAppIDFrom:identifiers percentages:percentages];

Pull requests and features are welcome. 😎👻🎉🎊🎉

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100