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