@schibstedspain/openads-connector-api
Version:
OpenAds Interfaces to be compliant developing a new OpenAds connector
44 lines (37 loc) • 1.13 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* @interface
*/
var AdViewable =
/*#__PURE__*/
function () {
function AdViewable() {}
var _proto = AdViewable.prototype;
/**
* Returns an empty Promise when the display operation has finished
* @param {string} id The unique identifier of the position
* @returns {Promise} Promise object representing when the operation finish
*/
_proto.display = function display(_ref) {
var id = _ref.id;
throw new Error('AdViewable#display must be implemented');
}
/**
* Returns and empty Promise when the refresh operation has finished
* @param {string} id - the Ad unique identifier
* @param {Object} specification - Ad's connector specific data to be updated
* @returns {Promise} Promise object representing when the operation finish
*/
;
_proto.refresh = function refresh(_ref2) {
var id = _ref2.id,
specification = _ref2.specification;
throw new Error('AdViewable#refresh must be implemented');
};
return AdViewable;
}();
exports.default = AdViewable;
;