Onboarding

Onboarding & Integration

3 simple steps to plug Dribads into your apps

01

Create your first ad from the dashboard

02

Pull an ad via the API

03

Track views and clicks instantly

Quick usage example

const videoOwnerId = "<creator_user_uuid>";

fetch(`/api/ads?placement=pre_roll&video_owner_id=${videoOwnerId}&app=dribdo`,
  { cache: "no-store" }
)
  .then((res) => res.json())
  .then(({ ad }) => {
    if (!ad) return;

    // 1) Mark impression
    fetch("/api/ad-view", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ ad_id: ad.id, app_slug: "dribdo" }),
    });

    // 2) On click => /api/ad-click
    // 3) On skip => /api/ad-skip
    // 4) On complete => /api/ad-complete
  });