google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
51 lines (50 loc) • 2.23 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 { DistanceBucketEnum_DistanceBucket } from "../enums/distance_bucket";
/**
* A distance view with metrics aggregated by the user's distance from an
* advertiser's location extensions. Each DistanceBucket includes all
* impressions that fall within its distance and a single impression will
* contribute to the metrics for all DistanceBuckets that include the user's
* distance.
*
* @generated from protobuf message google.ads.googleads.v11.resources.DistanceView
*/
export interface DistanceView {
/**
* Output only. The resource name of the distance view.
* Distance view resource names have the form:
*
* `customers/{customer_id}/distanceViews/1~{distance_bucket}`
*
* @generated from protobuf field: string resource_name = 1;
*/
resourceName: string;
/**
* Output only. Grouping of user distance from location extensions.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.DistanceBucketEnum.DistanceBucket distance_bucket = 2;
*/
distanceBucket: DistanceBucketEnum_DistanceBucket;
/**
* Output only. True if the DistanceBucket is using the metric system, false otherwise.
*
* @generated from protobuf field: optional bool metric_system = 4;
*/
metricSystem?: boolean;
}
declare class DistanceView$Type extends MessageType<DistanceView> {
constructor();
create(value?: PartialMessage<DistanceView>): DistanceView;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DistanceView): DistanceView;
internalBinaryWrite(message: DistanceView, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message google.ads.googleads.v11.resources.DistanceView
*/
export declare const DistanceView: DistanceView$Type;
export {};