Before You Start Make Sure:
- App and Placement set up on Publisher Portal
- SDK is installed
- SDK is initialized
- Each Ad request has "Testing" status which enables it to test integrations.
Banner ad unit size is 320x50 and it supports Display (Static and Rich Media) ad format.
Banners are associated with an UIView. This UIView has translatesAutoresizingMaskIntoConstraints equal to NO, so it can work with constraints by default.
In order to get banner’s UIView, use:
[ad view];
In order to detect if banner was clicked, subscribe to the <DIOAdClickDelegate> protocol and then define yourself as a delegate via:
ad.clickDelegate = self;
Finally, implement the following to be notified whenever relevant:
- (void)onAdClicked:(DIOAd*)ad;
Check the Sample App for a fully-working example.
Comments
0 comments
Please sign in to leave a comment.