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
Medium Rectangle ad init is designed as a common view to be injected within a variety of placements in-app. Medium Rectangle supports Display (Static and Rich Media) ad format. Medium Rectangle ad unit size is 300x250.
Medium rectangles are associated with an UIView. This UIView have translatesAutoresizingMaskIntoConstraints equal to NO, so it can work with constraints by default.
In order to get medium rectangle’s UIView, use:
In order to detect if medium rectangle 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:
See the Sample App for a fully-working example.