Skip to content

Commit

Permalink
Add vastUrl for Gamma Adapter Video (prebid#2261)
Browse files Browse the repository at this point in the history
* commit gamma adapter

* Fixed The Travis CI build failed

* fix interpretResponse return empty when server response empty

* removed mediaType

removed mediaType in bid 
and return vastXml property if video request

* fixed Travis CI build

* Travis CI build

* add gamma spec

* fixed Travis CI build

* fix spec

* fix spec

* Add files via upload

* Add files via upload

* fix spec

* fix Travis CI build

* move to module

* remove gaxDomain param and move to adapter

* remove check isBidRequestValid for gaxDomain

* remove gaxDomain param

* remove gaxDomain param

* remove gaxDomain param

* Delete gammaBidAdapter_spec.js

* add usersync endpoid

* add usersync

* add vastUrl

* add supportedMediaTypes to bidder spec

* add Test Parameters: For Video
  • Loading branch information
gammassp authored and dluxemburg committed Jul 17, 2018
1 parent 6d63e19 commit 9b1b750
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/gammaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const BIDDER_CODE = 'gamma';
export const spec = {
code: BIDDER_CODE,
aliases: ['gamma'],
supportedMediaTypes: ['banner', 'video'],

/**
* Determines whether or not the given bid request is valid.
Expand Down Expand Up @@ -85,6 +86,7 @@ function newBid(serverBid) {
if (serverBid.type == 'video') {
Object.assign(bid, {
vastXml: serverBid.seatbid[0].bid[0].vastXml,
vastUrl: serverBid.seatbid[0].bid[0].vastUrl,
ttl: 3600
});
}
Expand Down
19 changes: 18 additions & 1 deletion modules/gammaBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Connects to Gamma exchange for bids.

Gamma bid adapter supports Banner, Video.

# Test Parameters
# Test Parameters: For Banner
```
var adUnits = [{
code: 'gamma-hb-ad-123456-0',
Expand All @@ -29,6 +29,23 @@ var adUnits = [{
}];
```
# Test Parameters: For Video
```
var adUnits = [{
code: 'gamma-hb-ad-78910-0',
sizes: [[640, 480]],
// Replace this object to test a new Adapter!
bids: [{
bidder: 'gamma',
params: {
siteId: '1465446377',
zoneId: '1493280341'
}
}]
}];
```
# Ad Unit and Setup: For Testing
In order to receive bids please map localhost to (any) test domain.

Expand Down

0 comments on commit 9b1b750

Please sign in to comment.