iPhone SDK
ZestADZ Now supports iPhone Apps through its iPhone SDK. ZestADZ’s iPhone ads offer multiple highly interactive rich media formats for advertising.
ZestADZ iPhone Interface Builder and Programmatic SDK supports all the iPhone versions. Table view SDK currently supports iPhone version 2.x.
Unique features of the iPhone SDK include:
Ads will be flipped automatically after specific duration set.
Ability to deliver upto 5 ads at one time, cache and display them.
How to Integrate iPhone SDK with your Apps? |
 |
| 1. |
Create a ZestADZ Account. |
| 2. |
Create an iPhone Ad Client by going to "Sites & Apps"->"Add a Site or App" and follow the steps given below. |
| 3. |
Select “Click to View” link and download the iPhone SDK.
- Add the ZestADZ library code and headers to your project. They are available in the ZestADZ subdirectory.
There are three files in all:
ZestadzDelegateProtocol.h, ZestadzView.h and libZestADZ.a
- Be sure to set your adclient id correctly in your delegate.
- Integrate ZestADZ ads with your app. We've included sample projects showing super-simple integration in three styles.
|
| 4. |
We recommend you to refer sample project for integration however here is sample code extracted for those three styles:
- Add an ad to a view using Interface Builder
a) Add AdViewController.h and AdViewController.m to your project (located in the IBSupport subdirectory).
Open Interface Builder.
b) Place a 320x48 UIView where you want the ad to appear.
c) Add an Object, and change its type to AdViewController.
d) Set the view outlet of the AdViewController to your UIView.
e) Edit AdViewController.m to make sure that your publisher id and other options are set correctly.
- Add an ad to a view programmatically
a) Create an ZestADZ delegate class; it can be as simple as a class that only implements -clientId:.
b) Add the following code to your view creation (modify as appropriate):
ZestadzView *ad = ZestadzView requestAdWithDelegate:self]; // start a new ad request
ad.frame = CGRectMake(0, 432, 320, 48); // set the frame, in this case at the bottom of the screen
[self.window addSubview:ad]; // attach the ad to the view hierarchy; self.window is responsible for retaining the ad
- Add an ad to a table view
a)
Create an ZestADZ delegate class; it can be as simple as a class that only implements -clientId:.
b)
Add to your -tableView:cellForRowAtIndexPath: method (modify as appropriate).
[cell.contentView addSubview:[ZestadzView requestAdWithDelegate:self]];
|