Before You Start Make Sure:
- App and Placement set up on Publisher Portal
- SDK is installed
- SDK is initialized
- placements have status "Testing" to get test ad for each ad request in order to test integration
Banner ad unit size is 320x50 and it supports Display (Static and Rich Media) ad format.
Banners are associated with an UIView. This UIView have 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.