UNPKG

google-ads-nodejs-client

Version:
844 lines (706 loc) 13.1 MB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace ads. */ namespace ads { /** Namespace googleads. */ namespace googleads { /** Namespace v19. */ namespace v19 { /** Namespace common. */ namespace common { /** Properties of an AdTextAsset. */ interface IAdTextAsset { /** AdTextAsset text */ text?: (string|null); /** AdTextAsset pinnedField */ pinnedField?: (google.ads.googleads.v19.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType|keyof typeof google.ads.googleads.v19.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType|null); /** AdTextAsset assetPerformanceLabel */ assetPerformanceLabel?: (google.ads.googleads.v19.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel|keyof typeof google.ads.googleads.v19.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel|null); /** AdTextAsset policySummaryInfo */ policySummaryInfo?: (google.ads.googleads.v19.common.IAdAssetPolicySummary|null); } /** Represents an AdTextAsset. */ class AdTextAsset implements IAdTextAsset { /** * Constructs a new AdTextAsset. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdTextAsset); /** AdTextAsset text. */ public text?: (string|null); /** AdTextAsset pinnedField. */ public pinnedField: (google.ads.googleads.v19.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType|keyof typeof google.ads.googleads.v19.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType); /** AdTextAsset assetPerformanceLabel. */ public assetPerformanceLabel: (google.ads.googleads.v19.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel|keyof typeof google.ads.googleads.v19.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel); /** AdTextAsset policySummaryInfo. */ public policySummaryInfo?: (google.ads.googleads.v19.common.IAdAssetPolicySummary|null); /** * Creates a new AdTextAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdTextAsset instance */ public static create(properties?: google.ads.googleads.v19.common.IAdTextAsset): google.ads.googleads.v19.common.AdTextAsset; /** * Encodes the specified AdTextAsset message. Does not implicitly {@link google.ads.googleads.v19.common.AdTextAsset.verify|verify} messages. * @param message AdTextAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdTextAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdTextAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdTextAsset.verify|verify} messages. * @param message AdTextAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdTextAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdTextAsset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdTextAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdTextAsset; /** * Decodes an AdTextAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdTextAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdTextAsset; /** * Verifies an AdTextAsset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdTextAsset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdTextAsset */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdTextAsset; /** * Creates a plain object from an AdTextAsset message. Also converts values to other types if specified. * @param message AdTextAsset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdTextAsset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdTextAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdTextAsset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdImageAsset. */ interface IAdImageAsset { /** AdImageAsset asset */ asset?: (string|null); } /** Represents an AdImageAsset. */ class AdImageAsset implements IAdImageAsset { /** * Constructs a new AdImageAsset. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdImageAsset); /** AdImageAsset asset. */ public asset?: (string|null); /** * Creates a new AdImageAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdImageAsset instance */ public static create(properties?: google.ads.googleads.v19.common.IAdImageAsset): google.ads.googleads.v19.common.AdImageAsset; /** * Encodes the specified AdImageAsset message. Does not implicitly {@link google.ads.googleads.v19.common.AdImageAsset.verify|verify} messages. * @param message AdImageAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdImageAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdImageAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdImageAsset.verify|verify} messages. * @param message AdImageAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdImageAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdImageAsset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdImageAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdImageAsset; /** * Decodes an AdImageAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdImageAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdImageAsset; /** * Verifies an AdImageAsset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdImageAsset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdImageAsset */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdImageAsset; /** * Creates a plain object from an AdImageAsset message. Also converts values to other types if specified. * @param message AdImageAsset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdImageAsset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdImageAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdImageAsset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdVideoAsset. */ interface IAdVideoAsset { /** AdVideoAsset asset */ asset?: (string|null); /** AdVideoAsset adVideoAssetInfo */ adVideoAssetInfo?: (google.ads.googleads.v19.common.IAdVideoAssetInfo|null); } /** Represents an AdVideoAsset. */ class AdVideoAsset implements IAdVideoAsset { /** * Constructs a new AdVideoAsset. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdVideoAsset); /** AdVideoAsset asset. */ public asset?: (string|null); /** AdVideoAsset adVideoAssetInfo. */ public adVideoAssetInfo?: (google.ads.googleads.v19.common.IAdVideoAssetInfo|null); /** * Creates a new AdVideoAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdVideoAsset instance */ public static create(properties?: google.ads.googleads.v19.common.IAdVideoAsset): google.ads.googleads.v19.common.AdVideoAsset; /** * Encodes the specified AdVideoAsset message. Does not implicitly {@link google.ads.googleads.v19.common.AdVideoAsset.verify|verify} messages. * @param message AdVideoAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdVideoAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdVideoAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdVideoAsset.verify|verify} messages. * @param message AdVideoAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdVideoAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdVideoAsset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdVideoAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdVideoAsset; /** * Decodes an AdVideoAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdVideoAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdVideoAsset; /** * Verifies an AdVideoAsset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdVideoAsset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdVideoAsset */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdVideoAsset; /** * Creates a plain object from an AdVideoAsset message. Also converts values to other types if specified. * @param message AdVideoAsset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdVideoAsset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdVideoAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdVideoAsset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdVideoAssetInfo. */ interface IAdVideoAssetInfo { /** AdVideoAssetInfo adVideoAssetInventoryPreferences */ adVideoAssetInventoryPreferences?: (google.ads.googleads.v19.common.IAdVideoAssetInventoryPreferences|null); } /** Represents an AdVideoAssetInfo. */ class AdVideoAssetInfo implements IAdVideoAssetInfo { /** * Constructs a new AdVideoAssetInfo. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdVideoAssetInfo); /** AdVideoAssetInfo adVideoAssetInventoryPreferences. */ public adVideoAssetInventoryPreferences?: (google.ads.googleads.v19.common.IAdVideoAssetInventoryPreferences|null); /** * Creates a new AdVideoAssetInfo instance using the specified properties. * @param [properties] Properties to set * @returns AdVideoAssetInfo instance */ public static create(properties?: google.ads.googleads.v19.common.IAdVideoAssetInfo): google.ads.googleads.v19.common.AdVideoAssetInfo; /** * Encodes the specified AdVideoAssetInfo message. Does not implicitly {@link google.ads.googleads.v19.common.AdVideoAssetInfo.verify|verify} messages. * @param message AdVideoAssetInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdVideoAssetInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdVideoAssetInfo message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdVideoAssetInfo.verify|verify} messages. * @param message AdVideoAssetInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdVideoAssetInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdVideoAssetInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdVideoAssetInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdVideoAssetInfo; /** * Decodes an AdVideoAssetInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdVideoAssetInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdVideoAssetInfo; /** * Verifies an AdVideoAssetInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdVideoAssetInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdVideoAssetInfo */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdVideoAssetInfo; /** * Creates a plain object from an AdVideoAssetInfo message. Also converts values to other types if specified. * @param message AdVideoAssetInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdVideoAssetInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdVideoAssetInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdVideoAssetInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdVideoAssetInventoryPreferences. */ interface IAdVideoAssetInventoryPreferences { /** AdVideoAssetInventoryPreferences inFeedPreference */ inFeedPreference?: (boolean|null); /** AdVideoAssetInventoryPreferences inStreamPreference */ inStreamPreference?: (boolean|null); /** AdVideoAssetInventoryPreferences shortsPreference */ shortsPreference?: (boolean|null); } /** Represents an AdVideoAssetInventoryPreferences. */ class AdVideoAssetInventoryPreferences implements IAdVideoAssetInventoryPreferences { /** * Constructs a new AdVideoAssetInventoryPreferences. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdVideoAssetInventoryPreferences); /** AdVideoAssetInventoryPreferences inFeedPreference. */ public inFeedPreference?: (boolean|null); /** AdVideoAssetInventoryPreferences inStreamPreference. */ public inStreamPreference?: (boolean|null); /** AdVideoAssetInventoryPreferences shortsPreference. */ public shortsPreference?: (boolean|null); /** * Creates a new AdVideoAssetInventoryPreferences instance using the specified properties. * @param [properties] Properties to set * @returns AdVideoAssetInventoryPreferences instance */ public static create(properties?: google.ads.googleads.v19.common.IAdVideoAssetInventoryPreferences): google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences; /** * Encodes the specified AdVideoAssetInventoryPreferences message. Does not implicitly {@link google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences.verify|verify} messages. * @param message AdVideoAssetInventoryPreferences message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdVideoAssetInventoryPreferences, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdVideoAssetInventoryPreferences message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences.verify|verify} messages. * @param message AdVideoAssetInventoryPreferences message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdVideoAssetInventoryPreferences, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdVideoAssetInventoryPreferences message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdVideoAssetInventoryPreferences * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences; /** * Decodes an AdVideoAssetInventoryPreferences message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdVideoAssetInventoryPreferences * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences; /** * Verifies an AdVideoAssetInventoryPreferences message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdVideoAssetInventoryPreferences message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdVideoAssetInventoryPreferences */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences; /** * Creates a plain object from an AdVideoAssetInventoryPreferences message. Also converts values to other types if specified. * @param message AdVideoAssetInventoryPreferences * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdVideoAssetInventoryPreferences, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdVideoAssetInventoryPreferences to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdVideoAssetInventoryPreferences * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdMediaBundleAsset. */ interface IAdMediaBundleAsset { /** AdMediaBundleAsset asset */ asset?: (string|null); } /** Represents an AdMediaBundleAsset. */ class AdMediaBundleAsset implements IAdMediaBundleAsset { /** * Constructs a new AdMediaBundleAsset. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdMediaBundleAsset); /** AdMediaBundleAsset asset. */ public asset?: (string|null); /** * Creates a new AdMediaBundleAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdMediaBundleAsset instance */ public static create(properties?: google.ads.googleads.v19.common.IAdMediaBundleAsset): google.ads.googleads.v19.common.AdMediaBundleAsset; /** * Encodes the specified AdMediaBundleAsset message. Does not implicitly {@link google.ads.googleads.v19.common.AdMediaBundleAsset.verify|verify} messages. * @param message AdMediaBundleAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdMediaBundleAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdMediaBundleAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdMediaBundleAsset.verify|verify} messages. * @param message AdMediaBundleAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdMediaBundleAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdMediaBundleAsset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdMediaBundleAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdMediaBundleAsset; /** * Decodes an AdMediaBundleAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdMediaBundleAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdMediaBundleAsset; /** * Verifies an AdMediaBundleAsset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdMediaBundleAsset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdMediaBundleAsset */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdMediaBundleAsset; /** * Creates a plain object from an AdMediaBundleAsset message. Also converts values to other types if specified. * @param message AdMediaBundleAsset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdMediaBundleAsset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdMediaBundleAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdMediaBundleAsset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdDemandGenCarouselCardAsset. */ interface IAdDemandGenCarouselCardAsset { /** AdDemandGenCarouselCardAsset asset */ asset?: (string|null); } /** Represents an AdDemandGenCarouselCardAsset. */ class AdDemandGenCarouselCardAsset implements IAdDemandGenCarouselCardAsset { /** * Constructs a new AdDemandGenCarouselCardAsset. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdDemandGenCarouselCardAsset); /** AdDemandGenCarouselCardAsset asset. */ public asset?: (string|null); /** * Creates a new AdDemandGenCarouselCardAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdDemandGenCarouselCardAsset instance */ public static create(properties?: google.ads.googleads.v19.common.IAdDemandGenCarouselCardAsset): google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset; /** * Encodes the specified AdDemandGenCarouselCardAsset message. Does not implicitly {@link google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset.verify|verify} messages. * @param message AdDemandGenCarouselCardAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdDemandGenCarouselCardAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdDemandGenCarouselCardAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset.verify|verify} messages. * @param message AdDemandGenCarouselCardAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdDemandGenCarouselCardAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdDemandGenCarouselCardAsset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdDemandGenCarouselCardAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset; /** * Decodes an AdDemandGenCarouselCardAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdDemandGenCarouselCardAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset; /** * Verifies an AdDemandGenCarouselCardAsset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdDemandGenCarouselCardAsset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdDemandGenCarouselCardAsset */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset; /** * Creates a plain object from an AdDemandGenCarouselCardAsset message. Also converts values to other types if specified. * @param message AdDemandGenCarouselCardAsset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdDemandGenCarouselCardAsset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdDemandGenCarouselCardAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdDemandGenCarouselCardAsset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdCallToActionAsset. */ interface IAdCallToActionAsset { /** AdCallToActionAsset asset */ asset?: (string|null); } /** Represents an AdCallToActionAsset. */ class AdCallToActionAsset implements IAdCallToActionAsset { /** * Constructs a new AdCallToActionAsset. * @param [properties] Properties to set */ constructor(properties?: google.ads.googleads.v19.common.IAdCallToActionAsset); /** AdCallToActionAsset asset. */ public asset?: (string|null); /** * Creates a new AdCallToActionAsset instance using the specified properties. * @param [properties] Properties to set * @returns AdCallToActionAsset instance */ public static create(properties?: google.ads.googleads.v19.common.IAdCallToActionAsset): google.ads.googleads.v19.common.AdCallToActionAsset; /** * Encodes the specified AdCallToActionAsset message. Does not implicitly {@link google.ads.googleads.v19.common.AdCallToActionAsset.verify|verify} messages. * @param message AdCallToActionAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.ads.googleads.v19.common.IAdCallToActionAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AdCallToActionAsset message, length delimited. Does not implicitly {@link google.ads.googleads.v19.common.AdCallToActionAsset.verify|verify} messages. * @param message AdCallToActionAsset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.ads.googleads.v19.common.IAdCallToActionAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AdCallToActionAsset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdCallToActionAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.googleads.v19.common.AdCallToActionAsset; /** * Decodes an AdCallToActionAsset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AdCallToActionAsset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.googleads.v19.common.AdCallToActionAsset; /** * Verifies an AdCallToActionAsset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AdCallToActionAsset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AdCallToActionAsset */ public static fromObject(object: { [k: string]: any }): google.ads.googleads.v19.common.AdCallToActionAsset; /** * Creates a plain object from an AdCallToActionAsset message. Also converts values to other types if specified. * @param message AdCallToActionAsset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.ads.googleads.v19.common.AdCallToActionAsset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AdCallToActionAsset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AdCallToActionAsset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Proper