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

Fidelity Media Adapter update. Prebid v1.0 #1719

Merged
merged 11 commits into from
Oct 26, 2017
Merged

Fidelity Media Adapter update. Prebid v1.0 #1719

merged 11 commits into from
Oct 26, 2017

Conversation

onaydenov
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other

Description of change

Fidelity Media Adapter update. Prebid v1.0 and features update.

  • test parameters for validating bids
{
  bidder: 'fidelity',
  params: {
    zoneid: '27248',
    floor: 0.01,
    server: 'x.fidelity-media.com'
  }
}

Be sure to test the integration with your adserver using the Hello World sample page.

Other information

Fidelity Media Adapter update. Prebid v1.0 plus featutes update.
Add Prebid v1.0 support
Add parameter "floor"

Removed:
"Loc"
"Click"
"SubId"

Subid=HB trasferred to SSP by default now.
Fidelity Media Adapter update. Prebid v1.0 plus featutes update.

Add Prebid v1.0 support
Add parameter "floor"

Removed:
"Loc"
"Click"
"SubId"

Subid=HB trasferred to SSP by default now.
@onaydenov onaydenov changed the title Prebid 1.0 fidelityadapterupdate Fidelity Media Adapter update. Prebid v1.0 Oct 18, 2017
@jaiminpanchal27 jaiminpanchal27 self-assigned this Oct 18, 2017
@onaydenov
Copy link
Contributor Author

We've been trying reproduce error locally with no success. Local tests pass normally. Please look into and let me know how to proceed with the PR further.

@jaiminpanchal27
Copy link
Collaborator

@onaydenov Checks seem to pass after restarting the build. I will check your PR probably today.

Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a comment

Choose a reason for hiding this comment

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

@onaydenov Thanks for submitting 1.0 adapter.
Just 1 minor change in code is required.

Also add .md file http://prebid.org/dev-docs/bidder-adapter-1.html#planning-your-adapter

