Repository navigation
v2.0.0 - Script Ads Support
Breaking Changes
AdResponse.imageUrlchanged fromstringtostring | undefinedAdResponse.destinationUrlchanged fromstringtostring | undefined
New Features
- Script ad support:
AdUnitnow renders third-party script-based ads (ad network tags) automatically. The ad server decides the type; no client-side configuration needed. typefield ('image' | 'script') onAdResponsescriptContentfield onAdResponsefor script ads- Support for flat API response format alongside the wrapped format
widthandheightfields now included in API responses
Fixes
- Fixed query parameter: SDK now sends
zone_slug(matching the backend) instead ofzone
Full Changelog
See CHANGELOG.md