Callbacks - tapdaq/cordova-plugin GitHub Wiki
Loaded Tapdaq Config
Called immediately after the SDK is ready to begin loading adverts.
var opts = {
didInitialise: function() {
}
};
Failed to load config Called when Tapdaq is not able to initialise.
var opts = {
didFailToInitialise: function(error) {
}
};
Loaded an advert
Called immediately after an ad is available to the user for a specific placement tag.
const adOpts = {
didLoad: function(response) {
}
};
Failed to load an advert
Called when the ad was not able to be loaded for a specific placement tag. Note: There is no placement tag for banner.
const adOpts = {
didFailToLoad: function(error, response) {
}
};
About to display an advert
Called immediately before the advert is to be displayed to the user.
const adOpts = {
willDisplay: function(response) {
}
};
Displayed an advert
Called immediately after the advert is displayed to the user.
const adOpts = {
didDisplay: function(response) {
}
};
Failed to display an advert
Called immedated after show method is called when an ad cannot be displayed
const adOpts = {
didFailToDisplay: function(error, response) {
}
};
Advert closed
Called when the user closes the advert.
const adOpts = {
didClose: function(response) {
}
};
User clicked an advert
Called when the user clicks the advert.
const adOpts = {
didClick: function(response) {
}
};
Received a reward for the user
Called when a reward is ready for the user.
const adOpts = {
didValidateReward: function(response) {
}
};
Refreshed a banner
Called when a banner has successfully refreshed.
const adOpts = {
didRefresh: function(response) {
}
};
Failed to refresh a banner
Called when a banner is unable to load a new banner on refresh interval.
const adOpts = {
didFailToRefresh: function(error, response) {
}
};