Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Fix 'google-ima3' — add 'getCreativeId' method to 'Ad.prototype'

Open AdamWr opened this issue 4 months ago • 0 comments

Related to - https://github.com/AdguardTeam/AdguardFilters/issues/210180, google-ima3 breaks video player. It looks like that there is missed getCreativeId method in Ad.prototype: https://github.com/AdguardTeam/Scriptlets/blob/3ba245f96237915bbff6fe80c7400b03c0f5014d/src/redirects/google-ima3.js#L281-L315

As far as I understand, it should be a function which returns empty string. https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.Ad#getCreativeId


Consider also updating google.ima.VERSION: https://github.com/AdguardTeam/Scriptlets/blob/3ba245f96237915bbff6fe80c7400b03c0f5014d/src/redirects/google-ima3.js#L23 to the latest version (currently it's 3.728.0).

AdamWr avatar Jul 27 '25 13:07 AdamWr