<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.taptica.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.taptica.com/index.php?action=history&amp;feed=atom&amp;title=IOS_SDK</id>
		<title>IOS SDK - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.taptica.com/index.php?action=history&amp;feed=atom&amp;title=IOS_SDK"/>
		<link rel="alternate" type="text/html" href="https://wiki.taptica.com/index.php?title=IOS_SDK&amp;action=history"/>
		<updated>2026-05-11T14:09:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://wiki.taptica.com/index.php?title=IOS_SDK&amp;diff=451&amp;oldid=prev</id>
		<title>Lior.b: Created page with &quot; == iOS Integration==  You can serve native, interstitial and banner ads very quickly and with little effort using Taptica SDK.  == Download the Taptica iOS SDK ==  Download t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.taptica.com/index.php?title=IOS_SDK&amp;diff=451&amp;oldid=prev"/>
				<updated>2015-05-04T07:44:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; == iOS Integration==  You can serve native, interstitial and banner ads very quickly and with little effort using Taptica SDK.  == Download the Taptica iOS SDK ==  Download t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== iOS Integration==&lt;br /&gt;
&lt;br /&gt;
You can serve native, interstitial and banner ads very quickly and with little effort using Taptica SDK.&lt;br /&gt;
&lt;br /&gt;
== Download the Taptica iOS SDK ==&lt;br /&gt;
&lt;br /&gt;
Download the Taptica SDK. The download contains both the HydraSDK framework and the HydraResources bundle.&lt;br /&gt;
&lt;br /&gt;
== Integrate the SDK With Your App ==&lt;br /&gt;
&lt;br /&gt;
Once you have downloaded the Hydra SDK, follow these steps to integrate the SDK with your app:&lt;br /&gt;
&lt;br /&gt;
#. Linked frameworks:&lt;br /&gt;
##AVfoundation&lt;br /&gt;
##CoreTelephony&lt;br /&gt;
##AdSupport&lt;br /&gt;
##WebKit&lt;br /&gt;
#. Linking the HydraSDK:&lt;br /&gt;
##Open the HydraSDK folder and drag the HydraSDK.framework into the frameworks.&lt;br /&gt;
#Drag the Resources.bundle into the project files.&lt;br /&gt;
#Select your project target, in the ‘build settings’ section look for ‘other linker flags’ and add -ObjC flag.&lt;br /&gt;
You can clone the HydraSDKDemo which demonstrate how to create a&lt;br /&gt;
banner ad and interstitial ad: [https://github.com/TapticaAd/HydraSDKDemo]&lt;br /&gt;
&lt;br /&gt;
== Creating Banner Ad: ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#import &amp;lt;HydraSDK/HydraSDK.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@interface ViewController () &amp;lt;HAdBannerDelegate&amp;gt; {&lt;br /&gt;
    HAdBanner *banner;&lt;br /&gt;
   __weak IBOutlet UIView *bannerHolderView;&lt;br /&gt;
}&lt;br /&gt;
@end&lt;br /&gt;
@implementation ViewController&lt;br /&gt;
- (void)viewDidAppear:(BOOL)animated {&lt;br /&gt;
    [super viewDidAppear:animated];&lt;br /&gt;
    if (!banner) {&lt;br /&gt;
        banner = [[HAdBanner alloc] initWithAdSize:(CGSize){320, 50}&lt;br /&gt;
origin:CGPointZero];&lt;br /&gt;
        banner.unitAdID = @&amp;quot;115&amp;quot;;&lt;br /&gt;
        banner.delegate = self;&lt;br /&gt;
        banner.rootViewController = self;&lt;br /&gt;
        banner.requestParams.shouldOpenInNativeBrowser = YES;&lt;br /&gt;
        [banner loadAd];&lt;br /&gt;
        [bannerHolderView addSubview:banner];&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can listen to all ads events using the HAdBannerDelegate methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/// Called when an ad request loaded an ad. This is a good opportunity to add&lt;br /&gt;
this view to the&lt;br /&gt;
/// hierarchy if it has not been added yet.&lt;br /&gt;
- (void)adViewDidReceiveAd:(HAdBanner *)adView;&lt;br /&gt;
/// Called when an ad request failed. Normally this is because no network&lt;br /&gt;
connection was available&lt;br /&gt;
/// or no ads were available (i.e. no fill).&lt;br /&gt;
- (void)adView:(HAdBanner *)adView didFailToReceiveAdWithError:(NSError *)error;&lt;br /&gt;
#pragma mark Click-Time Lifecycle Notifications&lt;br /&gt;
/// Called just before presenting the user a full screen view, such as a&lt;br /&gt;
browser, in response to&lt;br /&gt;
/// clicking on an ad. Use this opportunity to stop animations, time sensitive&lt;br /&gt;
interactions, etc.&lt;br /&gt;
///&lt;br /&gt;
/// Normally the user looks at the ad, dismisses it, and control returns to your&lt;br /&gt;
application by&lt;br /&gt;
/// calling adViewDidDismissScreen:. However if the user hits the Home button or&lt;br /&gt;
clicks on an App&lt;br /&gt;
/// Store link your application will end. On iOS 4.0+ the next method called&lt;br /&gt;
will be&lt;br /&gt;
/// applicationWillResignActive: of your UIViewController&lt;br /&gt;
/// (UIApplicationWillResignActiveNotification). Immediately after that&lt;br /&gt;
adViewWillLeaveApplication:&lt;br /&gt;
/// is called.&lt;br /&gt;
- (void)adViewWillPresentScreen:(HAdBanner *)adView;&lt;br /&gt;
/// Called just before dismissing a full screen view.&lt;br /&gt;
- (void)adViewWillDismissScreen:(HAdBanner *)adView;&lt;br /&gt;
/// Called just after dismissing a full screen view. Use this opportunity to&lt;br /&gt;
restart anything you&lt;br /&gt;
/// may have stopped as part of adViewWillPresentScreen:.&lt;br /&gt;
- (void)adViewDidDismissScreen:(HAdBanner *)adView;&lt;br /&gt;
/// Called just before the application will background or terminate because the&lt;br /&gt;
user clicked on an&lt;br /&gt;
/// ad that will launch another application (such as the App Store). The normal&lt;br /&gt;
/// UIApplicationDelegate methods, like applicationDidEnterBackground:, will be&lt;br /&gt;
called immediately&lt;br /&gt;
- (void)adViewWillLeaveApplication:(HAdBanner *)adView;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Creating Interstitial Ad:==&lt;br /&gt;
&lt;br /&gt;
Update the private interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@interface ViewController () &amp;lt;HAdBannerDelegate, HInterstitialDelegate&amp;gt;{&lt;br /&gt;
    HAdBanner *banner;&lt;br /&gt;
    HInterstitial *interstitial;&lt;br /&gt;
    __weak IBOutlet UIView *bannerHolderView;&lt;br /&gt;
}&lt;br /&gt;
@end&lt;br /&gt;
- (IBAction)presentInterstitial:(UIButton *)sender {&lt;br /&gt;
    interstitial = [[HInterstitial alloc] init];&lt;br /&gt;
    interstitial.unitAdID = @&amp;quot;113&amp;quot;;&lt;br /&gt;
    interstitial.delegate = self;&lt;br /&gt;
    [interstitial loadAd];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Present the Interstitial controller when the ad is ready, you can listen to the interstitialDidReceiveAd: method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#pragma mark HInterstitialDelegate&lt;br /&gt;
- (void)interstitialDidReceiveAd:(HInterstitial *)ad {&lt;br /&gt;
    [ad presentFromRootViewController:self];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lior.b</name></author>	</entry>

	</feed>