...
function adngin.cmd.startAuction(lots, callback)
argument name | type | optional | value | description |
---|---|---|---|---|
lots | Array | ✔️ |
| An array of strings holding the ad unit names, an array of |
callback | function | ✔️ |
| The callback function that is called with the function call result. |
Parameters
lots
value undefined
...
Code Block |
---|
window.addEventListener('adnginLoaderReady', function() { adngin.queue.push(function() { // trigger a new auction adngin.cmd.startAuction([ { adUnit: "adUnit1", placement: "otherdiv1" }, { adUnit: "adUnit2", placement: "otherdiv2" } ]); }); }); |
Starting an auction for "adUnit1" in placements "otherdiv1" and "otherdiv2"
Code Block |
---|
window.addEventListener('adnginLoaderReady', function() {
adngin.queue.push(function() {
// trigger a new auction
adngin.cmd.startAuction([
{
adUnit: "adUnit1",
placement: "otherdiv1"
},
{
adUnit: "adUnit1",
placement: "otherdiv2"
}
]);
});
}); |
Using GAM path per page with custom sizes
...