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:
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:
Check the Sample App for a fully-working example.
Please sign in to leave a comment.