UNPKG

@schibstedspain/openads-appnexus-prebid

Version:
116 lines (103 loc) 2.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * @interface */ var AstClient = /*#__PURE__*/ function () { function AstClient() {} var _proto = AstClient.prototype; /** * Activates or deactivates the Debug mode. */ _proto.debugMode = function debugMode(_ref) { var enabled = _ref.enabled; throw new Error('AppNexusConnector#debugMode must be implemented'); } /** * Sets the global page options * @param data */ ; _proto.setPageOpts = function setPageOpts(data) { throw new Error('AppNexusConnector#setPageOpts must be implemented'); } /** * Defines onEvent * @param event * @param targetId * @param callback */ ; _proto.onEvent = function onEvent(_ref2) { var event = _ref2.event, targetId = _ref2.targetId, callback = _ref2.callback; throw new Error('AppNexusConnector#onEvent must be implemented'); } /** * Method to define tags. * @param member * @param targetId * @param invCode * @param sizes * @param keywords * @param native */ ; _proto.defineTag = function defineTag(_ref3) { var member = _ref3.member, targetId = _ref3.targetId, invCode = _ref3.invCode, sizes = _ref3.sizes, keywords = _ref3.keywords, native = _ref3.native; throw new Error('AppNexusConnector#defineTag must be implemented'); } /** * Load tags. */ ; _proto.loadTags = function loadTags() { throw new Error('AppNexusConnector#loadTags must be implemented'); } /** * Shows tags in the target. * @param targetId */ ; _proto.showTag = function showTag(_ref4) { var targetId = _ref4.targetId; throw new Error('AppNexusConnector#showTag must be implemented'); } /** * Refreshes ads on the page. * @param targetsArray : an array of ids */ ; _proto.refresh = function refresh(targetsArray) { throw new Error('AppNexusConnector#refresh must be implemented'); } /** * Updates tag information. * @param targetId : an array of ids * @param data : the data to update * @param data.member * @param data.invCode * @param data.sizes * @param data.keywords * @param data.native */ ; _proto.modifyTag = function modifyTag(_ref5) { var targetId = _ref5.targetId, data = _ref5.data; throw new Error('AppNexusConnector#modifyTag must be implemented'); }; return AstClient; }(); exports.default = AstClient;