Skip to content

Commit

Permalink
Add missing AdRequest.omidAccessModeRules property in google-ima.js (#34
Browse files Browse the repository at this point in the history
)

It turns out that an AdRequest class should have an
omidAccessModeRules[1] Object property. Some websites broke when
trying to access the missing property.

1 - https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#omidAccessModeRules
  • Loading branch information
kzar authored Nov 30, 2023
1 parent 74aa5d6 commit 57b7dd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions surrogates/google-ima.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,9 @@ if (!window.google || !window.google.ima || !window.google.ima.VERSION) {
class AdsRenderingSettings {}

class AdsRequest {
constructor() {
this.omidAccessModeRules = {};
}
setAdWillAutoPlay() {}
setAdWillPlayMuted() {}
setContinuousPlayback() {}
Expand Down

0 comments on commit 57b7dd9

Please sign in to comment.