(Difference between revisions)
Jump to: navigation, search
(Implementing TapticaAd™ iOS SDK)
(Implementing TapticaAd™ iOS SDK)
Line 35: Line 35:
<nowiki>#import "TapticaAd.h"</nowiki>
<nowiki>#import "TapticaAd.h"</nowiki>
     TapticaAdManager *TapticaAdManager;
     <nowiki>TapticaAdManager *TapticaAdManager;</nowiki>

Revision as of 15:23, 21 August 2012


Steps to Integration

To integrate with TapticaAd™ SDK, follow these steps: 1. Application/Site Id – Retrieve your app/site Id from Taptica’s account manager. 2. Download TapticaAd™ iOS SDK – download the iOS SDK from the Tapticadeveloper’s website. 3. Implement TapticaAd™ iOS SDK – implement the iOS SDK in your app so that it can be used. 4. Call TapticaAd™ iOS SDK – perform ad requests.

Application/Site ID Taptica Ad

Retrieve your Application Id from Taptica’s account manager or register to the TapticaAd™ service via Taptica’s website – At the end of the process you will acquire an Application ID. Save it for future use, it will be needed when identifying your application/site while using the TapticaAd™ iOS SDK.

Downloading TapticaAd™ iOS SDK

Following download, you can extract the downloaded file which contains the following items:

1)Static Library: libTapticaAd.a

2)Header file: TapticaAd.h

3)Sample project

Implementing TapticaAd™ iOS SDK

To implement the TapticaAd™ iOS SDK:

1. Use the system Finder to drag the unzipped SDK folder into your project.

2. Drag and drop the folder to your project xcode group tree.

3. Update your application delegate header file with:

#import "TapticaAd.h"

   TapticaAdManager *TapticaAdManager;

For example:

#import <UIKit/UIKit.h> #import "TapticaAd.h" @class TapticaAdTestViewController; @interface TapticaAdTestAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; TapticaAdTestViewController *viewController; TapticaAdManager *TapticaAdManager; } @property (nonatomic, retain) TapticaAdManager *TapticaAdManager; @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet TapticaAdTestViewController *viewController; @end

4. Inside “"applicationDidFinishLaunching:" in your delegate m file add: TapticaAdManager = [TapticaAdManager instance]; [TapticaAdManager setTapticaAdApplicationID:@"YOUR_APPLICATION_ID"];

For example: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. TapticaAdManager = [TapticaAdManager instance]; [TapticaAdManager setTapticaAdApplicationID:@"YOUR_APPLICATION_ID"]; // Add the view controller's view to the window and display. [self.window addSubview:viewController.view]; [self.window makeKeyAndVisible]; return YES; }

Personal tools