google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
118 lines (117 loc) • 5.01 kB
TypeScript
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { TargetRoasSimulationPointList } from "../common/simulation";
import { TargetCpaSimulationPointList } from "../common/simulation";
import { CpvBidSimulationPointList } from "../common/simulation";
import { CpcBidSimulationPointList } from "../common/simulation";
import { SimulationModificationMethodEnum_SimulationModificationMethod } from "../enums/simulation_modification_method";
import { SimulationTypeEnum_SimulationType } from "../enums/simulation_type";
/**
* An ad group simulation. Supported combinations of advertising
* channel type, simulation type and simulation modification method is
* detailed below respectively.
*
* 1. SEARCH - CPC_BID - DEFAULT
* 2. SEARCH - CPC_BID - UNIFORM
* 3. SEARCH - TARGET_CPA - UNIFORM
* 4. SEARCH - TARGET_ROAS - UNIFORM
* 5. DISPLAY - CPC_BID - DEFAULT
* 6. DISPLAY - CPC_BID - UNIFORM
* 7. DISPLAY - TARGET_CPA - UNIFORM
*
* @generated from protobuf message google.ads.googleads.v11.resources.AdGroupSimulation
*/
export interface AdGroupSimulation {
/**
* Output only. The resource name of the ad group simulation.
* Ad group simulation resource names have the form:
*
* `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}`
*
* @generated from protobuf field: string resource_name = 1;
*/
resourceName: string;
/**
* Output only. Ad group id of the simulation.
*
* @generated from protobuf field: optional int64 ad_group_id = 12;
*/
adGroupId?: bigint;
/**
* Output only. The field that the simulation modifies.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.SimulationTypeEnum.SimulationType type = 3;
*/
type: SimulationTypeEnum_SimulationType;
/**
* Output only. How the simulation modifies the field.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4;
*/
modificationMethod: SimulationModificationMethodEnum_SimulationModificationMethod;
/**
* Output only. First day on which the simulation is based, in YYYY-MM-DD format.
*
* @generated from protobuf field: optional string start_date = 13;
*/
startDate?: string;
/**
* Output only. Last day on which the simulation is based, in YYYY-MM-DD format
*
* @generated from protobuf field: optional string end_date = 14;
*/
endDate?: string;
/**
* @generated from protobuf oneof: point_list
*/
pointList: {
oneofKind: "cpcBidPointList";
/**
* Output only. Simulation points if the simulation type is CPC_BID.
*
* @generated from protobuf field: google.ads.googleads.v11.common.CpcBidSimulationPointList cpc_bid_point_list = 8;
*/
cpcBidPointList: CpcBidSimulationPointList;
} | {
oneofKind: "cpvBidPointList";
/**
* Output only. Simulation points if the simulation type is CPV_BID.
*
* @generated from protobuf field: google.ads.googleads.v11.common.CpvBidSimulationPointList cpv_bid_point_list = 10;
*/
cpvBidPointList: CpvBidSimulationPointList;
} | {
oneofKind: "targetCpaPointList";
/**
* Output only. Simulation points if the simulation type is TARGET_CPA.
*
* @generated from protobuf field: google.ads.googleads.v11.common.TargetCpaSimulationPointList target_cpa_point_list = 9;
*/
targetCpaPointList: TargetCpaSimulationPointList;
} | {
oneofKind: "targetRoasPointList";
/**
* Output only. Simulation points if the simulation type is TARGET_ROAS.
*
* @generated from protobuf field: google.ads.googleads.v11.common.TargetRoasSimulationPointList target_roas_point_list = 11;
*/
targetRoasPointList: TargetRoasSimulationPointList;
} | {
oneofKind: undefined;
};
}
declare class AdGroupSimulation$Type extends MessageType<AdGroupSimulation> {
constructor();
create(value?: PartialMessage<AdGroupSimulation>): AdGroupSimulation;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdGroupSimulation): AdGroupSimulation;
internalBinaryWrite(message: AdGroupSimulation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message google.ads.googleads.v11.resources.AdGroupSimulation
*/
export declare const AdGroupSimulation: AdGroupSimulation$Type;
export {};