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

New Feature for One-off Calls #29

Closed
Heray opened this issue Aug 18, 2015 · 2 comments
Closed

New Feature for One-off Calls #29

Heray opened this issue Aug 18, 2015 · 2 comments
Labels

Comments

@Heray
Copy link

Heray commented Aug 18, 2015

As a publisher, I'd like to have one-off calls to certain ad units. For example, I have an interstitial format only after a user has interacted with my site for a bit. I don't need to call it right away, because some users would not stay on the page for that long.

@Heray Heray added the feature label Aug 18, 2015
@prebid
Copy link
Collaborator

prebid commented Aug 18, 2015

We're working on it! Here's an alpha example we're currently testing with:

var oneOffAdUnits = [{
    code: '/19968336/header-bid-tag-0',
    sizes: [[300, 250], [300, 600]],
    bids: [
            {
                bidder: 'appnexus',
                params: {
                   placementId: '4799418'
                }
            }
    ],
    // called either when timeout is hit or all bids are back.
    // bids: [{bidderCode: 'appnexus', ...}]
    bidsCallbackHandler: function(adUnitCode, bids) {
        // Handle the bid responses
        pbjs.setTargetingForGPTAsync([adUnitCode]);

        // Optional helper function to get slot object from an ad unit code.
        // You may already have the slot object
        var slotObj = pbjs.getGPTSlot(adUnitCode);

        googletag.pubads().refresh([slotObj]);
    }
}]

/* This function will make pre-bid requests and call the bids back callback handler.
   Note that the ad units will not be inserted into the pbjs.adUnits array. This is
   an "one-off" pre-bid call.
   You can also pass in a timeout (in ms) for the requestBids function. The default 
   setting is 3000ms. When the timeout is hit, the bidsCallbackHandler will execute.
*/
pbjs.requestBidsForAdUnits(newAdUnits, 400)

@prebid
Copy link
Collaborator

prebid commented Aug 19, 2015

We're changing the design to be more flexible with better callback support:

/* Request bids for all ad units.
   The bidsBack function will be called when either PREBID_TIMEOUT is
   reached, or when all bids come back, whichever happens sooner.
*/
pbjs.requestBids({
    // Optionally, you can pass in selected set of ad unit codes to only
    // request bids for those ad units.
    // adUnitCodes: ['/19936/header-bid-tag-0', '/19936/header-bid-tag-1']

    // Or, pass in the ad units. Note that these ad units would not be added
    // to the global adUnits array.
    // [{ code: 'header-bid-tag-0', sizes:[], bids: [] }, ...]

    timeout: PREBID_TIMEOUT,
    bidsBack: function(bidResponses) {
        pbjs.setTargetingForGPTAsync();
        googletag.pubads().refresh(); 

        // Or, you can refresh only selected set of ad units through GPT
        // googletag.pubads().refresh([slot0, slot1]); 
    }
});  

marian-r added a commit to aol/Prebid.js that referenced this issue Sep 23, 2016
…l-adapter-unit-tests to master

* commit 'a6db3976111e10fba926c92d96f3bd732e121886':
  Added more unit tests for AOL adapter
lntho referenced this issue in openx/Prebid.js Oct 11, 2016
feat(openx adapter): APPS-13502: Allow passing custom key values spec…
kd-appier pushed a commit to appier/Prebid.js that referenced this issue May 30, 2019
add prediction id support.

Approved-by: Jen-Yee Hong <pcman.hong@appier.com>
ChrisHuie pushed a commit that referenced this issue Jul 10, 2023
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* added isWrapper param

* addes is_wrapper parameter to documentation

* added is_wrapper to test

* removed isWrapper

