One shared advertising system
BAPC Ads
Every BAPC app shows BAPC's own promotions from one place: three spots on every page (top, middle and bottom), one owner-only admin, and no personal data in any event.
Add BAPC Ads to a page
- Load the script once per page:
<script src="https://ads.bapc.app/ads.js" defer></script> - Put the three spots where they belong:
<bapc-ad app="overs" page="home" spot="top"></bapc-ad> <bapc-ad app="overs" page="home" spot="middle"></bapc-ad> <bapc-ad app="overs" page="home" spot="bottom"></bapc-ad> - Allow BAPC Ads in the page's Content-Security-Policy (no style change needed):
script-src https://ads.bapc.app; connect-src https://ads.bapc.app; img-src https://ads.bapc.app; media-src https://ads.bapc.app
Tags added later (single-page apps) and changed attributes work. If anything fails, the spot hides itself.
How it counts
- An impression counts only when at least half the card is visible for one second in a visible tab.
- Clicks, button clicks, dismissals and video quarters are counted once per delivery.
- Tracked links work for 30 minutes; paused, ended or removed ads never redirect.
- Only approved HTTPS destinations can be advertised.
- Screens re-check every 30 seconds, so switching an ad or a spot off takes effect quickly.