AI-generated Key Takeaways
- 
          The CompanionAdSelectionSettingsobject defines the criteria for selecting companion ads using thegoogle.ima.Ad.getCompanionAdsfunction.
- 
          This object inherits properties for defining selection criteria from the CompanionAdSelectionSettingsInterface.
- 
          Key properties include adSlotIds,creativeType,nearMatchPercent,resourceType, andsizeCriteria.
- 
          A new CompanionAdSelectionSettingsobject is created using its constructor.
        CompanionAdSelectionSettings object is used to define the selection criteria when calling
        the 
      google.ima.Ad.getCompanionAds function.
      | Constructors | |
|---|---|
| constructor | Constructor. | 
| Properties | |
|---|---|
| ad | 
                The companion ad slot ids to be used for matching set by the user.
                 
                  Inherited from  | 
| creative | 
                Creative type setting set by the user.
                 
                  Inherited from  | 
| near | 
                The near fit percent set by the user.
                 
                  Inherited from  | 
| resource | 
                Resource type setting set by the user.
                 
                  Inherited from  | 
| size | 
                Size criteria setting set by the user.
                 
                  Inherited from  | 
Constructors
constructor
new CompanionAdSelectionSettings(): CompanionAdSelectionSettings
            
              Constructor.
              
                
            
          | Returns | |
|---|---|
| CompanionAdSelectionSettings | |
Properties
adSlotIds
adSlotIds: string[]
            creativeType
creativeType: string
            nearMatchPercent
nearMatchPercent: number
            resourceType
resourceType: string
            sizeCriteria
sizeCriteria: string