[[["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-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eCompanionAd\u003c/code\u003e is a class within dynamic ad insertion representing a companion ad, providing access to a subset of ima.CompanionAd properties.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a constructor to create a \u003ccode\u003eCompanionAd\u003c/code\u003e object and methods to retrieve details like ad slot ID, content, content type, height, and width.\u003c/p\u003e\n"]]],[],null,["# Class: CompanionAd\n\nCompanionAd\n===========\n\nclass public\n\nA class representing a companion ad object during dynamic ad insertion. This\nclass exposes a subset of the ima.CompanionAd properties.\n\nConstructor\n-----------\n\n### CompanionAd\n\nnew\nCompanionAd(companion)\n\nConstructor.\n\n| #### Parameter ||\n|-----------|-------------------------|\n| companion | Value must not be null. |\n\nMethods\n-------\n\n### getAdSlotId\n\ngetAdSlotId() returns (null or string)\n\nReturns\n\n: `(null or string)`\n\n### getContent\n\ngetContent() returns string\n\nReturns\n\n: `string`\n\n### getContentType\n\ngetContentType() returns (null or string)\n\nReturns\n\n: `(null or string)`\n\n### getHeight\n\ngetHeight() returns number\n\nReturns\n\n: `number`\n\n### getWidth\n\ngetWidth() returns number\n\nReturns\n\n: `number`"]]