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

Log unsupported ad type only for good bids #547

Merged
merged 1 commit into from
Aug 19, 2016

Conversation

matthewlane
Copy link
Collaborator

This addresses an issue mentioned in #322 where bids are returned from the server with a nobid field. In that case, bids won't have an ad_type field and an error message is logged that states 'undefined ad type not supported', but bids are still registered to the bid manager with status NO_BID. This change aims to remove confusion by only logging the error message in cases where a good bid response comes back from the server with an ad_type other than banner, which is not currently supported by this adapter.

This addresses an issue where bids are returned from the server with a `nobid` field. In that case, bids won't have an ad_type field and an error message is logged that states 'undefined ad type not supported', but bids are still regsitered to the bid manager with status `NO_BID`. This change aims to remove confusion by only loging the error message in cases where a good bid response comes back from the server with an ad_type other than `banner`, which is not currently supported by this adapter.
@protonate
Copy link
Collaborator

LGTM

@protonate protonate closed this Aug 19, 2016
@protonate protonate reopened this Aug 19, 2016
protonate pushed a commit that referenced this pull request Aug 19, 2016
This addresses an issue where bids are returned from the server with a `nobid` field. In that case, bids won't have an ad_type field and an error message is logged that states 'undefined ad type not supported', but bids are still regsitered to the bid manager with status `NO_BID`. This change aims to remove confusion by only loging the error message in cases where a good bid response comes back from the server with an ad_type other than `banner`, which is not currently supported by this adapter.
@protonate protonate merged commit a75f51c into master Aug 19, 2016
@matthewlane matthewlane deleted the appnexusAst-adtype-error branch August 19, 2016 22:10
protonate pushed a commit that referenced this pull request Aug 20, 2016
This addresses an issue where bids are returned from the server with a `nobid` field. In that case, bids won't have an ad_type field and an error message is logged that states 'undefined ad type not supported', but bids are still regsitered to the bid manager with status `NO_BID`. This change aims to remove confusion by only loging the error message in cases where a good bid response comes back from the server with an ad_type other than `banner`, which is not currently supported by this adapter.
@mercuryyy
Copy link
Contributor

mercuryyy commented Aug 20, 2016

@protonate @matthewlane

I tried building again after the fix with latest master and im getting

src/ajax.js: line 24, col 12, 'method' is not defined.
src/ajax.js: line 26, col 9, 'options' is not defined.
src/ajax.js: line 29, col 11, 'options' is not defined.
src/ajax.js: line 33, col 9, 'options' is not defined.

4 errors

...

protonate pushed a commit that referenced this pull request Aug 22, 2016
This addresses an issue where bids are returned from the server with a `nobid` field. In that case, bids won't have an ad_type field and an error message is logged that states 'undefined ad type not supported', but bids are still regsitered to the bid manager with status `NO_BID`. This change aims to remove confusion by only loging the error message in cases where a good bid response comes back from the server with an ad_type other than `banner`, which is not currently supported by this adapter.
marian-r added a commit to aol/Prebid.js that referenced this pull request Sep 23, 2016
…2.0 to master

* commit '40fdbed10c218a993df9e6665797b36f402ded18': (52 commits)
  Added new adapter for AOL analytics
  Fixed ES6 features which require a polyfill
  Updated CHANGELOG
  Fixed per-adapter timeouts
  Fixed sorting of per-adapter timeouts
  Added horizontal rule to delimit the original README part
  Link to the AOL documentation made more visible
  Fixed unit tests for AOL analytics
  Made changes required due to pull from Prebid official
  Updated README
  Updated LICENSE
  Reverted AOL branding
  restore url.js and modifcations to ajax.js (prebid#551)
  Log unsupported ad type only for good bids (prebid#547)
  use var ad instead of incorrect ads in rubicon adapter (prebid#546)
  Karma opens debug.html by default (prebid#540)
  Prebid 0.12.0 release
  Add tests for triplelift adapter. (prebid#531)
  allows multiple bids to be registered per a slot, related to prebid#496 (prebid#503)
  Add tests for aardvark adapter. (prebid#529)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants