UNPKG

google-ads-nodejs-client

Version:
1,055 lines 257 kB
import type * as gax from 'google-gax'; import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback } from 'google-gax'; import { Transform } from 'stream'; import * as protos from '../../protos/protos'; /** * Service to fetch data and metrics across resources. * @class * @memberof v21 */ export declare class GoogleAdsServiceClient { private _terminated; private _opts; private _providedCustomServicePath; private _gaxModule; private _gaxGrpc; private _protos; private _defaults; private _universeDomain; private _servicePath; private _log; auth: gax.GoogleAuth; descriptors: Descriptors; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: { [name: string]: Function; }; pathTemplates: { [name: string]: gax.PathTemplate; }; googleAdsServiceStub?: Promise<{ [name: string]: Function; }>; /** * Construct an instance of GoogleAdsServiceClient. * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] * @param {string} [options.credentials.private_key] * @param {string} [options.email] - Account email address. Required when * using a .pem or .p12 keyFilename. * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or * .p12 key downloaded from the Google Developers Console. If you provide * a path to a JSON file, the projectId option below is not necessary. * NOTE: .pem and .p12 require you to specify options.email as well. * @param {number} [options.port] - The port on which to connect to * the remote host. * @param {string} [options.projectId] - The project ID from the Google * Developer's Console, e.g. 'grape-spaceship-123'. We will also check * the environment variable GCLOUD_PROJECT for your project ID. If your * app is running in an environment which supports * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you * need to avoid loading the default gRPC version and want to use the fallback * HTTP implementation. Load only fallback version and pass it to the constructor: * ``` * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC * const client = new GoogleAdsServiceClient({fallback: true}, gax); * ``` */ constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback); /** * Initialize the client. * Performs asynchronous operations (such as authentication) and prepares the client. * This function will be called automatically when any class method is called for the * first time, but if you need to initialize it before calling an actual method, * feel free to call initialize() directly. * * You can await on this method if you want to make sure the client is initialized. * * @returns {Promise} A promise that resolves to an authenticated service stub. */ initialize(): Promise<{ [name: string]: Function; }>; /** * The DNS address for this API service. * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath(): string; /** * The DNS address for this API service - same as servicePath. * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint(): string; /** * The DNS address for this API service. * @returns {string} The DNS address for this service. */ get apiEndpoint(): string; get universeDomain(): string; /** * The port for this API service. * @returns {number} The default port for this service. */ static get port(): number; /** * The scopes needed to make gRPC calls for every method defined * in this service. * @returns {string[]} List of default scopes. */ static get scopes(): string[]; getProjectId(): Promise<string>; getProjectId(callback: Callback<string, undefined, undefined>): void; /** * Creates, updates, or removes resources. This method supports atomic * transactions with multiple types of resources. For example, you can * atomically create a campaign and a campaign budget, or perform up to * thousands of mutates atomically. * * This method is essentially a wrapper around a series of mutate methods. The * only features it offers over calling those methods directly are: * * - Atomic transactions * - Temp resource names (described below) * - Somewhat reduced latency over making a series of mutate calls * * Note: Only resources that support atomic transactions are included, so this * method can't replace all calls to individual services. * * ## Atomic Transaction Benefits * * Atomicity makes error handling much easier. If you're making a series of * changes and one fails, it can leave your account in an inconsistent state. * With atomicity, you either reach the chosen state directly, or the request * fails and you can retry. * * ## Temp Resource Names * * Temp resource names are a special type of resource name used to create a * resource and reference that resource in the same request. For example, if a * campaign budget is created with `resource_name` equal to * `customers/123/campaignBudgets/-1`, that resource name can be reused in * the `Campaign.budget` field in the same request. That way, the two * resources are created and linked atomically. * * To create a temp resource name, put a negative number in the part of the * name that the server would normally allocate. * * Note: * * - Resources must be created with a temp name before the name can be reused. * For example, the previous CampaignBudget+Campaign example would fail if * the mutate order was reversed. * - Temp names are not remembered across requests. * - There's no limit to the number of temp names in a request. * - Each temp name must use a unique negative number, even if the resource * types differ. * * ## Latency * * It's important to group mutates by resource type or the request may time * out and fail. Latency is roughly equal to a series of calls to individual * mutate methods, where each change in resource type is a new call. For * example, mutating 10 campaigns then 10 ad groups is like 2 calls, while * mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. * * List of thrown errors: * [AdCustomizerError]() * [AdError]() * [AdGroupAdError]() * [AdGroupCriterionError]() * [AdGroupError]() * [AssetError]() * [AuthenticationError]() * [AuthorizationError]() * [BiddingError]() * [CampaignBudgetError]() * [CampaignCriterionError]() * [CampaignError]() * [CampaignExperimentError]() * [CampaignSharedSetError]() * [CollectionSizeError]() * [ContextError]() * [ConversionActionError]() * [CriterionError]() * [CustomerFeedError]() * [DatabaseError]() * [DateError]() * [DateRangeError]() * [DistinctError]() * [ExtensionFeedItemError]() * [ExtensionSettingError]() * [FeedAttributeReferenceError]() * [FeedError]() * [FeedItemError]() * [FeedItemSetError]() * [FieldError]() * [FieldMaskError]() * [FunctionParsingError]() * [HeaderError]() * [ImageError]() * [InternalError]() * [KeywordPlanAdGroupKeywordError]() * [KeywordPlanCampaignError]() * [KeywordPlanError]() * [LabelError]() * [ListOperationError]() * [MediaUploadError]() * [MutateError]() * [NewResourceCreationError]() * [NullError]() * [OperationAccessDeniedError]() * [PolicyFindingError]() * [PolicyViolationError]() * [QuotaError]() * [RangeError]() * [RequestError]() * [ResourceCountLimitExceededError]() * [SettingError]() * [SharedSetError]() * [SizeLimitError]() * [StringFormatError]() * [StringLengthError]() * [UrlFieldError]() * [UserListError]() * [YoutubeVideoRegistrationError]() * * @param {Object} request * The request object that will be sent. * @param {string} request.customerId * Required. The ID of the customer whose resources are being modified. * @param {number[]} request.mutateOperations * Required. The list of operations to perform on individual resources. * @param {boolean} request.partialFailure * If true, successful operations will be carried out and invalid * operations will return errors. If false, all operations will be carried * out in one transaction if and only if they are all valid. * Default is false. * @param {boolean} request.validateOnly * If true, the request is validated but not executed. Only errors are * returned, not results. * @param {google.ads.googleads.v21.enums.ResponseContentTypeEnum.ResponseContentType} request.responseContentType * The response content type setting. Determines whether the mutable resource * or just the resource name should be returned post mutation. The mutable * resource will only be returned if the resource has the appropriate response * field. For example, MutateCampaignResult.campaign. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.ads.googleads.v21.services.MutateGoogleAdsResponse|MutateGoogleAdsResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example <caption>include:samples/generated/v21/google_ads_service.mutate.js</caption> * region_tag:googleads_v21_generated_GoogleAdsService_Mutate_async */ mutate(request?: protos.google.ads.googleads.v21.services.IMutateGoogleAdsRequest, options?: CallOptions): Promise<[ protos.google.ads.googleads.v21.services.IMutateGoogleAdsResponse, protos.google.ads.googleads.v21.services.IMutateGoogleAdsRequest | undefined, {} | undefined ]>; mutate(request: protos.google.ads.googleads.v21.services.IMutateGoogleAdsRequest, options: CallOptions, callback: Callback<protos.google.ads.googleads.v21.services.IMutateGoogleAdsResponse, protos.google.ads.googleads.v21.services.IMutateGoogleAdsRequest | null | undefined, {} | null | undefined>): void; mutate(request: protos.google.ads.googleads.v21.services.IMutateGoogleAdsRequest, callback: Callback<protos.google.ads.googleads.v21.services.IMutateGoogleAdsResponse, protos.google.ads.googleads.v21.services.IMutateGoogleAdsRequest | null | undefined, {} | null | undefined>): void; /** * Returns all rows that match the search stream query. * * List of thrown errors: * [AuthenticationError]() * [AuthorizationError]() * [ChangeEventError]() * [ChangeStatusError]() * [ClickViewError]() * [HeaderError]() * [InternalError]() * [QueryError]() * [QuotaError]() * [RequestError]() * * @param {Object} request * The request object that will be sent. * @param {string} request.customerId * Required. The ID of the customer being queried. * @param {string} request.query * Required. The query string. * @param {google.ads.googleads.v21.enums.SummaryRowSettingEnum.SummaryRowSetting} request.summaryRowSetting * Determines whether a summary row will be returned. By default, summary row * is not returned. If requested, the summary row will be sent in a response * by itself after all other query results are returned. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits {@link protos.google.ads.googleads.v21.services.SearchGoogleAdsStreamResponse|SearchGoogleAdsStreamResponse} on 'data' event. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation } * for more details and examples. * @example <caption>include:samples/generated/v21/google_ads_service.search_stream.js</caption> * region_tag:googleads_v21_generated_GoogleAdsService_SearchStream_async */ searchStream(request?: protos.google.ads.googleads.v21.services.ISearchGoogleAdsStreamRequest, options?: CallOptions): gax.CancellableStream; /** * Returns all rows that match the search query. * * List of thrown errors: * [AuthenticationError]() * [AuthorizationError]() * [ChangeEventError]() * [ChangeStatusError]() * [ClickViewError]() * [HeaderError]() * [InternalError]() * [QueryError]() * [QuotaError]() * [RequestError]() * * @param {Object} request * The request object that will be sent. * @param {string} request.customerId * Required. The ID of the customer being queried. * @param {string} request.query * Required. The query string. * @param {string} request.pageToken * Token of the page to retrieve. If not specified, the first * page of results will be returned. Use the value obtained from * `next_page_token` in the previous response in order to request * the next page of results. * @param {number} request.pageSize * This field is deprecated and will be removed in * a future version of the API. As of v17, Google Ads API will return a * `PAGE_SIZE_NOT_SUPPORTED` error if this field is set in the request body. * See * https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html * to learn more details. * @param {boolean} request.validateOnly * If true, the request is validated but not executed. * @param {google.ads.googleads.v21.services.SearchSettings} request.searchSettings * Settings that allow users to specify request count, summary row, and * results behavior. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.ads.googleads.v21.services.GoogleAdsRow|GoogleAdsRow}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `searchAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ search(request?: protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, options?: CallOptions): Promise<[ protos.google.ads.googleads.v21.services.IGoogleAdsRow[], protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest | null, protos.google.ads.googleads.v21.services.ISearchGoogleAdsResponse ]>; search(request: protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, options: CallOptions, callback: PaginationCallback<protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, protos.google.ads.googleads.v21.services.ISearchGoogleAdsResponse | null | undefined, protos.google.ads.googleads.v21.services.IGoogleAdsRow>): void; search(request: protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, callback: PaginationCallback<protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, protos.google.ads.googleads.v21.services.ISearchGoogleAdsResponse | null | undefined, protos.google.ads.googleads.v21.services.IGoogleAdsRow>): void; /** * Equivalent to `search`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.customerId * Required. The ID of the customer being queried. * @param {string} request.query * Required. The query string. * @param {string} request.pageToken * Token of the page to retrieve. If not specified, the first * page of results will be returned. Use the value obtained from * `next_page_token` in the previous response in order to request * the next page of results. * @param {number} request.pageSize * This field is deprecated and will be removed in * a future version of the API. As of v17, Google Ads API will return a * `PAGE_SIZE_NOT_SUPPORTED` error if this field is set in the request body. * See * https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html * to learn more details. * @param {boolean} request.validateOnly * If true, the request is validated but not executed. * @param {google.ads.googleads.v21.services.SearchSettings} request.searchSettings * Settings that allow users to specify request count, summary row, and * results behavior. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.ads.googleads.v21.services.GoogleAdsRow|GoogleAdsRow} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `searchAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ searchStream1(request?: protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, options?: CallOptions): Transform; /** * Equivalent to `search`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.customerId * Required. The ID of the customer being queried. * @param {string} request.query * Required. The query string. * @param {string} request.pageToken * Token of the page to retrieve. If not specified, the first * page of results will be returned. Use the value obtained from * `next_page_token` in the previous response in order to request * the next page of results. * @param {number} request.pageSize * This field is deprecated and will be removed in * a future version of the API. As of v17, Google Ads API will return a * `PAGE_SIZE_NOT_SUPPORTED` error if this field is set in the request body. * See * https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html * to learn more details. * @param {boolean} request.validateOnly * If true, the request is validated but not executed. * @param {google.ads.googleads.v21.services.SearchSettings} request.searchSettings * Settings that allow users to specify request count, summary row, and * results behavior. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.ads.googleads.v21.services.GoogleAdsRow|GoogleAdsRow}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example <caption>include:samples/generated/v21/google_ads_service.search.js</caption> * region_tag:googleads_v21_generated_GoogleAdsService_Search_async */ searchAsync(request?: protos.google.ads.googleads.v21.services.ISearchGoogleAdsRequest, options?: CallOptions): AsyncIterable<protos.google.ads.googleads.v21.services.IGoogleAdsRow>; /** * Return a fully-qualified accessibleBiddingStrategy resource name string. * * @param {string} customer_id * @param {string} bidding_strategy_id * @returns {string} Resource name string. */ accessibleBiddingStrategyPath(customerId: string, biddingStrategyId: string): string; /** * Parse the customer_id from AccessibleBiddingStrategy resource. * * @param {string} accessibleBiddingStrategyName * A fully-qualified path representing AccessibleBiddingStrategy resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAccessibleBiddingStrategyName(accessibleBiddingStrategyName: string): string | number; /** * Parse the bidding_strategy_id from AccessibleBiddingStrategy resource. * * @param {string} accessibleBiddingStrategyName * A fully-qualified path representing AccessibleBiddingStrategy resource. * @returns {string} A string representing the bidding_strategy_id. */ matchBiddingStrategyIdFromAccessibleBiddingStrategyName(accessibleBiddingStrategyName: string): string | number; /** * Return a fully-qualified accountBudget resource name string. * * @param {string} customer_id * @param {string} account_budget_id * @returns {string} Resource name string. */ accountBudgetPath(customerId: string, accountBudgetId: string): string; /** * Parse the customer_id from AccountBudget resource. * * @param {string} accountBudgetName * A fully-qualified path representing AccountBudget resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAccountBudgetName(accountBudgetName: string): string | number; /** * Parse the account_budget_id from AccountBudget resource. * * @param {string} accountBudgetName * A fully-qualified path representing AccountBudget resource. * @returns {string} A string representing the account_budget_id. */ matchAccountBudgetIdFromAccountBudgetName(accountBudgetName: string): string | number; /** * Return a fully-qualified accountBudgetProposal resource name string. * * @param {string} customer_id * @param {string} account_budget_proposal_id * @returns {string} Resource name string. */ accountBudgetProposalPath(customerId: string, accountBudgetProposalId: string): string; /** * Parse the customer_id from AccountBudgetProposal resource. * * @param {string} accountBudgetProposalName * A fully-qualified path representing AccountBudgetProposal resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAccountBudgetProposalName(accountBudgetProposalName: string): string | number; /** * Parse the account_budget_proposal_id from AccountBudgetProposal resource. * * @param {string} accountBudgetProposalName * A fully-qualified path representing AccountBudgetProposal resource. * @returns {string} A string representing the account_budget_proposal_id. */ matchAccountBudgetProposalIdFromAccountBudgetProposalName(accountBudgetProposalName: string): string | number; /** * Return a fully-qualified accountLink resource name string. * * @param {string} customer_id * @param {string} account_link_id * @returns {string} Resource name string. */ accountLinkPath(customerId: string, accountLinkId: string): string; /** * Parse the customer_id from AccountLink resource. * * @param {string} accountLinkName * A fully-qualified path representing AccountLink resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAccountLinkName(accountLinkName: string): string | number; /** * Parse the account_link_id from AccountLink resource. * * @param {string} accountLinkName * A fully-qualified path representing AccountLink resource. * @returns {string} A string representing the account_link_id. */ matchAccountLinkIdFromAccountLinkName(accountLinkName: string): string | number; /** * Return a fully-qualified ad resource name string. * * @param {string} customer_id * @param {string} ad_id * @returns {string} Resource name string. */ adPath(customerId: string, adId: string): string; /** * Parse the customer_id from Ad resource. * * @param {string} adName * A fully-qualified path representing Ad resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdName(adName: string): string | number; /** * Parse the ad_id from Ad resource. * * @param {string} adName * A fully-qualified path representing Ad resource. * @returns {string} A string representing the ad_id. */ matchAdIdFromAdName(adName: string): string | number; /** * Return a fully-qualified adGroup resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @returns {string} Resource name string. */ adGroupPath(customerId: string, adGroupId: string): string; /** * Parse the customer_id from AdGroup resource. * * @param {string} adGroupName * A fully-qualified path representing AdGroup resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupName(adGroupName: string): string | number; /** * Parse the ad_group_id from AdGroup resource. * * @param {string} adGroupName * A fully-qualified path representing AdGroup resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupName(adGroupName: string): string | number; /** * Return a fully-qualified adGroupAd resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} ad_id * @returns {string} Resource name string. */ adGroupAdPath(customerId: string, adGroupId: string, adId: string): string; /** * Parse the customer_id from AdGroupAd resource. * * @param {string} adGroupAdName * A fully-qualified path representing AdGroupAd resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAdName(adGroupAdName: string): string | number; /** * Parse the ad_group_id from AdGroupAd resource. * * @param {string} adGroupAdName * A fully-qualified path representing AdGroupAd resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAdName(adGroupAdName: string): string | number; /** * Parse the ad_id from AdGroupAd resource. * * @param {string} adGroupAdName * A fully-qualified path representing AdGroupAd resource. * @returns {string} A string representing the ad_id. */ matchAdIdFromAdGroupAdName(adGroupAdName: string): string | number; /** * Return a fully-qualified adGroupAdAssetCombinationView resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} ad_id * @param {string} asset_combination_id_low * @param {string} asset_combination_id_high * @returns {string} Resource name string. */ adGroupAdAssetCombinationViewPath(customerId: string, adGroupId: string, adId: string, assetCombinationIdLow: string, assetCombinationIdHigh: string): string; /** * Parse the customer_id from AdGroupAdAssetCombinationView resource. * * @param {string} adGroupAdAssetCombinationViewName * A fully-qualified path representing AdGroupAdAssetCombinationView resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAdAssetCombinationViewName(adGroupAdAssetCombinationViewName: string): string | number; /** * Parse the ad_group_id from AdGroupAdAssetCombinationView resource. * * @param {string} adGroupAdAssetCombinationViewName * A fully-qualified path representing AdGroupAdAssetCombinationView resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAdAssetCombinationViewName(adGroupAdAssetCombinationViewName: string): string | number; /** * Parse the ad_id from AdGroupAdAssetCombinationView resource. * * @param {string} adGroupAdAssetCombinationViewName * A fully-qualified path representing AdGroupAdAssetCombinationView resource. * @returns {string} A string representing the ad_id. */ matchAdIdFromAdGroupAdAssetCombinationViewName(adGroupAdAssetCombinationViewName: string): string | number; /** * Parse the asset_combination_id_low from AdGroupAdAssetCombinationView resource. * * @param {string} adGroupAdAssetCombinationViewName * A fully-qualified path representing AdGroupAdAssetCombinationView resource. * @returns {string} A string representing the asset_combination_id_low. */ matchAssetCombinationIdLowFromAdGroupAdAssetCombinationViewName(adGroupAdAssetCombinationViewName: string): string | number; /** * Parse the asset_combination_id_high from AdGroupAdAssetCombinationView resource. * * @param {string} adGroupAdAssetCombinationViewName * A fully-qualified path representing AdGroupAdAssetCombinationView resource. * @returns {string} A string representing the asset_combination_id_high. */ matchAssetCombinationIdHighFromAdGroupAdAssetCombinationViewName(adGroupAdAssetCombinationViewName: string): string | number; /** * Return a fully-qualified adGroupAdAssetView resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} ad_id * @param {string} asset_id * @param {string} field_type * @returns {string} Resource name string. */ adGroupAdAssetViewPath(customerId: string, adGroupId: string, adId: string, assetId: string, fieldType: string): string; /** * Parse the customer_id from AdGroupAdAssetView resource. * * @param {string} adGroupAdAssetViewName * A fully-qualified path representing AdGroupAdAssetView resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAdAssetViewName(adGroupAdAssetViewName: string): string | number; /** * Parse the ad_group_id from AdGroupAdAssetView resource. * * @param {string} adGroupAdAssetViewName * A fully-qualified path representing AdGroupAdAssetView resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAdAssetViewName(adGroupAdAssetViewName: string): string | number; /** * Parse the ad_id from AdGroupAdAssetView resource. * * @param {string} adGroupAdAssetViewName * A fully-qualified path representing AdGroupAdAssetView resource. * @returns {string} A string representing the ad_id. */ matchAdIdFromAdGroupAdAssetViewName(adGroupAdAssetViewName: string): string | number; /** * Parse the asset_id from AdGroupAdAssetView resource. * * @param {string} adGroupAdAssetViewName * A fully-qualified path representing AdGroupAdAssetView resource. * @returns {string} A string representing the asset_id. */ matchAssetIdFromAdGroupAdAssetViewName(adGroupAdAssetViewName: string): string | number; /** * Parse the field_type from AdGroupAdAssetView resource. * * @param {string} adGroupAdAssetViewName * A fully-qualified path representing AdGroupAdAssetView resource. * @returns {string} A string representing the field_type. */ matchFieldTypeFromAdGroupAdAssetViewName(adGroupAdAssetViewName: string): string | number; /** * Return a fully-qualified adGroupAdLabel resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} ad_id * @param {string} label_id * @returns {string} Resource name string. */ adGroupAdLabelPath(customerId: string, adGroupId: string, adId: string, labelId: string): string; /** * Parse the customer_id from AdGroupAdLabel resource. * * @param {string} adGroupAdLabelName * A fully-qualified path representing AdGroupAdLabel resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAdLabelName(adGroupAdLabelName: string): string | number; /** * Parse the ad_group_id from AdGroupAdLabel resource. * * @param {string} adGroupAdLabelName * A fully-qualified path representing AdGroupAdLabel resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAdLabelName(adGroupAdLabelName: string): string | number; /** * Parse the ad_id from AdGroupAdLabel resource. * * @param {string} adGroupAdLabelName * A fully-qualified path representing AdGroupAdLabel resource. * @returns {string} A string representing the ad_id. */ matchAdIdFromAdGroupAdLabelName(adGroupAdLabelName: string): string | number; /** * Parse the label_id from AdGroupAdLabel resource. * * @param {string} adGroupAdLabelName * A fully-qualified path representing AdGroupAdLabel resource. * @returns {string} A string representing the label_id. */ matchLabelIdFromAdGroupAdLabelName(adGroupAdLabelName: string): string | number; /** * Return a fully-qualified adGroupAsset resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} asset_id * @param {string} field_type * @returns {string} Resource name string. */ adGroupAssetPath(customerId: string, adGroupId: string, assetId: string, fieldType: string): string; /** * Parse the customer_id from AdGroupAsset resource. * * @param {string} adGroupAssetName * A fully-qualified path representing AdGroupAsset resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAssetName(adGroupAssetName: string): string | number; /** * Parse the ad_group_id from AdGroupAsset resource. * * @param {string} adGroupAssetName * A fully-qualified path representing AdGroupAsset resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAssetName(adGroupAssetName: string): string | number; /** * Parse the asset_id from AdGroupAsset resource. * * @param {string} adGroupAssetName * A fully-qualified path representing AdGroupAsset resource. * @returns {string} A string representing the asset_id. */ matchAssetIdFromAdGroupAssetName(adGroupAssetName: string): string | number; /** * Parse the field_type from AdGroupAsset resource. * * @param {string} adGroupAssetName * A fully-qualified path representing AdGroupAsset resource. * @returns {string} A string representing the field_type. */ matchFieldTypeFromAdGroupAssetName(adGroupAssetName: string): string | number; /** * Return a fully-qualified adGroupAssetSet resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} asset_set_id * @returns {string} Resource name string. */ adGroupAssetSetPath(customerId: string, adGroupId: string, assetSetId: string): string; /** * Parse the customer_id from AdGroupAssetSet resource. * * @param {string} adGroupAssetSetName * A fully-qualified path representing AdGroupAssetSet resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAssetSetName(adGroupAssetSetName: string): string | number; /** * Parse the ad_group_id from AdGroupAssetSet resource. * * @param {string} adGroupAssetSetName * A fully-qualified path representing AdGroupAssetSet resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAssetSetName(adGroupAssetSetName: string): string | number; /** * Parse the asset_set_id from AdGroupAssetSet resource. * * @param {string} adGroupAssetSetName * A fully-qualified path representing AdGroupAssetSet resource. * @returns {string} A string representing the asset_set_id. */ matchAssetSetIdFromAdGroupAssetSetName(adGroupAssetSetName: string): string | number; /** * Return a fully-qualified adGroupAudienceView resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} criterion_id * @returns {string} Resource name string. */ adGroupAudienceViewPath(customerId: string, adGroupId: string, criterionId: string): string; /** * Parse the customer_id from AdGroupAudienceView resource. * * @param {string} adGroupAudienceViewName * A fully-qualified path representing AdGroupAudienceView resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupAudienceViewName(adGroupAudienceViewName: string): string | number; /** * Parse the ad_group_id from AdGroupAudienceView resource. * * @param {string} adGroupAudienceViewName * A fully-qualified path representing AdGroupAudienceView resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupAudienceViewName(adGroupAudienceViewName: string): string | number; /** * Parse the criterion_id from AdGroupAudienceView resource. * * @param {string} adGroupAudienceViewName * A fully-qualified path representing AdGroupAudienceView resource. * @returns {string} A string representing the criterion_id. */ matchCriterionIdFromAdGroupAudienceViewName(adGroupAudienceViewName: string): string | number; /** * Return a fully-qualified adGroupBidModifier resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} criterion_id * @returns {string} Resource name string. */ adGroupBidModifierPath(customerId: string, adGroupId: string, criterionId: string): string; /** * Parse the customer_id from AdGroupBidModifier resource. * * @param {string} adGroupBidModifierName * A fully-qualified path representing AdGroupBidModifier resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupBidModifierName(adGroupBidModifierName: string): string | number; /** * Parse the ad_group_id from AdGroupBidModifier resource. * * @param {string} adGroupBidModifierName * A fully-qualified path representing AdGroupBidModifier resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupBidModifierName(adGroupBidModifierName: string): string | number; /** * Parse the criterion_id from AdGroupBidModifier resource. * * @param {string} adGroupBidModifierName * A fully-qualified path representing AdGroupBidModifier resource. * @returns {string} A string representing the criterion_id. */ matchCriterionIdFromAdGroupBidModifierName(adGroupBidModifierName: string): string | number; /** * Return a fully-qualified adGroupCriterion resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} criterion_id * @returns {string} Resource name string. */ adGroupCriterionPath(customerId: string, adGroupId: string, criterionId: string): string; /** * Parse the customer_id from AdGroupCriterion resource. * * @param {string} adGroupCriterionName * A fully-qualified path representing AdGroupCriterion resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupCriterionName(adGroupCriterionName: string): string | number; /** * Parse the ad_group_id from AdGroupCriterion resource. * * @param {string} adGroupCriterionName * A fully-qualified path representing AdGroupCriterion resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupCriterionName(adGroupCriterionName: string): string | number; /** * Parse the criterion_id from AdGroupCriterion resource. * * @param {string} adGroupCriterionName * A fully-qualified path representing AdGroupCriterion resource. * @returns {string} A string representing the criterion_id. */ matchCriterionIdFromAdGroupCriterionName(adGroupCriterionName: string): string | number; /** * Return a fully-qualified adGroupCriterionCustomizer resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} criterion_id * @param {string} customizer_attribute_id * @returns {string} Resource name string. */ adGroupCriterionCustomizerPath(customerId: string, adGroupId: string, criterionId: string, customizerAttributeId: string): string; /** * Parse the customer_id from AdGroupCriterionCustomizer resource. * * @param {string} adGroupCriterionCustomizerName * A fully-qualified path representing AdGroupCriterionCustomizer resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupCriterionCustomizerName(adGroupCriterionCustomizerName: string): string | number; /** * Parse the ad_group_id from AdGroupCriterionCustomizer resource. * * @param {string} adGroupCriterionCustomizerName * A fully-qualified path representing AdGroupCriterionCustomizer resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupCriterionCustomizerName(adGroupCriterionCustomizerName: string): string | number; /** * Parse the criterion_id from AdGroupCriterionCustomizer resource. * * @param {string} adGroupCriterionCustomizerName * A fully-qualified path representing AdGroupCriterionCustomizer resource. * @returns {string} A string representing the criterion_id. */ matchCriterionIdFromAdGroupCriterionCustomizerName(adGroupCriterionCustomizerName: string): string | number; /** * Parse the customizer_attribute_id from AdGroupCriterionCustomizer resource. * * @param {string} adGroupCriterionCustomizerName * A fully-qualified path representing AdGroupCriterionCustomizer resource. * @returns {string} A string representing the customizer_attribute_id. */ matchCustomizerAttributeIdFromAdGroupCriterionCustomizerName(adGroupCriterionCustomizerName: string): string | number; /** * Return a fully-qualified adGroupCriterionLabel resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} criterion_id * @param {string} label_id * @returns {string} Resource name string. */ adGroupCriterionLabelPath(customerId: string, adGroupId: string, criterionId: string, labelId: string): string; /** * Parse the customer_id from AdGroupCriterionLabel resource. * * @param {string} adGroupCriterionLabelName * A fully-qualified path representing AdGroupCriterionLabel resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupCriterionLabelName(adGroupCriterionLabelName: string): string | number; /** * Parse the ad_group_id from AdGroupCriterionLabel resource. * * @param {string} adGroupCriterionLabelName * A fully-qualified path representing AdGroupCriterionLabel resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupCriterionLabelName(adGroupCriterionLabelName: string): string | number; /** * Parse the criterion_id from AdGroupCriterionLabel resource. * * @param {string} adGroupCriterionLabelName * A fully-qualified path representing AdGroupCriterionLabel resource. * @returns {string} A string representing the criterion_id. */ matchCriterionIdFromAdGroupCriterionLabelName(adGroupCriterionLabelName: string): string | number; /** * Parse the label_id from AdGroupCriterionLabel resource. * * @param {string} adGroupCriterionLabelName * A fully-qualified path representing AdGroupCriterionLabel resource. * @returns {string} A string representing the label_id. */ matchLabelIdFromAdGroupCriterionLabelName(adGroupCriterionLabelName: string): string | number; /** * Return a fully-qualified adGroupCriterionSimulation resource name string. * * @param {string} customer_id * @param {string} ad_group_id * @param {string} criterion_id * @param {string} type * @param {string} modification_method * @param {string} start_date * @param {string} end_date * @returns {string} Resource name string. */ adGroupCriterionSimulationPath(customerId: string, adGroupId: string, criterionId: string, type: string, modificationMethod: string, startDate: string, endDate: string): string; /** * Parse the customer_id from AdGroupCriterionSimulation resource. * * @param {string} adGroupCriterionSimulationName * A fully-qualified path representing AdGroupCriterionSimulation resource. * @returns {string} A string representing the customer_id. */ matchCustomerIdFromAdGroupCriterionSimulationName(adGroupCriterionSimulationName: string): string | number; /** * Parse the ad_group_id from AdGroupCriterionSimulation resource. * * @param {string} adGroupCriterionSimulationName * A fully-qualified path representing AdGroupCriterionSimulation resource. * @returns {string} A string representing the ad_group_id. */ matchAdGroupIdFromAdGroupCriterionSimulationName(adGroupCriterionSimulationName: string): string | number; /** * Parse the criterion_id from AdGroupCriterionSimulation resource. * * @param {string} adGroupCriterionSimulationName * A fully-qualified path representing AdGroupCriterionSimulation resource. * @returns {string} A string representing the criterion_id. */ matchCriterionIdFromAdGroupCriterionSimulationName(adGroupCriterionSimulationName: string): string | number; /** * Parse the type from AdGroupCriterionSimulation resource. * * @param {string} adGroupCriterionSimula