[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-21。"],[],[],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`"]]