Called with value which represents the bid amount (in $ CPM) for showing an ad in the ad slot. If value is null, this means we don’t have an ad matching your conversation or we could not submit a bid (possible reasons are that you are outside of contracted geography or you are over the rate limit for your token).
Return true if you want to render the ad or false if you want to skip filling the ad slot with an ad.
Copy
onBid: function onBid(value) { console.log("Ad can be filled with value:", value); return true; // Return true if you want to render the ad. You can also return a Promise<boolean>}
Called with value which represents the bid amount (in $ CPM) for showing an ad in the ad slot. If value is null, this means we don’t have an ad matching your conversation or we could not submit a bid (possible reasons are that you are outside of contracted geography or you are over the rate limit for your token).
Return true if you want to render the ad or false if you want to skip filling the ad slot with an ad.
Copy
onBid: function onBid(value) { console.log("Ad can be filled with value:", value); return true; // Return true if you want to render the ad. You can also return a Promise<boolean>}