IMACompanionAdSlot Class Reference

Ad slot for companion ads. More...

#import <IMACompanionAdSlot.h>

+ Inheritance diagram for IMACompanionAdSlot:

Instance Methods

(instancetype) - initWithView:width:height:
 Initializes an instance of a IMACompanionAdSlot with design ad width and height. More...
 
(instancetype) - NS_UNAVAILABLE
 :nodoc: More...
 

Properties

UIView * view
 The view the companion will be rendered in. More...
 
int width
 Width of the slot, in pixels. More...
 
int height
 Height of the slot, in pixels. More...
 
id< IMACompanionDelegatedelegate
 The IMACompanionDelegate for receiving events from the companion ad slot. More...
 

Detailed Description

Ad slot for companion ads.

The SDK will put a subview inside the provided UIView container. The companion will be matched to the width and height provided here.

Method Documentation

- (instancetype) initWithView: (UIView *)  view
width: (int)  width
height: (int)  height 

Initializes an instance of a IMACompanionAdSlot with design ad width and height.

Parameters
viewthe UIView that will contain the companion ad
widththe desired width of the ad
heightthe desired height of the ad
Returns
the IMACompanionAdSlot instance
- (instancetype) NS_UNAVAILABLE

:nodoc:

Property Documentation

- (id<IMACompanionDelegate>) delegate
readwritenonatomicweak

The IMACompanionDelegate for receiving events from the companion ad slot.

- (int) height
readnonatomicassign

Height of the slot, in pixels.

This value is sent to the DFP ad server for targeting.

- (UIView*) view
readnonatomicstrong

The view the companion will be rendered in.

Display this view in your application before video ad starts.

- (int) width
readnonatomicassign

Width of the slot, in pixels.

This value is sent to the DFP ad server for targeting.


The documentation for this class was generated from the following file: