[null,null,["Last updated 2025-01-17 UTC."],[[["\u003cp\u003eThis page provides a reference for enumerations related to companion ad selection within the Interactive Media Ads (IMA) SDK.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreativeType\u003c/code\u003e enumeration offers options for specifying the desired creative type of a companion ad, including \u003ccode\u003eALL\u003c/code\u003e, \u003ccode\u003eFLASH\u003c/code\u003e, and \u003ccode\u003eIMAGE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceType\u003c/code\u003e enumeration defines the possible resource types for companion ads, such as \u003ccode\u003eALL\u003c/code\u003e, \u003ccode\u003eHTML\u003c/code\u003e, \u003ccode\u003eIFRAME\u003c/code\u003e, and \u003ccode\u003eSTATIC\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSizeCriteria\u003c/code\u003e enumeration enables control over the size selection process for companion ads, with options like \u003ccode\u003eIGNORE\u003c/code\u003e, \u003ccode\u003eSELECT_EXACT_MATCH\u003c/code\u003e, \u003ccode\u003eSELECT_FLUID\u003c/code\u003e, and \u003ccode\u003eSELECT_NEAR_MATCH\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace 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\n| Enumerations ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|\n| [CreativeType](/interactive-media-ads/docs/sdks/html5/client-side/reference/namespace/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.CreativeType) | Available choices for creative type of a companion ad. |\n| [ResourceType](/interactive-media-ads/docs/sdks/html5/client-side/reference/namespace/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.ResourceType) | Available choices for resource type of a companion ad. |\n| [SizeCriteria](/interactive-media-ads/docs/sdks/html5/client-side/reference/namespace/google.ima.CompanionAdSelectionSettings#google.ima.CompanionAdSelectionSettings.SizeCriteria) | Available choices for size selection criteria. |\n\nEnumerations\n------------\n\n*** ** * ** ***\n\n### CreativeType\n\nCreativeType\nAvailable choices for creative type of a companion ad. The user can specify any of these choices as a criterion for selecting companion ads.\n\n| Enumeration Members ||\n|-------|----------------------------------------------------------|\n| ALL | Specifies all creative types. |\n| FLASH | Specifies Flash creatives. |\n| IMAGE | Specifies image creatives (such as JPEG, PNG, GIF, etc). |\n\n*** ** * ** ***\n\n### ResourceType\n\nResourceType\nAvailable choices for resource type of a companion ad. The user can specify any of these choices as a criterion for selecting companion ads.\n\n| Enumeration Members ||\n|--------|-----------------------------------------------------------------------------------------------|\n| ALL | Specifies that the resource can be any type of resource. |\n| HTML | Specifies that the resource should be an HTML snippet. |\n| IFRAME | Specifies that the resource should be a URL that should be used as the source of an `iframe`. |\n| STATIC | Specifies that the resource should be a static file (usually the URL of an image of SWF). |\n\n*** ** * ** ***\n\n### SizeCriteria\n\nSizeCriteria\nAvailable choices for size selection criteria. The user can specify any of these choices for selecting companion ads.\n\n| Enumeration Members ||\n|--------------------|-------------------------------------------------------------------------------------------------------|\n| IGNORE | Specifies that size should be ignored when choosing companions. |\n| SELECT_EXACT_MATCH | Specifies that only companions that match the size of the companion ad slot exactly should be chosen. |\n| SELECT_FLUID | Specifies that only special size, 'fluid', companions should be chosen. |\n| SELECT_NEAR_MATCH | Specifies that any companion close to the size of the companion ad slot should be chosen. |"]]