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

alwaysUseBid broken since 0.8.1 #389

Closed
kmjennison opened this issue Jun 6, 2016 · 2 comments
Closed

alwaysUseBid broken since 0.8.1 #389

kmjennison opened this issue Jun 6, 2016 · 2 comments
Assignees

Comments

@kmjennison
Copy link
Contributor

The alwaysUseBid setting appears to be broken. Instead of always sending the bid to the ad server, it does nothing. I think this functionality was accidentally removed in the prebid.js refactoring prior to 0.9.0: 2ad8150#diff-f8e049a1b6d4f9aa96fca41d2f7aa11dL286

To reproduce, add a custom bidder setting to pbjs.bidderSettings in pbjs_example_gpt.html, such as:

brightcom: {
    alwaysUseBid: true,
    adserverTargeting: [
        {
            key: "custom_test_key",
            val: function (bidResponse) {
                return bidResponse.bidderCode;
            }
        }
    ]
}

When brightcom responds with a bid, we'd expect the custom_test_key key to be part of the targeting object when you call pbjs.getAdserverTargeting(). However, it is not.

If you redo this test on the commit for the 0.8.1 release, custom_test_key is part of the targeting as expected.

I'm working on a fix for this and should have a PR soon.

@protonate
Copy link
Collaborator

Thanks for reporting the issue and for the PR, I'll have a look.

@protonate protonate self-assigned this Jun 7, 2016
protonate pushed a commit that referenced this issue Jun 15, 2016
* Add test for `getAdserverTargeting`.
* Add test for `getBidLandscapeTargeting`.
* Move winning bid targeting result to fixtures.
* Add test for ad server targeting when bid landscape reporting is on.
* Add function to get targeting for bids with `alwaysUseBid` set to `true`.
* Fix unsetting `enableSendAllBids`.
* Update ad server targeting to include custom keys of `alwaysUseBid` bids.
* Move `getAdserverTargeting` tests to test against public API.
* Move `alwaysUseBid` targeting test to module level.
* Add checks for ad server targeting keys.
* Remove unneeded exports.
* Remove public function to disable sendAllBids.
* style updates (@protonate)
@mkendall07
Copy link
Member

this fix has been merged.

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

No branches or pull requests

3 participants