getoffer()/applyoffer - YOUR_OWN_CUSTOM_HANDLING_FUNCTION
Please help me with a sample function that can be used for custom handling function. For example if I want to introduce a new button, how should I write the function using the below code and introduce the button in the offer?
adobe.target.getOffer({
"mbox": "target-global-mbox",
"success": function(offer) {
YOUR_OWN_CUSTOM_HANDLING_FUNCTION(offer);
},
"error": function(status, error) {
console.log('Error', status, error);
},
"timeout": 2000
});