interpretResponse: function(serverResponse) {
const bidResponses = [];
if (serverResponse && serverResponse.seatbid) {
serverResponse.seatbid.forEach(seatBid => seatBid.bid.forEach(bid => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to add required field ttl : Time-to-Live - how long (in seconds) Prebid can use this bid

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks for review. I'll add .md and update adapter by the end of today hopefully.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jaiminpanchal27 All done. Changes were made, checks passed.

if (serverResponse && serverResponse.seatbid) {
serverResponse.seatbid.forEach(seatBid => seatBid.bid.forEach(bid => {
const bidResponse = {
bidderCode: spec.code,
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey,

I made some last minute changes to adapter aliasing, and our docs are out of date... but could you remove this bidderCode? It's not required, and will actually break things.

Thanks

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also add creativeId as it is a required param.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, we'll do both. I'll upload new code ASAP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dbemiller @jaiminpanchal27 These updates are done, take a look at result.

@jaiminpanchal27
Copy link
Collaborator

@onaydenov Its LGTM now, except this one below.
Apologies for this, #1742 got merged recently.

The first argument to interpretResponse now looks like this:

{
  body: responseBody,
  headers: {
    get: function(header) { /* returns a header from the HTTP response */ }
  }
}

You'll have to pull master and update the spec so that it looks digs into that object as well now.

@onaydenov
Copy link
Contributor Author

@jaiminpanchal27 Done. Could you check and approve.

@dbemiller dbemiller merged commit c5d1ecf into prebid:master Oct 26, 2017
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Oct 31, 2017
* 'master' of https://github.com/prebid/Prebid.js: (22 commits)
  Update GetIntent adapter to 1.0 version (prebid#1721)
  Add `usePaymentRule` param to AN bidders (prebid#1778)
  New hooks API (replaces monkey-patching for currency) (prebid#1683)
  Change prebidServer to call client user syncs if they exist (prebid#1734)
  Fix Centro adapter to allow requests of the same units (prebid#1746)
  add vastUrl + media type for video bids Prebid Server (prebid#1739)
  Update adxcg adapter for prebid 1.0 (prebid#1741)
  Update yieldmoBid adapter request url (prebid#1771)
  Upgrade Quantcast adapter for Prebid 1.0 (prebid#1753)
  Fidelity Media Adapter update. Prebid v1.0 (prebid#1719)
  Kargo Adapter for Prebid 1.0 (prebid#1729)
  updated for prebid 1.0 api (prebid#1722)
  Add AdOcean adapter (prebid#1735)
  Update Conversant adapter to Prebid 1.0 (prebid#1711)
  Fix test-coverage bug (prebid#1765)
  Migrating TrustX adapter to 1.0 (prebid#1709)
  Update Improve Digital adapter for Prebid 1.0 (prebid#1728)
  Fixed the argument type on getUserSyncs. (prebid#1767)
  nanointeractive bid adapter (prebid#1627)
  Validating bid response params (prebid#1738)
  ...
mattpr pushed a commit to mattpr/Prebid.js that referenced this pull request Oct 31, 2017
* Fidelity Media Adapter update. Prebid v1.0.

Fidelity Media Adapter update. Prebid v1.0 plus featutes update.
Add Prebid v1.0 support
Add parameter "floor"

Removed:
"Loc"
"Click"
"SubId"

Subid=HB trasferred to SSP by default now.

* Fidelity Media Adapter update. Prebid v1.0.

Fidelity Media Adapter update. Prebid v1.0 plus featutes update.

Add Prebid v1.0 support
Add parameter "floor"

Removed:
"Loc"
"Click"
"SubId"

Subid=HB trasferred to SSP by default now.

* Fidelity Media fmxSSP Adapter update. Prebid v1.0

* Fidelity Media. Prebid v 1.0 Add tmax

* Fidelity Media. Prebid v 1.0. ttl

* Fidelity Media. Prebid v 1.0. spec

* Less bidderCode, add creativeId

* Adapter v.1, less bidderCode, add creativeId

* Prebid v1. InterpretResponse. Spec.

* InterpretResponse

* InterpretResponse
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Nov 13, 2017
* tag '0.32.0' of https://github.com/prebid/Prebid.js: (44 commits)
  Prebid 0.32.0 Release
  Commenting out tests that are failing in IE10 (prebid#1710)
  Update dfp.buildVideoUrl to accept adserver url (prebid#1663)
  Update rubicon adapter with new properties and 1.0 changes (prebid#1776)
  Added adUnitCode for compatibility (prebid#1781)
  Remove 'supported' from analytics adapter info (prebid#1780)
  Add TTL parameter to bid (prebid#1784)
  Update GetIntent adapter to 1.0 version (prebid#1721)
  Add `usePaymentRule` param to AN bidders (prebid#1778)
  New hooks API (replaces monkey-patching for currency) (prebid#1683)
  Change prebidServer to call client user syncs if they exist (prebid#1734)
  Fix Centro adapter to allow requests of the same units (prebid#1746)
  add vastUrl + media type for video bids Prebid Server (prebid#1739)
  Update adxcg adapter for prebid 1.0 (prebid#1741)
  Update yieldmoBid adapter request url (prebid#1771)
  Upgrade Quantcast adapter for Prebid 1.0 (prebid#1753)
  Fidelity Media Adapter update. Prebid v1.0 (prebid#1719)
  Kargo Adapter for Prebid 1.0 (prebid#1729)
  updated for prebid 1.0 api (prebid#1722)
  Add AdOcean adapter (prebid#1735)
  ...
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Fidelity Media Adapter update. Prebid v1.0.

Fidelity Media Adapter update. Prebid v1.0 plus featutes update.
Add Prebid v1.0 support
Add parameter "floor"

Removed:
"Loc"
"Click"
"SubId"

Subid=HB trasferred to SSP by default now.

* Fidelity Media Adapter update. Prebid v1.0.

Fidelity Media Adapter update. Prebid v1.0 plus featutes update.

Add Prebid v1.0 support
Add parameter "floor"

Removed:
"Loc"
"Click"
"SubId"

Subid=HB trasferred to SSP by default now.

* Fidelity Media fmxSSP Adapter update. Prebid v1.0

* Fidelity Media. Prebid v 1.0 Add tmax

* Fidelity Media. Prebid v 1.0. ttl

* Fidelity Media. Prebid v 1.0. spec

* Less bidderCode, add creativeId

* Adapter v.1, less bidderCode, add creativeId

* Prebid v1. InterpretResponse. Spec.

* InterpretResponse

* InterpretResponse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants