Skip to content

Commit

Permalink
chore: Update IMA externs (#7274)
Browse files Browse the repository at this point in the history
Adds CompanionAd, and fixes a typo.

Copied from a contribution to the Shaka Player mirror in Google's
internal repository.
  • Loading branch information
theodab authored Sep 9, 2024
1 parent 64e45c9 commit d9a5a1e
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions externs/ima.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ google.ima.Ad = class {
getMediaUrl() {}
};


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

/** @return {string} */
getCreativeAdId() {}

/** @return {!Array.<!google.ima.dai.api.CompanionAd>} */
getCompanionAds() {}
};


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

/** @const */
google.ima.dai.api.CompanionAd = class {
/** @return {?string} */
getAdSlotId() {}

/** @return {string} */
getContent() {}

/** @return {?string} */
getContentType() {}

/** @return {number} */
getHeight() {}

/** @return {?number} */
getWidth() {}
};


/** @const */
google.ima.dai.api.CuePoint = class {};
Expand Down

0 comments on commit d9a5a1e

Please sign in to comment.