google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
75 lines • 2.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdGroupAdServiceClient = void 0;
const ad_group_ad_service_1 = require("./ad_group_ad_service");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
// Proto file describing the Ad Group Ad service.
/**
* Service to manage ads in an ad group.
*
* @generated from protobuf service google.ads.googleads.v11.services.AdGroupAdService
*/
class AdGroupAdServiceClient {
constructor(_transport) {
this._transport = _transport;
this.typeName = ad_group_ad_service_1.AdGroupAdService.typeName;
this.methods = ad_group_ad_service_1.AdGroupAdService.methods;
this.options = ad_group_ad_service_1.AdGroupAdService.options;
}
/**
* Creates, updates, or removes ads. Operation statuses are returned.
*
* List of thrown errors:
* [AdCustomizerError]()
* [AdError]()
* [AdGroupAdError]()
* [AdSharingError]()
* [AdxError]()
* [AssetError]()
* [AssetLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [ContextError]()
* [DatabaseError]()
* [DateError]()
* [DistinctError]()
* [FeedAttributeReferenceError]()
* [FieldError]()
* [FieldMaskError]()
* [FunctionError]()
* [FunctionParsingError]()
* [HeaderError]()
* [IdError]()
* [ImageError]()
* [InternalError]()
* [ListOperationError]()
* [MediaBundleError]()
* [MediaFileError]()
* [MutateError]()
* [NewResourceCreationError]()
* [NotEmptyError]()
* [NullError]()
* [OperationAccessDeniedError]()
* [OperatorError]()
* [PolicyFindingError]()
* [PolicyValidationParameterError]()
* [PolicyViolationError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
*
* @generated from protobuf rpc: MutateAdGroupAds(google.ads.googleads.v11.services.MutateAdGroupAdsRequest) returns (google.ads.googleads.v11.services.MutateAdGroupAdsResponse);
*/
mutateAdGroupAds(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.AdGroupAdServiceClient = AdGroupAdServiceClient;
//# sourceMappingURL=ad_group_ad_service.client.js.map