-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new adapter ads_interactive (#12251)
- Loading branch information
1 parent
30f0d80
commit ffbe787
Showing
3 changed files
with
612 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { registerBidder } from '../src/adapters/bidderFactory.js'; | ||
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js'; | ||
import { isBidRequestValid, buildRequests, interpretResponse, getUserSyncs } from '../libraries/teqblazeUtils/bidderUtils.js'; | ||
|
||
const BIDDER_CODE = 'ads_interactive'; | ||
const AD_URL = 'https://bntb.adsintreactive.com/pbjs'; | ||
const SYNC_URL = 'https://cstb.adsinteractive.com'; | ||
|
||
export const spec = { | ||
code: BIDDER_CODE, | ||
supportedMediaTypes: [BANNER, VIDEO, NATIVE], | ||
|
||
isBidRequestValid: isBidRequestValid(), | ||
buildRequests: buildRequests(AD_URL), | ||
interpretResponse, | ||
getUserSyncs: getUserSyncs(SYNC_URL) | ||
}; | ||
|
||
registerBidder(spec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Overview | ||
|
||
``` | ||
Module Name: AdsInteractive Bidder Adapter | ||
Module Type: AdsInteractive Bidder Adapter | ||
Maintainer: [email protected] | ||
``` | ||
|
||
# Description | ||
|
||
Connects to AdsInteractive exchange for bids. | ||
AdsInteractive bid adapter supports Banner, Video (instream and outstream) and Native. | ||
|
||
# Test Parameters | ||
``` | ||
var adUnits = [ | ||
// Will return static test banner | ||
{ | ||
code: 'adunit1', | ||
mediaTypes: { | ||
banner: { | ||
sizes: [ [300, 250], [320, 50] ], | ||
} | ||
}, | ||
bids: [ | ||
{ | ||
bidder: 'ads_interactive', | ||
params: { | ||
placementId: 'testBanner', | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
code: 'addunit2', | ||
mediaTypes: { | ||
video: { | ||
playerSize: [ [640, 480] ], | ||
context: 'instream', | ||
minduration: 5, | ||
maxduration: 60, | ||
} | ||
}, | ||
bids: [ | ||
{ | ||
bidder: 'ads_interactive', | ||
params: { | ||
placementId: 'testVideo', | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
code: 'addunit3', | ||
mediaTypes: { | ||
native: { | ||
title: { | ||
required: true | ||
}, | ||
body: { | ||
required: true | ||
}, | ||
icon: { | ||
required: true, | ||
size: [64, 64] | ||
} | ||
} | ||
}, | ||
bids: [ | ||
{ | ||
bidder: 'ads_interactive', | ||
params: { | ||
placementId: 'testNative', | ||
} | ||
} | ||
] | ||
} | ||
]; | ||
``` |
Oops, something went wrong.