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

QuantumBidAdapter usersync bugfix #2700

Merged
merged 35 commits into from
Jun 18, 2018
Merged

Conversation

sami-elasticad
Copy link
Contributor

  • Bugfix

  • Feature

  • New bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

  • contact email of the adapter’s maintainer

  • official adapter submission

@malves
Copy link

malves commented Jun 13, 2018

Hi @sami-elasticad

In the condition at line 305 (and multiple times after) you try to get the serverResponses.body property value.

serverResponses seems to be an array so you cannot read the body property this way.

You should loop through all elements in serverResponses

@sami-elasticad
Copy link
Contributor Author

sami-elasticad commented Jun 14, 2018

Hi @malves our ssp responds all the time only with one element not with an array. because of that we don't loop the response body.

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.

Hi @sami-elasticad,

I had a question regards to the changes; please see the note in-line below.

Additionally, when I tested the iframe userSync pixels I saw a pair of warning messages in the browser console related to the pixels. Below is a copy of the messages:

Resource interpreted as Document but transferred with MIME type image/gif: "http://match.adsrvr.org/track/cmb/generic?ttd_pid=s6e8ued&ttd_tpi=1".
Resource interpreted as Document but transferred with MIME type image/gif: "http://s.sspqns.com/sync?tp_id=28&tp_uid=e3XuIlDznIWDzTooVA5HhRCku6G4ped2t-VRqBewJ-Y%3D".

It seems like the URLs still executed per the Network tab, but I wanted to bring it to your attention.

const syncs = [];
utils._each(serverResponse, function(serverResponse) {
if (serverResponse.body && serverResponse.body.sync) {
const syncType = syncOptions.pixelEnabled ? 'image' : 'iframe';
Copy link
Collaborator

Choose a reason for hiding this comment

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

To clarify the intent here - do you want to only use one type of pixel per auction?

Further, the userSync feature defaults the pixelEnabled field to true and the iframe pixels are opt-in via the config. So your iframe pixels will only drop with specific config options; ie

userSync: {
  pixelEnabled: false,
  iframeEnabled: true
}

My assumption is this would create a heavier bias towards image-based pixels. Is that a concern?

Copy link
Contributor Author

@sami-elasticad sami-elasticad Jun 18, 2018

Choose a reason for hiding this comment

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

Hi. Thank you for your review. From our side all sync pixels are images. I will modify to send all the time 'image' type.

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.

@sami-elasticad Thanks for the confirmation/update.

LGTM

@jsnellbaker jsnellbaker added LGTM and removed question labels Jun 18, 2018
@jsnellbaker jsnellbaker merged commit 429d5b4 into prebid:master Jun 18, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug

* usersync bugfixed

* usersync bugfixed

* usersync bugfixed

* send user sync pixels as images all the time
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug

* usersync bugfixed

* usersync bugfixed

* usersync bugfixed

* send user sync pixels as images all the time
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug

* usersync bugfixed

* usersync bugfixed

* usersync bugfixed

* send user sync pixels as images all the time
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug

* usersync bugfixed

* usersync bugfixed

* usersync bugfixed

* send user sync pixels as images all the time
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug

* usersync bugfixed

* usersync bugfixed

* usersync bugfixed

* send user sync pixels as images all the time
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* quantumBidAdapter initial commit

* eslint errors fixed

* updating quantumBidAdapter for reviews, fixed tests to work with native

* set new prebid location for testing and some fixing

* added supportedMediaTypes

* Tests fixed

* Fixed issues with image assets. Tested with the example provided

* Size and tests fixed

* Modify tests

* hello world revert changes

* package-lock reverted

* hello world reverted CRLF/LF Conversion

* hello world reverted LF/CRLF Conversion

* hello world reverted

* hello world reverted

* hello world reverted

* removed hardcoded bid sizes

* GDPR integration

* GDPR support - change quantx_gdpr to (0,1) values accepted

* restored package-lock

* GDPR tests

* GDPR tests fixed

* Send width/height with native assets

* Fixed native images bug

* usersync bugfixed

* usersync bugfixed

* usersync bugfixed

* send user sync pixels as images all the time
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.

5 participants