@niur/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
32 lines • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProposalLineItemService = void 0;
class ProposalLineItemService {
constructor(client) {
this._client = client;
}
async createMakegoods(makegoodInfos) {
return this._client.createMakegoods({ makegoodInfos });
}
async createProposalLineItems(proposalLineItems) {
return this._client.createProposalLineItems({ proposalLineItems });
}
async getProposalLineItemsByStatement(filterStatement) {
return this._client.getProposalLineItemsByStatement({
filterStatement,
});
}
async performProposalLineItemAction(proposalLineItemAction, filterStatement) {
return this._client.performProposalLineItemAction({
proposalLineItemAction: Object.assign({ attributes: {
'xsi:type': proposalLineItemAction.constructor.name,
} }, proposalLineItemAction.buildAttributes()),
filterStatement,
});
}
async updateProposalLineItems(proposalLineItems) {
return this._client.updateProposalLineItems({ proposalLineItems });
}
}
exports.ProposalLineItemService = ProposalLineItemService;
//# sourceMappingURL=proposalLineItem.service.js.map