Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advect Bid Adapter: add #12638

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions modules/advectBidAdapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { isBidRequestValid, buildRequests, interpretResponse } from '../libraries/teqblazeUtils/bidderUtils.js';

const BIDDER_CODE = 'advect';
const AD_URL = 'https://bs.advect.ru/prebid';

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

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

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

```
Module Name: Advect Bidder Adapter
Module Type: Bidder Adapter
Maintainer: [email protected]
```

# Description

The Advect Prebid Adapter is designed for seamless integration with Advect's advertising services. It facilitates effective bidding by leveraging Advect's robust ad-serving technology, ensuring publishers can maximize their ad revenue through efficient and targeted ad placements.

# Parameters

| Name | Required? | Description | Example | Type |
|---------------|--------------------------------------------|-------------|---------|-----------|
| `placementId` | Yes | Block ID | `123-1` | `String` |
| `pageId` | No<br>Deprecated. Please use `placementId` | Page ID | `123` | `Integer` |
| `impId` | No<br>Deprecated. Please use `placementId` | Imp ID | `1` | `Integer` |

# Test Parameters

```javascript
var adUnits = [
{ // banner
code: 'banner-1',
mediaTypes: {
banner: {
sizes: [[240, 400], [300, 600]],
}
},
bids: [
{
bidder: 'advect',
params: {
placementId: '346580-1'
},
}
],
},
];
```
Loading