Skip to content

v2.0.0 - Script Ads Support

Choose a tag to compare

@yuuues yuuues released this 12 Mar 09:52
· 7 commits to main since this release

Breaking Changes

  • AdResponse.imageUrl changed from string to string | undefined
  • AdResponse.destinationUrl changed from string to string | undefined

New Features

  • Script ad support: AdUnit now renders third-party script-based ads (ad network tags) automatically. The ad server decides the type; no client-side configuration needed.
  • type field ('image' | 'script') on AdResponse
  • scriptContent field on AdResponse for script ads
  • Support for flat API response format alongside the wrapped format
  • width and height fields now included in API responses

Fixes

  • Fixed query parameter: SDK now sends zone_slug (matching the backend) instead of zone

Full Changelog

See CHANGELOG.md