* Rise Bid Adapter: support Coppa param (#24)

* MinuteMedia Bid Adapter: support Coppa param (#25)

* Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26)

This reverts commit 66c4e7b.

* bump

* update coppa fetch

* setting coppa param update

* update Coppa tests

* update test naming

* Rise Bid Adapter: support plcmt and sua (#27)

* update minuteMediaBidAdapter - support missing params (#29)

---------

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: OronW <41260031+OronW@users.noreply.github.com>
Co-authored-by: lasloche <62240785+lasloche@users.noreply.github.com>
Co-authored-by: inna <innayare@gmail.com>
Co-authored-by: YakirLavi <yakir.lavi@risecodes.com>
github-ishara-chan-tung pushed a commit to ebuzzing/Prebid.js that referenced this issue Jul 12, 2023
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* added isWrapper param

* addes is_wrapper parameter to documentation

* added is_wrapper to test

* removed isWrapper

* Rise Bid Adapter: support Coppa param (prebid#24)

* MinuteMedia Bid Adapter: support Coppa param (prebid#25)

* Revert "MinuteMedia Bid Adapter: support Coppa param (prebid#25)" (prebid#26)

This reverts commit 66c4e7b.

* bump

* update coppa fetch

* setting coppa param update

* update Coppa tests

* update test naming

* Rise Bid Adapter: support plcmt and sua (prebid#27)

* update minuteMediaBidAdapter - support missing params (prebid#29)

---------

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: OronW <41260031+OronW@users.noreply.github.com>
Co-authored-by: lasloche <62240785+lasloche@users.noreply.github.com>
Co-authored-by: inna <innayare@gmail.com>
Co-authored-by: YakirLavi <yakir.lavi@risecodes.com>
ChrisHuie pushed a commit that referenced this issue Dec 5, 2023
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* added isWrapper param

* addes is_wrapper parameter to documentation

* added is_wrapper to test

* removed isWrapper

* Rise Bid Adapter: support Coppa param (#24)

* MinuteMedia Bid Adapter: support Coppa param (#25)

* Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26)

This reverts commit 66c4e7b.

* bump

* update coppa fetch

* setting coppa param update

* update Coppa tests

* update test naming

* Rise Bid Adapter: support plcmt and sua (#27)

* update minuteMediaBidAdapter - support missing params (#29)

* RIseBidAdapter: support currency (#35)

---------

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: OronW <41260031+OronW@users.noreply.github.com>
Co-authored-by: lasloche <62240785+lasloche@users.noreply.github.com>
Co-authored-by: inna <innayare@gmail.com>
Co-authored-by: YakirLavi <yakir.lavi@risecodes.com>
ChrisHuie pushed a commit that referenced this issue Dec 5, 2023
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* added isWrapper param

* addes is_wrapper parameter to documentation

* added is_wrapper to test

* removed isWrapper

* Rise Bid Adapter: support Coppa param (#24)

* MinuteMedia Bid Adapter: support Coppa param (#25)

* Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26)

This reverts commit 66c4e7b.

* bump

* update coppa fetch

* setting coppa param update

* update Coppa tests

* update test naming

* Rise Bid Adapter: support plcmt and sua (#27)

* update minuteMediaBidAdapter - support missing params (#29)

* add currency param to bid object and tests

* update getFloor function and tests

* adding test to currency param

* adding doc & currency bidfloor support & update tests

* update currency test

* remove default test

---------

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: OronW <41260031+OronW@users.noreply.github.com>
Co-authored-by: lasloche <62240785+lasloche@users.noreply.github.com>
Co-authored-by: inna <innayare@gmail.com>
Co-authored-by: YakirLavi <yakir.lavi@risecodes.com>
ChrisHuie pushed a commit that referenced this issue Feb 5, 2024
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* added isWrapper param

* addes is_wrapper parameter to documentation

* added is_wrapper to test

* removed isWrapper

* Rise Bid Adapter: support Coppa param (#24)

* MinuteMedia Bid Adapter: support Coppa param (#25)

* Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26)

This reverts commit 66c4e7b.

* bump

* update coppa fetch

* setting coppa param update

* update Coppa tests

* update test naming

* Rise Bid Adapter: support plcmt and sua (#27)

* update minuteMediaBidAdapter - support missing params (#29)

* support gpp for minutemedia adapter

* removed spaces

* removed extra character

---------

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: OronW <41260031+OronW@users.noreply.github.com>
Co-authored-by: lasloche <62240785+lasloche@users.noreply.github.com>
Co-authored-by: YakirLavi <73641910+YakirLavi@users.noreply.github.com>
Co-authored-by: YakirLavi <yakir.lavi@risecodes.com>
Co-authored-by: Inna Yaretsky <>
ChrisHuie pushed a commit that referenced this issue Apr 9, 2024
Co-authored-by: “Nick <“nick.llerandi”@kargo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants