Skip to content

Commit 217d7f1

Browse files
theodabavelad
authored andcommitted
chore: Update IMA externs (#7274)
Adds CompanionAd, and fixes a typo. Copied from a contribution to the Shaka Player mirror in Google's internal repository.
1 parent b0b6897 commit 217d7f1

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

externs/ima.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ google.ima.Ad = class {
269269
getMediaUrl() {}
270270
};
271271

272-
273272
/** @const */
274273
google.ima.AdPodInfo = class {
275274
/** @return {number} */
@@ -366,7 +365,7 @@ google.ima.AdEvent.Type = {
366365
* @description Request for the ad server
367366
* @property {string|undefined} adTagUrl
368367
* Specifies the ad tag url that is requested from the ad server.
369-
* This parameter is optional if adsReponse is given.
368+
* This parameter is optional if adsResponse is given.
370369
* @property {string|undefined} adsResponse
371370
* Specifies a VAST 2.0 document to be used as the ads response instead of
372371
* making a request via an ad tag url. This can be useful for debugging
@@ -518,6 +517,9 @@ google.ima.dai.api.Ad = class {
518517

519518
/** @return {string} */
520519
getCreativeAdId() {}
520+
521+
/** @return {!Array.<!google.ima.dai.api.CompanionAd>} */
522+
getCompanionAds() {}
521523
};
522524

523525

@@ -536,6 +538,24 @@ google.ima.dai.api.AdPodInfo = class {
536538
getPodIndex() {}
537539
};
538540

541+
/** @const */
542+
google.ima.dai.api.CompanionAd = class {
543+
/** @return {?string} */
544+
getAdSlotId() {}
545+
546+
/** @return {string} */
547+
getContent() {}
548+
549+
/** @return {?string} */
550+
getContentType() {}
551+
552+
/** @return {number} */
553+
getHeight() {}
554+
555+
/** @return {?number} */
556+
getWidth() {}
557+
};
558+
539559

540560
/** @const */
541561
google.ima.dai.api.CuePoint = class {};

0 commit comments

Comments
 (0)