AI-generated Key Takeaways
-
IMACompanionAd
is an object that stores data related to a companion ad, such as its resource, dimensions, and required API framework. -
It provides properties like
resourceValue
,APIFramework
,width
, andheight
to access the companion ad's information. -
The
width
andheight
properties represent the dimensions of the companion ad in pixels and are 0 if unavailable. -
Developers can use
resourceValue
to get the ad's resource andAPIFramework
to determine the API needed for execution.
IMACompanionAd
@interface IMACompanionAd : NSObject
An object that holds data corresponding to the companion ad.
-
The value for the resource of this companion.
Declaration
Swift
var resourceValue: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *resourceValue;
-
The API needed to execute this ad, or nil if unavailable.
Declaration
Swift
var apiFramework: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *APIFramework;
-
The width of the companion in pixels. 0 if unavailable.
Declaration
Swift
var width: Int { get }
Objective-C
@property (nonatomic, readonly) NSInteger width;
-
The height of the companion in pixels. 0 if unavailable.
Declaration
Swift
var height: Int { get }
Objective-C
@property (nonatomic, readonly) NSInteger height;