# GoogleInteractiveMediaAds Framework Reference

# IMACompanionAd

    @interface IMACompanionAd : NSObject

An object that holds data corresponding to the companion ad.
- `


  ### [resourceValue](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMACompanionAd#/c:objc(cs)IMACompanionAd(py)resourceValue)


  ` The value for the resource of this companion.

  #### Declaration

  Swift

      var resourceValue: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *resourceValue;

- `


  ### [APIFramework](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMACompanionAd#/c:objc(cs)IMACompanionAd(py)APIFramework)


  ` 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;

- `


  ### [width](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMACompanionAd#/c:objc(cs)IMACompanionAd(py)width)


  ` The width of the companion in pixels. 0 if unavailable.

  #### Declaration

  Swift

      var width: Int { get }

  Objective-C

      @property (nonatomic, readonly) NSInteger width;

- `


  ### [height](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMACompanionAd#/c:objc(cs)IMACompanionAd(py)height)


  ` The height of the companion in pixels. 0 if unavailable.

  #### Declaration

  Swift

      var height: Int { get }

  Objective-C

      @property (nonatomic, readonly) NSInteger height;