google-ads-node
Version:
Google Ads gRPC Client Library for Node
168 lines (141 loc) • 7.65 kB
TypeScript
// package: google.ads.googleads.v2.services
// file: google/ads/googleads/v2/services/ad_group_ad_service.proto
import * as jspb from "google-protobuf";
import * as google_ads_googleads_v2_common_policy_pb from "../../../../../google/ads/googleads/v2/common/policy_pb";
import * as google_ads_googleads_v2_resources_ad_group_ad_pb from "../../../../../google/ads/googleads/v2/resources/ad_group_ad_pb";
import * as google_api_annotations_pb from "../../../../../google/api/annotations_pb";
import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_pb";
import * as google_rpc_status_pb from "../../../../../google/rpc/status_pb";
import * as google_api_client_pb from "../../../../../google/api/client_pb";
export class GetAdGroupAdRequest extends jspb.Message {
getResourceName(): string;
setResourceName(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetAdGroupAdRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetAdGroupAdRequest): GetAdGroupAdRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetAdGroupAdRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetAdGroupAdRequest;
static deserializeBinaryFromReader(message: GetAdGroupAdRequest, reader: jspb.BinaryReader): GetAdGroupAdRequest;
}
export namespace GetAdGroupAdRequest {
export type AsObject = {
resourceName: string,
}
}
export class MutateAdGroupAdsRequest extends jspb.Message {
getCustomerId(): string;
setCustomerId(value: string): void;
clearOperationsList(): void;
getOperationsList(): Array<AdGroupAdOperation>;
setOperationsList(value: Array<AdGroupAdOperation>): void;
addOperations(value?: AdGroupAdOperation, index?: number): AdGroupAdOperation;
getPartialFailure(): boolean;
setPartialFailure(value: boolean): void;
getValidateOnly(): boolean;
setValidateOnly(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MutateAdGroupAdsRequest.AsObject;
static toObject(includeInstance: boolean, msg: MutateAdGroupAdsRequest): MutateAdGroupAdsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: MutateAdGroupAdsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MutateAdGroupAdsRequest;
static deserializeBinaryFromReader(message: MutateAdGroupAdsRequest, reader: jspb.BinaryReader): MutateAdGroupAdsRequest;
}
export namespace MutateAdGroupAdsRequest {
export type AsObject = {
customerId: string,
operationsList: Array<AdGroupAdOperation.AsObject>,
partialFailure: boolean,
validateOnly: boolean,
}
}
export class AdGroupAdOperation extends jspb.Message {
hasUpdateMask(): boolean;
clearUpdateMask(): void;
getUpdateMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
setUpdateMask(value?: google_protobuf_field_mask_pb.FieldMask): void;
hasPolicyValidationParameter(): boolean;
clearPolicyValidationParameter(): void;
getPolicyValidationParameter(): google_ads_googleads_v2_common_policy_pb.PolicyValidationParameter | undefined;
setPolicyValidationParameter(value?: google_ads_googleads_v2_common_policy_pb.PolicyValidationParameter): void;
hasCreate(): boolean;
clearCreate(): void;
getCreate(): google_ads_googleads_v2_resources_ad_group_ad_pb.AdGroupAd | undefined;
setCreate(value?: google_ads_googleads_v2_resources_ad_group_ad_pb.AdGroupAd): void;
hasUpdate(): boolean;
clearUpdate(): void;
getUpdate(): google_ads_googleads_v2_resources_ad_group_ad_pb.AdGroupAd | undefined;
setUpdate(value?: google_ads_googleads_v2_resources_ad_group_ad_pb.AdGroupAd): void;
hasRemove(): boolean;
clearRemove(): void;
getRemove(): string;
setRemove(value: string): void;
getOperationCase(): AdGroupAdOperation.OperationCase;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AdGroupAdOperation.AsObject;
static toObject(includeInstance: boolean, msg: AdGroupAdOperation): AdGroupAdOperation.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: AdGroupAdOperation, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AdGroupAdOperation;
static deserializeBinaryFromReader(message: AdGroupAdOperation, reader: jspb.BinaryReader): AdGroupAdOperation;
}
export namespace AdGroupAdOperation {
export type AsObject = {
updateMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
policyValidationParameter?: google_ads_googleads_v2_common_policy_pb.PolicyValidationParameter.AsObject,
create?: google_ads_googleads_v2_resources_ad_group_ad_pb.AdGroupAd.AsObject,
update?: google_ads_googleads_v2_resources_ad_group_ad_pb.AdGroupAd.AsObject,
remove: string,
}
export enum OperationCase {
OPERATION_NOT_SET = 0,
CREATE = 1,
UPDATE = 2,
REMOVE = 3,
}
}
export class MutateAdGroupAdsResponse extends jspb.Message {
hasPartialFailureError(): boolean;
clearPartialFailureError(): void;
getPartialFailureError(): google_rpc_status_pb.Status | undefined;
setPartialFailureError(value?: google_rpc_status_pb.Status): void;
clearResultsList(): void;
getResultsList(): Array<MutateAdGroupAdResult>;
setResultsList(value: Array<MutateAdGroupAdResult>): void;
addResults(value?: MutateAdGroupAdResult, index?: number): MutateAdGroupAdResult;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MutateAdGroupAdsResponse.AsObject;
static toObject(includeInstance: boolean, msg: MutateAdGroupAdsResponse): MutateAdGroupAdsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: MutateAdGroupAdsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MutateAdGroupAdsResponse;
static deserializeBinaryFromReader(message: MutateAdGroupAdsResponse, reader: jspb.BinaryReader): MutateAdGroupAdsResponse;
}
export namespace MutateAdGroupAdsResponse {
export type AsObject = {
partialFailureError?: google_rpc_status_pb.Status.AsObject,
resultsList: Array<MutateAdGroupAdResult.AsObject>,
}
}
export class MutateAdGroupAdResult extends jspb.Message {
getResourceName(): string;
setResourceName(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MutateAdGroupAdResult.AsObject;
static toObject(includeInstance: boolean, msg: MutateAdGroupAdResult): MutateAdGroupAdResult.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: MutateAdGroupAdResult, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MutateAdGroupAdResult;
static deserializeBinaryFromReader(message: MutateAdGroupAdResult, reader: jspb.BinaryReader): MutateAdGroupAdResult;
}
export namespace MutateAdGroupAdResult {
export type AsObject = {
resourceName: string,
}
}