You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Import `google` namespace through `import type` instead of `import` to avoid compiler errors
5
+
6
+
## 2.0.0 (2020-11-20)
7
+
8
+
Breaking changes:
9
+
- Moved declaration of `google.ima` namespace from global scope to module scope to avoid type clashes, it now has to be imported explicitly: `import type { google } from '@alugha/ima;`
* The Google IMA SDK for HTML5 V3 allows developers to request and track VAST ads in a HTML5 video environment. For platform compatibility information and a detailed list of the video ad features supported by each of the IMA SDKs, see Support and Compatibility.
4
6
*
@@ -44,7 +46,7 @@ declare namespace google {
44
46
getCompanionAds(
45
47
adSlotWidth: number,
46
48
adSlotHeight: number,
47
-
settings?: CompanionAdSelectionSettings,
49
+
settings?: CompanionAdSelectionSettings
48
50
): CompanionAd[];
49
51
/**
50
52
* Returns the content type of the currently selected creative, or empty string if no creative is selected or the content type is unavailable. For linear ads, the content type is only going to be available after the START event, when the media file is selected.
@@ -181,7 +183,7 @@ declare namespace google {
181
183
constructor(
182
184
containerElement: HTMLElement,
183
185
videoElement?: HTMLVideoElement,
184
-
clickTrackingElement?: HTMLElement,
186
+
clickTrackingElement?: HTMLElement
185
187
);
186
188
/**
187
189
* Destroys internal state and previously created DOM elements. The IMA SDK will be unloaded and no further calls to any APIs should be made.
@@ -621,7 +623,7 @@ declare namespace google {
621
623
publicaddEventListener(
622
624
type: AdsManagerLoadedEvent.Type,
623
625
listener: AdsManagerLoadedEvent.Listener,
624
-
useCapture?: boolean,
626
+
useCapture?: boolean
625
627
): void;
626
628
/**
627
629
* Adds an event listener for the specified type.
@@ -632,7 +634,7 @@ declare namespace google {
632
634
publicaddEventListener(
633
635
type: AdErrorEvent.Type,
634
636
listener: AdErrorEvent.Listener,
635
-
useCapture?: boolean,
637
+
useCapture?: boolean
636
638
): void;
637
639
/**
638
640
* Removes an event listener for the specified type.
@@ -643,7 +645,7 @@ declare namespace google {
643
645
publicremoveEventListener(
644
646
type: AdsManagerLoadedEvent.Type,
645
647
listener: AdsManagerLoadedEvent.Listener,
646
-
useCapture?: boolean,
648
+
useCapture?: boolean
647
649
): void;
648
650
/**
649
651
* Removes an event listener for the specified type.
@@ -654,7 +656,7 @@ declare namespace google {
654
656
publicremoveEventListener(
655
657
type: AdErrorEvent.Type,
656
658
listener: AdErrorEvent.Listener,
657
-
useCapture?: boolean,
659
+
useCapture?: boolean
658
660
): void;
659
661
/**
660
662
* Signals to the SDK that the content is finished. This will allow the SDK to play post-roll ads, if any are loaded via ad rules.
@@ -690,7 +692,7 @@ declare namespace google {
690
692
addEventListener(
691
693
type: AdEvent.Type,
692
694
listener: AdEvent.Listener,
693
-
useCapture?: boolean,
695
+
useCapture?: boolean
694
696
): void;
695
697
/**
696
698
* Adds an event listener for the specified type.
@@ -701,7 +703,7 @@ declare namespace google {
701
703
addEventListener(
702
704
type: AdErrorEvent.Type,
703
705
listener: AdErrorEvent.Listener,
704
-
useCapture?: boolean,
706
+
useCapture?: boolean
705
707
): void;
706
708
/**
707
709
* Removes an event listener for the specified type.
@@ -712,7 +714,7 @@ declare namespace google {
712
714
removeEventListener(
713
715
type: AdEvent.Type,
714
716
listener: AdEvent.Listener,
715
-
useCapture?: boolean,
717
+
useCapture?: boolean
716
718
): void;
717
719
/**
718
720
* Removes an event listener for the specified type.
@@ -723,7 +725,7 @@ declare namespace google {
723
725
removeEventListener(
724
726
type: AdErrorEvent.Type,
725
727
listener: AdErrorEvent.Listener,
726
-
useCapture?: boolean,
728
+
useCapture?: boolean
727
729
): void;
728
730
/**
729
731
* Collapse the current ad. This is no-op for HTML5 SDK.
@@ -772,7 +774,7 @@ declare namespace google {
772
774
width: number,
773
775
height: number,
774
776
viewMode: ViewMode,
775
-
videoElement?: HTMLVideoElement,
777
+
videoElement?: HTMLVideoElement
776
778
): void;
777
779
/**
778
780
* Returns true if a custom click tracking element is being used for click tracking on the current ad. Custom click tracking is only used when an optional click tracking element is provided to the AdDisplayContainer, custom playback is used, and the current ad is not an AdSense/AdX ad.
@@ -821,7 +823,7 @@ declare namespace google {
821
823
* @param adsRenderingSettings The updated ads rendering settings.
* @returns During ads load request it is possible to provide an object that is available once the ads load is complete. One possible use case: relate ads response to a specific request and use user request content object as a key for identifying the response.
@@ -1166,7 +1168,7 @@ declare namespace google {
1166
1168
* @param mode The desired companion backfill mode.
1167
1169
*/
1168
1170
publicsetCompanionBackfill(
1169
-
mode: ImaSdkSettings.CompanionBackfillMode,
1171
+
mode: ImaSdkSettings.CompanionBackfillMode
1170
1172
): void;
1171
1173
/**
1172
1174
* Sets whether to disable custom playback on iOS 10+ browsers. If true, ads will play inline if the content video is inline. This enables TrueView skippable ads. However, the ad will stay inline and not support iOS's native fullscreen. When false, ads will play in the same player as your content. The value set here when an AdDisplayContainer is created is used for the lifetime of the container. The default value is false.
0 commit comments