(null or string) Returns the ad slot id for this companion.
getContent
getContent() returns string
Returns the HTML content for the companion ad that can be added to the
publisher page.
Returns
string The HTML content.
getContentType
getContentType() returns (null or string)
Returns
(null or string) The content type of the Companion Ad. This may return
null if the content type is not known (such as in the case of a VAST
HTMLResource or IFrameResource).
getHeight
getHeight() returns number
Returns
number Returns the height of the companion in pixels.
getWidth
getWidth() returns number
Returns
number Returns the width of the companion in pixels.
[[["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 2024-08-21 UTC."],[[["`google.ima.CompanionAd` represents a companion ad, providing access to its properties and content."],["This class allows publishers to get the HTML content, dimensions (height and width), ad slot ID, and content type of the companion ad."],["Companion ads are supplementary creatives displayed alongside the main video ad, often providing additional context or calls to action."]]],[]]