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

Show warning if bidCpmAdjustment is set for AOL bidder (closes #725) #728

Merged
merged 3 commits into from
Oct 26, 2016

Conversation

marian-r
Copy link
Member

Type of change

  • Feature

Description of change

After the recent update of AOL adapter made in #653, the bid price adjustment is not recommended on the client side and it has been moved onto backend. In the PR I suggested a note to be included in the release notes, but I expect that can be not enough and some publishers may over look that.

This PR adds a warning in the console if the publisher has configured bidCpmAdjustment as discussed in #725. It will help publishers to be aware of the change introduced in the upcoming version.

I did not use utils.logWarn() method as it is better to show this warning regardless of whether the debug mode is on or off.

@ehoch
Copy link
Contributor

ehoch commented Oct 21, 2016

Can we make sure this only running in debug mode and not production? Some of us use adjustments for things other than rev shares.

@marian-r
Copy link
Member Author

@ehoch thanks for the info. I wasn't aware. It's fixed in a16147d.

@mkendall07 mkendall07 self-assigned this Oct 24, 2016
@mkendall07
Copy link
Member

@marian-r
The unit test is now failing with:

callBids()
       when bidCpmAdjustment is set
          should show warning in the console
             Chrome 54.0.2840 (Mac OS X 10.11.6)
                1) AssertionError: expected false to be true

@mkendall07 mkendall07 added this to the Prebid 0.14.0 milestone Oct 24, 2016
- fix after implementation changed from console.warn to utils.logWarn
@marian-r
Copy link
Member Author

Ah, of course. Sorry, I forgot to update the unit test. It's fixed in 107f419.

@mkendall07
Copy link
Member

LGTM.

@mkendall07 mkendall07 merged commit 9ba0add into prebid:master Oct 26, 2016
mp-12301 pushed a commit to aol/Prebid.js that referenced this pull request Apr 10, 2017
…ebid-0.14.0 to release/1.7.0

* commit '3eefcf043466f5457c81bfec18b032b53490b78b': (52 commits)
  New adapters ids.
  Prebid 0.14.0 Release
  add workaround to prevent IX adapter from ending auction earlier due to one request becoming many responses (prebid#763)
  Add pbjs.getHighestCpmBids for getting winning bids (prebid#755)
  Fix build
  Drop Sekindo adapter.
  Bugfix/suppress prebid request if sizeMapping undefined for device width (prebid#758)
  amp integration (prebid#756)
  Add contribution guidelines (prebid#761)
  Add api method to shuffle the order bidders are called in (prebid#760)
  build adapter from custom source path (prebid#753)
  reduce duplication and ignore ga.js in coverage (prebid#754)
  Log /ut response errors in dev console (prebid#747)
  Fix indentation (code style error when building) (prebid#751)
  Add package keywords (prebid#746)
  added new rubiconLite adapter (prebid#740)
  Show warning if bidCpmAdjustment is set for AOL bidder (closes prebid#725) (prebid#728)
  IX adapter code refactoring (prebid#711)
  Update memeglobal.js (prebid#737)
  Pulsepoint Analytics adapter for Prebid (prebid#706)
  ...
mp-12301 pushed a commit to aol/Prebid.js that referenced this pull request Apr 10, 2017
…7.0 to master

* commit '262f371a5c855419c3ef357fb1f0cf87a107749f': (52 commits)
  New adapters ids.
  Prebid 0.14.0 Release
  add workaround to prevent IX adapter from ending auction earlier due to one request becoming many responses (prebid#763)
  Add pbjs.getHighestCpmBids for getting winning bids (prebid#755)
  Fix build
  Drop Sekindo adapter.
  Bugfix/suppress prebid request if sizeMapping undefined for device width (prebid#758)
  amp integration (prebid#756)
  Add contribution guidelines (prebid#761)
  Add api method to shuffle the order bidders are called in (prebid#760)
  build adapter from custom source path (prebid#753)
  reduce duplication and ignore ga.js in coverage (prebid#754)
  Log /ut response errors in dev console (prebid#747)
  Fix indentation (code style error when building) (prebid#751)
  Add package keywords (prebid#746)
  added new rubiconLite adapter (prebid#740)
  Show warning if bidCpmAdjustment is set for AOL bidder (closes prebid#725) (prebid#728)
  IX adapter code refactoring (prebid#711)
  Update memeglobal.js (prebid#737)
  Pulsepoint Analytics adapter for Prebid (prebid#706)
  ...
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.

3 participants