Skip to content
Merged
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
80 changes: 80 additions & 0 deletions modules/teqBlazeDemoBidAdapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Overview

```
Module Name: TeqBlaze Demo Bidder Adapter
Module Type: TeqBlaze Demo Bidder Adapter
Maintainer: support@teqblaze.com
```

# Description

Connects to TeqBlaze Demo for bids.
TeqBlaze Demo bid adapter supports Banner, Video (instream and outstream) and Native.
This adapter is for internal testing only and should not be used for production integrations.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you indicate if this is not for publisher production use

# Test Parameters
```
var adUnits = [
// Will return static test banner
{
code: 'adunit1',
mediaTypes: {
banner: {
sizes: [ [300, 250], [320, 50] ],
}
},
bids: [
{
bidder: 'tqblz_demo',
params: {
placementId: 'testBanner',
}
}
]
},
{
code: 'addunit2',
mediaTypes: {
video: {
playerSize: [ [640, 480] ],
context: 'instream',
minduration: 5,
maxduration: 60,
}
},
bids: [
{
bidder: 'tqblz_demo',
params: {
placementId: 'testVideo',
}
}
]
},
{
code: 'addunit3',
mediaTypes: {
native: {
title: {
required: true
},
body: {
required: true
},
icon: {
required: true,
size: [64, 64]
}
}
},
bids: [
{
bidder: 'tqblz_demo',
params: {
placementId: 'testNative',
}
}
]
}
];
```
28 changes: 28 additions & 0 deletions modules/teqBlazeDemoBidAdapter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { BidderSpec, registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import {
buildRequests,
interpretResponse,
isBidRequestValid,
type TeqBlazeBidParams
} from '../libraries/teqblazeUtils/bidderUtils.ts';

const BIDDER_CODE = 'tqblz_demo';
const AD_URL = 'https://test-ssp-node-1.teqblaze.com/pbjs';

declare module '../src/adUnits' {
interface BidderParams {
[BIDDER_CODE]: TeqBlazeBidParams;
}
}

export const spec: BidderSpec<typeof BIDDER_CODE> = {
code: BIDDER_CODE,
supportedMediaTypes: [BANNER, VIDEO, NATIVE],

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

registerBidder(spec);
Loading
Loading