GoogleInteractiveMediaAds Framework Reference

  • IMACompanionAd is an object that stores data related to a companion ad, which is an ad displayed alongside a video ad.

  • It provides access to the companion ad's resource value, API framework used, and dimensions (width and height).

  • The resource value represents the ad's content, while the API framework specifies how to execute it.

  • Width and height properties define the size of the companion ad in pixels, with 0 indicating unavailability.

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;