Ads Entity

The ads entity stores every ad unit of the game: each row is a banner or an event video served by one of the ads providers.

Managing ads in the admin panel

Ads are in the Ads section of the admin sidebar, under Ads (/reldens-admin/ads). The sample data includes the fullTimeBanner and ui-banner banners and two sample videos, all disabled by default. See Ads - Banners and Rewarded Videos.

Key Properties

  • key: Unique ad identifier
  • provider_id: Ads provider that serves the ad
  • type_id: Ad type (banner or eventVideo)
  • width and height: Banner size
  • position, top, bottom, left and right: Banner placement on the screen
  • replay: For videos, whether the same ad can be played again
  • enabled: Only the enabled ads are loaded
  • created_at and updated_at: Timestamps

Database Relations

  • ads_providers: Provider of the ad
  • ads_types: Type of the ad
  • ads_banner: Banner data of a banner ad
  • ads_event_video: Event and reward of a video ad
  • ads_played: Videos played by each player
Go Up