Before You Start Make Sure:
- App and Placement set up on Publisher Portal
- SDK is installed
- SDK is initialized
- In order to test integration there are test Ads, under the Placement name "Testing".
Medium Rectangle ad unit 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 a UIView. This UIView has 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.