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

Add adapter for GAMMA SSP #2092

Merged
merged 21 commits into from
Feb 12, 2018
Merged

Add adapter for GAMMA SSP #2092

merged 21 commits into from
Feb 12, 2018

Conversation

gammassp
Copy link
Contributor

@gammassp gammassp commented Feb 1, 2018

Type of change

  • New bidder adapter

Description of change

Added HB adapter for Gamma SSP following Prebid.js 1.0

  • test parameters for validating bids
{
bidder: 'gamma',
    params: {
        siteId: '1465446377',
        zoneId: '1515999290'
    }
}
  • contact email of the adapter’s maintainer: [email protected]
  • official adapter submission

@gammassp gammassp mentioned this pull request Feb 1, 2018
2 tasks
@gammassp
Copy link
Contributor Author

gammassp commented Feb 1, 2018

Docs for Gamma bidder adapter
prebid/prebid.github.io#583

@bretg bretg requested a review from matthewlane February 2, 2018 00:45
@mkendall07 mkendall07 assigned jsnellbaker and unassigned matthewlane Feb 2, 2018
@mkendall07 mkendall07 requested review from jsnellbaker and removed request for matthewlane February 2, 2018 14:06
Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Hello @gammassp, thank you for submitting this adapter. Overall things seem good, though I did have some points for review (please find them below).

Additionally, can you please add some unit tests for the bidAdapter? If you need further information on this piece of the setup, please take a look at the following link:
http://prebid.org/dev-docs/bidder-adaptor.html#adding-unit-tests

Thanks!

dealId: serverBid.seatbid[0].bid[0].dealid,
width: serverBid.seatbid[0].bid[0].w,
height: serverBid.seatbid[0].bid[0].h,
mediaType: serverBid.type,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this property can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was removed mediaType property

* @return boolean True if this is a valid bid, and false otherwise.
*/
isBidRequestValid: function(bid) {
return !!(bid.params.siteId || bid.params.zoneId || bid.params.gaxDomain);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the gaxDomain something you want to always specify within the params object? Is this value going to change often? Other adapters typically setup their own variable for this type of data point in the adapter file so that it's just innately available, so wanted to confirm here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The gaxDomain is endpoint domain, it's required and we do not change often.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @gammassp,

In that case - wouldn't it be more ideal/convenient to have the endpoint incorporated into your adapter's code directly rather than rely on it be passed from the param object? It would be one less thing to maintain/verify within your code, as you would always know what the value would be.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @jsnellbaker,

The gaxDomain param was removed and moved into adapter, please review again.

Thanks so much

@gammassp
Copy link
Contributor Author

gammassp commented Feb 5, 2018

Hi @jsnellbaker,

I have just commited Unit test spec and updated adapter, please review again.

Thanks a lot

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Thanks @gammassp for making the additional changes.

LGTM

@jsnellbaker jsnellbaker merged commit a2741f0 into prebid:master Feb 12, 2018
@jsnellbaker jsnellbaker added this to the Prebid 1.4.0 milestone Feb 12, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants