google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
61 lines (60 loc) • 2.53 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 { AssetLinkStatusEnum_AssetLinkStatus } from "../enums/asset_link_status";
import { AssetSourceEnum_AssetSource } from "../enums/asset_source";
import { AssetFieldTypeEnum_AssetFieldType } from "../enums/asset_field_type";
/**
* A link between a customer and an asset.
*
* @generated from protobuf message google.ads.googleads.v11.resources.CustomerAsset
*/
export interface CustomerAsset {
/**
* Immutable. The resource name of the customer asset.
* CustomerAsset resource names have the form:
*
* `customers/{customer_id}/customerAssets/{asset_id}~{field_type}`
*
* @generated from protobuf field: string resource_name = 1;
*/
resourceName: string;
/**
* Required. Immutable. The asset which is linked to the customer.
*
* @generated from protobuf field: string asset = 2;
*/
asset: string;
/**
* Required. Immutable. Role that the asset takes for the customer link.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.AssetFieldTypeEnum.AssetFieldType field_type = 3;
*/
fieldType: AssetFieldTypeEnum_AssetFieldType;
/**
* Output only. Source of the customer asset link.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.AssetSourceEnum.AssetSource source = 5;
*/
source: AssetSourceEnum_AssetSource;
/**
* Status of the customer asset.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.AssetLinkStatusEnum.AssetLinkStatus status = 4;
*/
status: AssetLinkStatusEnum_AssetLinkStatus;
}
declare class CustomerAsset$Type extends MessageType<CustomerAsset> {
constructor();
create(value?: PartialMessage<CustomerAsset>): CustomerAsset;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomerAsset): CustomerAsset;
internalBinaryWrite(message: CustomerAsset, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message google.ads.googleads.v11.resources.CustomerAsset
*/
export declare const CustomerAsset: CustomerAsset$Type;
export {};