Skip to content

Latest commit

 

History

History
120 lines (108 loc) · 2.83 KB

File metadata and controls

120 lines (108 loc) · 2.83 KB

Overview

Module Name: Start.io Bidder Adapter
Module Type: Bidder Adapter
Maintainer: prebid@start.io

Description

The Start.io Bid Adapter enables publishers to integrate with Start.io's demand sources for banner, video and native ad formats. The adapter supports OpenRTB standards and processes bid requests efficiently using the Prebid.js framework.

Test Parameters

var adUnits = [
  {
    code: 'test-div',
    mediaTypes: {
      banner: {
        sizes: [[300,250], [728,90]]
      }
    },
    bids: [
      {
        bidder: 'startio',
        params: {
          // REQUIRED - Publisher Account ID
          publisherId: 'your-account-id',

          // OPTIONAL - Enable test ads
          testAdsEnabled: true
        }
      }
    ]
  }
];

Sample Instream Video Ad Unit: For Publishers

var videoAdUnits = [
  {
    code: 'test-div-video',
    mediaTypes: {
      video: {
        context: 'instream',
        placement: 1,
        playerSize: [640, 360],
        mimes: ['video/mp4'],
        protocols: [2, 3, 5, 6],
        api: [2],
        maxduration: 30,
        linearity: 1,
        playbackmethod: [2]
      }
    },
    bids: [
      {
        bidder: 'startio',
        params: {
          publisherId: 'your-account-id',
          testAdsEnabled: true
        }
      }
    ]
  }
];

Sample Native Ad Unit: For Publishers

var nativeAdUnits = [
  {
    code: 'test-div-native',
    mediaTypes: {
      native: {
        title: { required: true, len: 80 },
        body: { required: true },
        image: { required: true, sizes: [150, 150] },
        icon: { required: false, sizes: [50, 50] },
        sponsoredBy: { required: true }
      }
    },
    bids: [
      {
        bidder: 'startio',
        params: {
          publisherId: 'your-account-id',
          testAdsEnabled: true
        }
      }
    ]
  }
];

User Syncs

The adapter supports iframe-based user syncing. When iframeEnabled is set to true in the sync options, the adapter returns a single iframe sync URL. GDPR, USP (CCPA), and GPP consent strings are automatically appended as query parameters when present.

pbjs.setConfig({
  userSync: {
    iframeEnabled: true
  }
});

Consent parameters included in the sync URL (when available):

  • gdpr1 if GDPR applies, 0 otherwise
  • gdpr_consent – the TCF consent string
  • us_privacy – the USP/CCPA consent string (e.g. 1YNN)
  • gpp – the GPP consent string
  • gpp_sections – applicable GPP section IDs

Additional Notes

  • The adapter processes requests via OpenRTB 2.5 standards.
  • Ensure that the publisherId parameter is set correctly for your integration.
  • Test ads can be enabled using testAdsEnabled: true during development.
  • The adapter supports multiple ad formats, allowing publishers to serve banners, native ads and instream video ads seamlessly.