google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
40 lines • 1.99 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerUserAccessInvitationServiceClient = void 0;
const customer_user_access_invitation_service_1 = require("./customer_user_access_invitation_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the CustomerUserAccessInvitation service.
/**
* This service manages the access invitation extended to users for a given
* customer.
*
* @generated from protobuf service google.ads.googleads.v11.services.CustomerUserAccessInvitationService
*/
class CustomerUserAccessInvitationServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = customer_user_access_invitation_service_1.CustomerUserAccessInvitationService.typeName;
this.methods = customer_user_access_invitation_service_1.CustomerUserAccessInvitationService.methods;
this.options = customer_user_access_invitation_service_1.CustomerUserAccessInvitationService.options;
}
/**
* Creates or removes an access invitation.
*
* List of thrown errors:
* [AccessInvitationError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
* @generated from protobuf rpc: MutateCustomerUserAccessInvitation(google.ads.googleads.v11.services.MutateCustomerUserAccessInvitationRequest) returns (google.ads.googleads.v11.services.MutateCustomerUserAccessInvitationResponse);
*/
mutateCustomerUserAccessInvitation(input, options) {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
}
}
exports.CustomerUserAccessInvitationServiceClient = CustomerUserAccessInvitationServiceClient;
//# sourceMappingURL=customer_user_access_invitation_service.client.js.map