@niur/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
31 lines • 976 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreativeService = void 0;
class CreativeService {
constructor(client) {
this._client = client;
}
async createCreatives(creatives) {
return this._client.createCreatives({ creatives });
}
async getCreativesByStatement(filterStatement) {
return this._client.getCreativesByStatement({
filterStatement,
});
}
async performCreativeAction(creativeAction, filterStatement) {
return this._client.performCreativeAction({
creativeAction: {
attributes: {
'xsi:type': creativeAction.constructor.name,
},
},
filterStatement,
});
}
async updateCreatives(creatives) {
return this._client.updateCreatives({ creatives });
}
}
exports.CreativeService = CreativeService;
//# sourceMappingURL=creative.service.js.map