-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New Adapter: TeqBlaze Demo #14837
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
Merged
+585
−0
Merged
New Adapter: TeqBlaze Demo #14837
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4058b9a
added ts for teqblaze utils and some fixes
MaksymTeqBlaze cd79fbf
Merge branch 'prebid:master' into master
MaksymTeqBlaze c1b7121
Merge branch 'prebid:master' into master
MaksymTeqBlaze 82ee2ee
Merge branch 'prebid:master' into master
MaksymTeqBlaze 5b9177f
Merge branch 'prebid:master' into master
MaksymTeqBlaze bb5faa4
New Adapter: TeqBlaze Demo
MaksymTeqBlaze 3b3a971
update readme
MaksymTeqBlaze 0ed6e9a
Fix formatting in TeqBlaze Demo Bid Adapter documentation
patmmccann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,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. | ||
|
|
||
| # 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', | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ]; | ||
| ``` | ||
This file contains hidden or 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,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); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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