@niur/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
34 lines • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProposalService = void 0;
class ProposalService {
constructor(client) {
this._client = client;
}
async createProposals(proposals) {
return this._client.createProposals({ proposals });
}
async getMarketplaceCommentsByStatement(filterStatement) {
return this._client.getMarketplaceCommentsByStatement({
filterStatement,
});
}
async getProposalsByStatement(filterStatement) {
return this._client.getProposalsByStatement({
filterStatement,
});
}
async performProposalAction(proposalAction, filterStatement) {
return this._client.performProposalAction({
ProposalAction: Object.assign({ attributes: {
'xsi:type': proposalAction.constructor.name,
} }, proposalAction.buildAttributes()),
filterStatement,
});
}
async updateProposals(proposals) {
return this._client.updateProposals({ proposals });
}
}
exports.ProposalService = ProposalService;
//# sourceMappingURL=proposal.service.js.map