Skip to content

Commit

Permalink
Copper6SSP: new adapter (#11809)
Browse files Browse the repository at this point in the history
* release adapter Copper6SSP

* removed code duplication
  • Loading branch information
Copper6SSP authored Jun 26, 2024
1 parent ac3f0e8 commit 8e27b09
Show file tree
Hide file tree
Showing 3 changed files with 612 additions and 0 deletions.
19 changes: 19 additions & 0 deletions modules/copper6sspBidAdapter.js
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 = 'copper6ssp';
const AD_URL = 'https://endpoint.copper6.com/pbjs';
const SYNC_URL = 'https://сsync.copper6.com';

export const spec = {
code: BIDDER_CODE,
supportedMediaTypes: [BANNER, VIDEO, NATIVE],

isBidRequestValid: isBidRequestValid(),
buildRequests: buildRequests(AD_URL),
interpretResponse,
getUserSyncs: getUserSyncs(SYNC_URL)
};

registerBidder(spec);
79 changes: 79 additions & 0 deletions modules/copper6sspBidAdapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Overview

```
Module Name: Copper6SSP Bidder Adapter
Module Type: Copper6SSP Bidder Adapter
Maintainer: info@copper6.com
```

# Description

Connects to Copper6SSP exchange for bids.
Copper6SSP 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: 'copper6ssp',
params: {
placementId: 'testBanner',
}
}
]
},
{
code: 'addunit2',
mediaTypes: {
video: {
playerSize: [ [640, 480] ],
context: 'instream',
minduration: 5,
maxduration: 60,
}
},
bids: [
{
bidder: 'copper6ssp',
params: {
placementId: 'testVideo',
}
}
]
},
{
code: 'addunit3',
mediaTypes: {
native: {
title: {
required: true
},
body: {
required: true
},
icon: {
required: true,
size: [64, 64]
}
}
},
bids: [
{
bidder: 'copper6ssp',
params: {
placementId: 'testNative',
}
}
]
}
];
```
Loading

0 comments on commit 8e27b09

Please sign in to comment.