google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
102 lines (101 loc) • 3.65 kB
TypeScript
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import type { MutateAssetsResponse } from "./asset_service";
import type { MutateAssetsRequest } from "./asset_service";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* Service to manage assets. Asset types can be created with AssetService are
* YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be
* created with Ad inline.
*
* @generated from protobuf service google.ads.googleads.v11.services.AssetService
*/
export interface IAssetServiceClient {
/**
* Creates assets. Operation statuses are returned.
*
* List of thrown errors:
* [AssetError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CurrencyCodeError]()
* [DatabaseError]()
* [DateError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [ListOperationError]()
* [MediaUploadError]()
* [MutateError]()
* [NotAllowlistedError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
* [YoutubeVideoRegistrationError]()
*
* @generated from protobuf rpc: MutateAssets(google.ads.googleads.v11.services.MutateAssetsRequest) returns (google.ads.googleads.v11.services.MutateAssetsResponse);
*/
mutateAssets(input: MutateAssetsRequest, options?: RpcOptions): UnaryCall<MutateAssetsRequest, MutateAssetsResponse>;
}
/**
* Service to manage assets. Asset types can be created with AssetService are
* YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be
* created with Ad inline.
*
* @generated from protobuf service google.ads.googleads.v11.services.AssetService
*/
export declare class AssetServiceClient implements IAssetServiceClient, ServiceInfo {
private readonly _transport;
typeName: string;
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
options: {
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
};
constructor(_transport: RpcTransport);
/**
* Creates assets. Operation statuses are returned.
*
* List of thrown errors:
* [AssetError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CurrencyCodeError]()
* [DatabaseError]()
* [DateError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [ListOperationError]()
* [MediaUploadError]()
* [MutateError]()
* [NotAllowlistedError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
* [UrlFieldError]()
* [YoutubeVideoRegistrationError]()
*
* @generated from protobuf rpc: MutateAssets(google.ads.googleads.v11.services.MutateAssetsRequest) returns (google.ads.googleads.v11.services.MutateAssetsResponse);
*/
mutateAssets(input: MutateAssetsRequest, options?: RpcOptions): UnaryCall<MutateAssetsRequest, MutateAssetsResponse>;
}