[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-17 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCompanionAdSelectionSettings\u003c/code\u003e object defines criteria for selecting companion ads using the \u003ccode\u003egoogle.ima.Ad.getCompanionAds\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThis object includes properties like \u003ccode\u003eadSlotIds\u003c/code\u003e, \u003ccode\u003ecreativeType\u003c/code\u003e, \u003ccode\u003enearMatchPercent\u003c/code\u003e, \u003ccode\u003eresourceType\u003c/code\u003e, and \u003ccode\u003esizeCriteria\u003c/code\u003e to specify ad selection preferences.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCompanionAdSelectionSettings\u003c/code\u003e object has a constructor to create new instances of the class.\u003c/p\u003e\n"],["\u003cp\u003eThe various properties it supports, are inherited from \u003ccode\u003eCompanionAdSelectionSettingsInterface\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class CompanionAdSelectionSettings\n\n| **Note:** This reference page follows TypeScript documentation structure. If you have suggestions for or see issues with the reference documentation, open a thread with your feedback on the [IMA technical forum](https://groups.google.com/g/ima-sdk/).\n\n*** ** * ** ***\n\nsubdirectory_arrow_rightExtends [CompanionAdSelectionSettingsInterface](/interactive-media-ads/docs/sdks/html5/client-side/reference/interface/google.ima.CompanionAdSelectionSettingsInterface) \nCompanionAdSelectionSettings object is used to define the selection criteria when calling the `google.ima.Ad.getCompanionAds` function.\n\n| Constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|\n| [constructor](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.constructor) | Constructor. |\n\n| Properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [adSlotIds](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.adSlotIds) | The companion ad slot ids to be used for matching set by the user. ###### Inherited from [CompanionAdSelectionSettingsInterface.adSlotIds](/interactive-media-ads/docs/sdks/html5/client-side/reference/interface/google.ima.CompanionAdSelectionSettingsInterface#google.ima.CompanionAdSelectionSettingsInterface.adSlotIds) |\n| [creativeType](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.creativeType) | Creative type setting set by the user. ###### Inherited from [CompanionAdSelectionSettingsInterface.creativeType](/interactive-media-ads/docs/sdks/html5/client-side/reference/interface/google.ima.CompanionAdSelectionSettingsInterface#google.ima.CompanionAdSelectionSettingsInterface.creativeType) |\n| [nearMatchPercent](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.nearMatchPercent) | The near fit percent set by the user. ###### Inherited from [CompanionAdSelectionSettingsInterface.nearMatchPercent](/interactive-media-ads/docs/sdks/html5/client-side/reference/interface/google.ima.CompanionAdSelectionSettingsInterface#google.ima.CompanionAdSelectionSettingsInterface.nearMatchPercent) |\n| [resourceType](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.resourceType) | Resource type setting set by the user. ###### Inherited from [CompanionAdSelectionSettingsInterface.resourceType](/interactive-media-ads/docs/sdks/html5/client-side/reference/interface/google.ima.CompanionAdSelectionSettingsInterface#google.ima.CompanionAdSelectionSettingsInterface.resourceType) |\n| [sizeCriteria](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.sizeCriteria) | Size criteria setting set by the user. ###### Inherited from [CompanionAdSelectionSettingsInterface.sizeCriteria](/interactive-media-ads/docs/sdks/html5/client-side/reference/interface/google.ima.CompanionAdSelectionSettingsInterface#google.ima.CompanionAdSelectionSettingsInterface.sizeCriteria) |\n\nConstructors\n------------\n\n*** ** * ** ***\n\n### constructor\n\nnew CompanionAdSelectionSettings(): [CompanionAdSelectionSettings](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings) \nConstructor.\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CompanionAdSelectionSettings](/interactive-media-ads/docs/sdks/html5/client-side/reference/class/google.ima.CompanionAdSelectionSettings) | |\n\nProperties\n----------\n\n*** ** * ** ***\n\n### adSlotIds\n\nadSlotIds:` `string[] The companion ad slot ids to be used for matching set by the user.\n\n*** ** * ** ***\n\n### creativeType\n\ncreativeType:` `string Creative type setting set by the user.\n\n*** ** * ** ***\n\n### nearMatchPercent\n\nnearMatchPercent:` `number The near fit percent set by the user.\n\n*** ** * ** ***\n\n### resourceType\n\nresourceType:` `string Resource type setting set by the user.\n\n*** ** * ** ***\n\n### sizeCriteria\n\nsizeCriteria:` `string Size criteria setting set by the user."]]