@schibstedspain/openads-connector-api
Version:
OpenAds Interfaces to be compliant developing a new OpenAds connector
34 lines (28 loc) • 801 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* @interface
*/
var AdLoadable =
/*#__PURE__*/
function () {
function AdLoadable() {}
var _proto = AdLoadable.prototype;
/**
* Returns the loaded Ad from AdServer
* @param {string} id - the Ad unique identifier
* @param {Object} specification - Ad's connector specific data required to load it
* @param {string} specification.source - connector source
* @returns {Promise} Promise object representing when the operation finish
*/
_proto.loadAd = function loadAd(_ref) {
var id = _ref.id,
specification = _ref.specification;
throw new Error('AdLoadable#loadAd must be implemented');
};
return AdLoadable;
}();
exports.default = AdLoadable;
;