# Copyright 2026, 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. # # This module provides methods to generate resource names. package Google::Ads::GoogleAds::V25::Utils::ResourceNames; use strict; use warnings; use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; # Returns the accessible_bidding_strategy resource name for the specified components. sub accessible_bidding_strategy { my ($customer_id, $bidding_strategy_id) = @_; my $path_template = 'customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}'; return expand_path_template($path_template, [$customer_id, $bidding_strategy_id]); } # Returns the account_budget resource name for the specified components. sub account_budget { my ($customer_id, $account_budget_id) = @_; my $path_template = 'customers/{customer_id}/accountBudgets/{account_budget_id}'; return expand_path_template($path_template, [$customer_id, $account_budget_id]); } # Returns the account_budget_proposal resource name for the specified components. sub account_budget_proposal { my ($customer_id, $account_budget_proposal_id) = @_; my $path_template = 'customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}'; return expand_path_template($path_template, [$customer_id, $account_budget_proposal_id]); } # Returns the account_link resource name for the specified components. sub account_link { my ($customer_id, $account_link_id) = @_; my $path_template = 'customers/{customer_id}/accountLinks/{account_link_id}'; return expand_path_template($path_template, [$customer_id, $account_link_id]); } # Returns the ad resource name for the specified components. sub ad { my ($customer_id, $ad_id) = @_; my $path_template = 'customers/{customer_id}/ads/{ad_id}'; return expand_path_template($path_template, [$customer_id, $ad_id]); } # Returns the ad_group resource name for the specified components. sub ad_group { my ($customer_id, $ad_group_id) = @_; my $path_template = 'customers/{customer_id}/adGroups/{ad_group_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id]); } # Returns the ad_group_ad resource name for the specified components. sub ad_group_ad { my ($customer_id, $ad_group_id, $ad_id) = @_; my $path_template = 'customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $ad_id]); } # Returns the ad_group_ad_asset_combination_view resource name for the specified components. sub ad_group_ad_asset_combination_view { my ($customer_id, $ad_group_id, $ad_id, $asset_combination_id_low, $asset_combination_id_high) = @_; my $path_template = 'customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $ad_id, $asset_combination_id_low, $asset_combination_id_high]); } # Returns the ad_group_ad_asset_view resource name for the specified components. sub ad_group_ad_asset_view { my ($customer_id, $ad_group_id, $ad_id, $asset_id, $field_type) = @_; my $path_template = 'customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $ad_id, $asset_id, $field_type]); } # Returns the ad_group_ad_label resource name for the specified components. sub ad_group_ad_label { my ($customer_id, $ad_group_id, $ad_id, $label_id) = @_; my $path_template = 'customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $ad_id, $label_id]); } # Returns the ad_group_asset resource name for the specified components. sub ad_group_asset { my ($customer_id, $ad_group_id, $asset_id, $field_type) = @_; my $path_template = 'customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $asset_id, $field_type]); } # Returns the ad_group_asset_set resource name for the specified components. sub ad_group_asset_set { my ($customer_id, $ad_group_id, $asset_set_id) = @_; my $path_template = 'customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $asset_set_id]); } # Returns the ad_group_audience_view resource name for the specified components. sub ad_group_audience_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the ad_group_bid_modifier resource name for the specified components. sub ad_group_bid_modifier { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the ad_group_criterion resource name for the specified components. sub ad_group_criterion { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the ad_group_criterion_customizer resource name for the specified components. sub ad_group_criterion_customizer { my ($customer_id, $ad_group_id, $criterion_id, $customizer_attribute_id) = @_; my $path_template = 'customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id, $customizer_attribute_id]); } # Returns the ad_group_criterion_label resource name for the specified components. sub ad_group_criterion_label { my ($customer_id, $ad_group_id, $criterion_id, $label_id) = @_; my $path_template = 'customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id, $label_id]); } # Returns the ad_group_criterion_simulation resource name for the specified components. sub ad_group_criterion_simulation { my ($customer_id, $ad_group_id, $criterion_id, $type, $modification_method, $start_date, $end_date) = @_; my $path_template = 'customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id, $type, $modification_method, $start_date, $end_date]); } # Returns the ad_group_customizer resource name for the specified components. sub ad_group_customizer { my ($customer_id, $ad_group_id, $customizer_attribute_id) = @_; my $path_template = 'customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $customizer_attribute_id]); } # Returns the ad_group_label resource name for the specified components. sub ad_group_label { my ($customer_id, $ad_group_id, $label_id) = @_; my $path_template = 'customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $label_id]); } # Returns the ad_group_simulation resource name for the specified components. sub ad_group_simulation { my ($customer_id, $ad_group_id, $type, $modification_method, $start_date, $end_date) = @_; my $path_template = 'customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $type, $modification_method, $start_date, $end_date]); } # Returns the ad_parameter resource name for the specified components. sub ad_parameter { my ($customer_id, $ad_group_id, $criterion_id, $parameter_index) = @_; my $path_template = 'customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id, $parameter_index]); } # Returns the ad_schedule_view resource name for the specified components. sub ad_schedule_view { my ($customer_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $criterion_id]); } # Returns the age_range_view resource name for the specified components. sub age_range_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the ai_max_search_term_ad_combination_view resource name for the specified components. sub ai_max_search_term_ad_combination_view { my ($customer_id, $ad_group_id, $search_term, $landing_page, $headline) = @_; my $path_template = 'customers/{customer_id}/aiMaxSearchTermAdCombinationViews/{ad_group_id}~{search_term}~{landing_page}~{headline}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $search_term, $landing_page, $headline]); } # Returns the android_privacy_shared_key_google_ad_group resource name for the specified components. sub android_privacy_shared_key_google_ad_group { my ($customer_id, $campaign_id, $ad_group_id, $android_privacy_interaction_type, $android_privacy_network_type, $android_privacy_interaction_date) = @_; my $path_template = 'customers/{customer_id}/androidPrivacySharedKeyGoogleAdGroups/{campaign_id}~{ad_group_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $ad_group_id, $android_privacy_interaction_type, $android_privacy_network_type, $android_privacy_interaction_date]); } # Returns the android_privacy_shared_key_google_campaign resource name for the specified components. sub android_privacy_shared_key_google_campaign { my ($customer_id, $campaign_id, $android_privacy_interaction_type, $android_privacy_interaction_date) = @_; my $path_template = 'customers/{customer_id}/androidPrivacySharedKeyGoogleCampaigns/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_interaction_date}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $android_privacy_interaction_type, $android_privacy_interaction_date]); } # Returns the android_privacy_shared_key_google_network_type resource name for the specified components. sub android_privacy_shared_key_google_network_type { my ($customer_id, $campaign_id, $android_privacy_interaction_type, $android_privacy_network_type, $android_privacy_interaction_date) = @_; my $path_template = 'customers/{customer_id}/androidPrivacySharedKeyGoogleNetworkTypes/{campaign_id}~{android_privacy_interaction_type}~{android_privacy_network_type}~{android_privacy_interaction_date}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $android_privacy_interaction_type, $android_privacy_network_type, $android_privacy_interaction_date]); } # Returns the app_top_combination_view resource name for the specified components. sub app_top_combination_view { my ($customer_id, $ad_group_id, $ad_id, $asset_combination_category) = @_; my $path_template = 'customers/{customer_id}/appTopCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_category}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $ad_id, $asset_combination_category]); } # Returns the applied_incentive resource name for the specified components. sub applied_incentive { my ($customer_id, $coupon_code) = @_; my $path_template = 'customers/{customer_id}/appliedIncentives/{coupon_code}'; return expand_path_template($path_template, [$customer_id, $coupon_code]); } # Returns the asset resource name for the specified components. sub asset { my ($customer_id, $asset_id) = @_; my $path_template = 'customers/{customer_id}/assets/{asset_id}'; return expand_path_template($path_template, [$customer_id, $asset_id]); } # Returns the asset_field_type_view resource name for the specified components. sub asset_field_type_view { my ($customer_id, $field_type) = @_; my $path_template = 'customers/{customer_id}/assetFieldTypeViews/{field_type}'; return expand_path_template($path_template, [$customer_id, $field_type]); } # Returns the asset_group resource name for the specified components. sub asset_group { my ($customer_id, $asset_group_id) = @_; my $path_template = 'customers/{customer_id}/assetGroups/{asset_group_id}'; return expand_path_template($path_template, [$customer_id, $asset_group_id]); } # Returns the asset_group_asset resource name for the specified components. sub asset_group_asset { my ($customer_id, $asset_group_id, $asset_id, $field_type) = @_; my $path_template = 'customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}'; return expand_path_template($path_template, [$customer_id, $asset_group_id, $asset_id, $field_type]); } # Returns the asset_group_listing_group_filter resource name for the specified components. sub asset_group_listing_group_filter { my ($customer_id, $asset_group_id, $listing_group_filter_id) = @_; my $path_template = 'customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}'; return expand_path_template($path_template, [$customer_id, $asset_group_id, $listing_group_filter_id]); } # Returns the asset_group_product_group_view resource name for the specified components. sub asset_group_product_group_view { my ($customer_id, $asset_group_id, $listing_group_filter_id) = @_; my $path_template = 'customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}'; return expand_path_template($path_template, [$customer_id, $asset_group_id, $listing_group_filter_id]); } # Returns the asset_group_signal resource name for the specified components. sub asset_group_signal { my ($customer_id, $asset_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $asset_group_id, $criterion_id]); } # Returns the asset_group_top_combination_view resource name for the specified components. sub asset_group_top_combination_view { my ($customer_id, $asset_group_id, $asset_combination_category) = @_; my $path_template = 'customers/{customer_id}/assetGroupTopCombinationViews/{asset_group_id}~{asset_combination_category}'; return expand_path_template($path_template, [$customer_id, $asset_group_id, $asset_combination_category]); } # Returns the asset_set resource name for the specified components. sub asset_set { my ($customer_id, $asset_set_id) = @_; my $path_template = 'customers/{customer_id}/assetSets/{asset_set_id}'; return expand_path_template($path_template, [$customer_id, $asset_set_id]); } # Returns the asset_set_asset resource name for the specified components. sub asset_set_asset { my ($customer_id, $asset_set_id, $asset_id) = @_; my $path_template = 'customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}'; return expand_path_template($path_template, [$customer_id, $asset_set_id, $asset_id]); } # Returns the asset_set_type_view resource name for the specified components. sub asset_set_type_view { my ($customer_id, $asset_set_type) = @_; my $path_template = 'customers/{customer_id}/assetSetTypeViews/{asset_set_type}'; return expand_path_template($path_template, [$customer_id, $asset_set_type]); } # Returns the audience resource name for the specified components. sub audience { my ($customer_id, $audience_id) = @_; my $path_template = 'customers/{customer_id}/audiences/{audience_id}'; return expand_path_template($path_template, [$customer_id, $audience_id]); } # Returns the batch_job resource name for the specified components. sub batch_job { my ($customer_id, $batch_job_id) = @_; my $path_template = 'customers/{customer_id}/batchJobs/{batch_job_id}'; return expand_path_template($path_template, [$customer_id, $batch_job_id]); } # Returns the bidding_data_exclusion resource name for the specified components. sub bidding_data_exclusion { my ($customer_id, $seasonality_event_id) = @_; my $path_template = 'customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}'; return expand_path_template($path_template, [$customer_id, $seasonality_event_id]); } # Returns the bidding_seasonality_adjustment resource name for the specified components. sub bidding_seasonality_adjustment { my ($customer_id, $seasonality_event_id) = @_; my $path_template = 'customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}'; return expand_path_template($path_template, [$customer_id, $seasonality_event_id]); } # Returns the bidding_strategy resource name for the specified components. sub bidding_strategy { my ($customer_id, $bidding_strategy_id) = @_; my $path_template = 'customers/{customer_id}/biddingStrategies/{bidding_strategy_id}'; return expand_path_template($path_template, [$customer_id, $bidding_strategy_id]); } # Returns the bidding_strategy_simulation resource name for the specified components. sub bidding_strategy_simulation { my ($customer_id, $bidding_strategy_id, $type, $modification_method, $start_date, $end_date) = @_; my $path_template = 'customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}'; return expand_path_template($path_template, [$customer_id, $bidding_strategy_id, $type, $modification_method, $start_date, $end_date]); } # Returns the billing_setup resource name for the specified components. sub billing_setup { my ($customer_id, $billing_setup_id) = @_; my $path_template = 'customers/{customer_id}/billingSetups/{billing_setup_id}'; return expand_path_template($path_template, [$customer_id, $billing_setup_id]); } # Returns the call_view resource name for the specified components. sub call_view { my ($customer_id, $call_detail_id) = @_; my $path_template = 'customers/{customer_id}/callViews/{call_detail_id}'; return expand_path_template($path_template, [$customer_id, $call_detail_id]); } # Returns the campaign resource name for the specified components. sub campaign { my ($customer_id, $campaign_id) = @_; my $path_template = 'customers/{customer_id}/campaigns/{campaign_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id]); } # Returns the campaign_aggregate_asset_view resource name for the specified components. sub campaign_aggregate_asset_view { my ($customer_id, $campaign_id, $asset_id, $asset_link_source, $field_type) = @_; my $path_template = 'customers/{customer_id}/campaignAggregateAssetViews/{campaign_id}~{asset_id}~{asset_link_source}~{field_type}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $asset_id, $asset_link_source, $field_type]); } # Returns the campaign_asset resource name for the specified components. sub campaign_asset { my ($customer_id, $campaign_id, $asset_id, $field_type) = @_; my $path_template = 'customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $asset_id, $field_type]); } # Returns the campaign_asset_set resource name for the specified components. sub campaign_asset_set { my ($customer_id, $campaign_id, $asset_set_id) = @_; my $path_template = 'customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $asset_set_id]); } # Returns the campaign_audience_view resource name for the specified components. sub campaign_audience_view { my ($customer_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $criterion_id]); } # Returns the campaign_bid_modifier resource name for the specified components. sub campaign_bid_modifier { my ($customer_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $criterion_id]); } # Returns the campaign_budget resource name for the specified components. sub campaign_budget { my ($customer_id, $campaign_budget_id) = @_; my $path_template = 'customers/{customer_id}/campaignBudgets/{campaign_budget_id}'; return expand_path_template($path_template, [$customer_id, $campaign_budget_id]); } # Returns the campaign_conversion_goal resource name for the specified components. sub campaign_conversion_goal { my ($customer_id, $campaign_id, $category, $source) = @_; my $path_template = 'customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $category, $source]); } # Returns the campaign_criterion resource name for the specified components. sub campaign_criterion { my ($customer_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $criterion_id]); } # Returns the campaign_criterion_simulation resource name for the specified components. sub campaign_criterion_simulation { my ($customer_id, $campaign_id, $criterion_id, $type, $modification_method, $start_date, $end_date) = @_; my $path_template = 'customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $criterion_id, $type, $modification_method, $start_date, $end_date]); } # Returns the campaign_customizer resource name for the specified components. sub campaign_customizer { my ($customer_id, $campaign_id, $customizer_attribute_id) = @_; my $path_template = 'customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $customizer_attribute_id]); } # Returns the campaign_draft resource name for the specified components. sub campaign_draft { my ($customer_id, $base_campaign_id, $draft_id) = @_; my $path_template = 'customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}'; return expand_path_template($path_template, [$customer_id, $base_campaign_id, $draft_id]); } # Returns the campaign_goal_config resource name for the specified components. sub campaign_goal_config { my ($customer_id, $campaign_id, $unified_goal_id) = @_; my $path_template = 'customers/{customer_id}/campaignGoalConfigs/{campaign_id}~{unified_goal_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $unified_goal_id]); } # Returns the campaign_group resource name for the specified components. sub campaign_group { my ($customer_id, $campaign_group_id) = @_; my $path_template = 'customers/{customer_id}/campaignGroups/{campaign_group_id}'; return expand_path_template($path_template, [$customer_id, $campaign_group_id]); } # Returns the campaign_label resource name for the specified components. sub campaign_label { my ($customer_id, $campaign_id, $label_id) = @_; my $path_template = 'customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $label_id]); } # Returns the campaign_search_term_insight resource name for the specified components. sub campaign_search_term_insight { my ($customer_id, $campaign_id, $cluster_id) = @_; my $path_template = 'customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $cluster_id]); } # Returns the campaign_search_term_view resource name for the specified components. sub campaign_search_term_view { my ($customer_id, $campaign_id, $query) = @_; my $path_template = 'customers/{customer_id}/campaignSearchTermViews/{campaign_id}~{query}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $query]); } # Returns the campaign_shared_set resource name for the specified components. sub campaign_shared_set { my ($customer_id, $campaign_id, $shared_set_id) = @_; my $path_template = 'customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $shared_set_id]); } # Returns the campaign_simulation resource name for the specified components. sub campaign_simulation { my ($customer_id, $campaign_id, $type, $modification_method, $start_date, $end_date) = @_; my $path_template = 'customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $type, $modification_method, $start_date, $end_date]); } # Returns the carrier_constant resource name for the specified components. sub carrier_constant { my ($criterion_id) = @_; my $path_template = 'carrierConstants/{criterion_id}'; return expand_path_template($path_template, [$criterion_id]); } # Returns the cart_data_sales_view resource name for the specified components. sub cart_data_sales_view { my ($customer_id) = @_; my $path_template = 'customers/{customer_id}/cartDataSalesView'; return expand_path_template($path_template, [$customer_id]); } # Returns the change_event resource name for the specified components. sub change_event { my ($customer_id, $timestamp_micros, $command_index, $mutate_index) = @_; my $path_template = 'customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}'; return expand_path_template($path_template, [$customer_id, $timestamp_micros, $command_index, $mutate_index]); } # Returns the change_status resource name for the specified components. sub change_status { my ($customer_id, $change_status_id) = @_; my $path_template = 'customers/{customer_id}/changeStatus/{change_status_id}'; return expand_path_template($path_template, [$customer_id, $change_status_id]); } # Returns the channel_aggregate_asset_view resource name for the specified components. sub channel_aggregate_asset_view { my ($customer_id, $advertising_channel_type, $asset_id, $asset_source, $field_type) = @_; my $path_template = 'customers/{customer_id}/channelAggregateAssetViews/{advertising_channel_type}~{asset_id}~{asset_source}~{field_type}'; return expand_path_template($path_template, [$customer_id, $advertising_channel_type, $asset_id, $asset_source, $field_type]); } # Returns the click_view resource name for the specified components. sub click_view { my ($customer_id, $date, $gclid) = @_; my $path_template = 'customers/{customer_id}/clickViews/{date}~{gclid}'; return expand_path_template($path_template, [$customer_id, $date, $gclid]); } # Returns the combined_audience resource name for the specified components. sub combined_audience { my ($customer_id, $combined_audience_id) = @_; my $path_template = 'customers/{customer_id}/combinedAudiences/{combined_audience_id}'; return expand_path_template($path_template, [$customer_id, $combined_audience_id]); } # Returns the content_criterion_view resource name for the specified components. sub content_criterion_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/contentCriterionViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the conversion_action resource name for the specified components. sub conversion_action { my ($customer_id, $conversion_action_id) = @_; my $path_template = 'customers/{customer_id}/conversionActions/{conversion_action_id}'; return expand_path_template($path_template, [$customer_id, $conversion_action_id]); } # Returns the conversion_custom_variable resource name for the specified components. sub conversion_custom_variable { my ($customer_id, $conversion_custom_variable_id) = @_; my $path_template = 'customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}'; return expand_path_template($path_template, [$customer_id, $conversion_custom_variable_id]); } # Returns the conversion_goal_campaign_config resource name for the specified components. sub conversion_goal_campaign_config { my ($customer_id, $campaign_id) = @_; my $path_template = 'customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id]); } # Returns the conversion_value_rule resource name for the specified components. sub conversion_value_rule { my ($customer_id, $conversion_value_rule_id) = @_; my $path_template = 'customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}'; return expand_path_template($path_template, [$customer_id, $conversion_value_rule_id]); } # Returns the conversion_value_rule_set resource name for the specified components. sub conversion_value_rule_set { my ($customer_id, $conversion_value_rule_set_id) = @_; my $path_template = 'customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}'; return expand_path_template($path_template, [$customer_id, $conversion_value_rule_set_id]); } # Returns the currency_constant resource name for the specified components. sub currency_constant { my ($code) = @_; my $path_template = 'currencyConstants/{code}'; return expand_path_template($path_template, [$code]); } # Returns the custom_audience resource name for the specified components. sub custom_audience { my ($customer_id, $custom_audience_id) = @_; my $path_template = 'customers/{customer_id}/customAudiences/{custom_audience_id}'; return expand_path_template($path_template, [$customer_id, $custom_audience_id]); } # Returns the custom_conversion_goal resource name for the specified components. sub custom_conversion_goal { my ($customer_id, $goal_id) = @_; my $path_template = 'customers/{customer_id}/customConversionGoals/{goal_id}'; return expand_path_template($path_template, [$customer_id, $goal_id]); } # Returns the custom_interest resource name for the specified components. sub custom_interest { my ($customer_id, $custom_interest_id) = @_; my $path_template = 'customers/{customer_id}/customInterests/{custom_interest_id}'; return expand_path_template($path_template, [$customer_id, $custom_interest_id]); } # Returns the customer resource name for the specified components. sub customer { my ($customer_id) = @_; my $path_template = 'customers/{customer_id}'; return expand_path_template($path_template, [$customer_id]); } # Returns the customer_asset resource name for the specified components. sub customer_asset { my ($customer_id, $asset_id, $field_type) = @_; my $path_template = 'customers/{customer_id}/customerAssets/{asset_id}~{field_type}'; return expand_path_template($path_template, [$customer_id, $asset_id, $field_type]); } # Returns the customer_asset_set resource name for the specified components. sub customer_asset_set { my ($customer_id, $asset_set_id) = @_; my $path_template = 'customers/{customer_id}/customerAssetSets/{asset_set_id}'; return expand_path_template($path_template, [$customer_id, $asset_set_id]); } # Returns the customer_client resource name for the specified components. sub customer_client { my ($customer_id, $client_customer_id) = @_; my $path_template = 'customers/{customer_id}/customerClients/{client_customer_id}'; return expand_path_template($path_template, [$customer_id, $client_customer_id]); } # Returns the customer_client_link resource name for the specified components. sub customer_client_link { my ($customer_id, $client_customer_id, $manager_link_id) = @_; my $path_template = 'customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}'; return expand_path_template($path_template, [$customer_id, $client_customer_id, $manager_link_id]); } # Returns the customer_conversion_goal resource name for the specified components. sub customer_conversion_goal { my ($customer_id, $category, $source) = @_; my $path_template = 'customers/{customer_id}/customerConversionGoals/{category}~{source}'; return expand_path_template($path_template, [$customer_id, $category, $source]); } # Returns the customer_customizer resource name for the specified components. sub customer_customizer { my ($customer_id, $customizer_attribute_id) = @_; my $path_template = 'customers/{customer_id}/customerCustomizers/{customizer_attribute_id}'; return expand_path_template($path_template, [$customer_id, $customizer_attribute_id]); } # Returns the customer_label resource name for the specified components. sub customer_label { my ($customer_id, $label_id) = @_; my $path_template = 'customers/{customer_id}/customerLabels/{label_id}'; return expand_path_template($path_template, [$customer_id, $label_id]); } # Returns the customer_manager_link resource name for the specified components. sub customer_manager_link { my ($customer_id, $manager_customer_id, $manager_link_id) = @_; my $path_template = 'customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}'; return expand_path_template($path_template, [$customer_id, $manager_customer_id, $manager_link_id]); } # Returns the customer_negative_criterion resource name for the specified components. sub customer_negative_criterion { my ($customer_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/customerNegativeCriteria/{criterion_id}'; return expand_path_template($path_template, [$customer_id, $criterion_id]); } # Returns the customer_search_term_insight resource name for the specified components. sub customer_search_term_insight { my ($customer_id, $cluster_id) = @_; my $path_template = 'customers/{customer_id}/customerSearchTermInsights/{cluster_id}'; return expand_path_template($path_template, [$customer_id, $cluster_id]); } # Returns the customer_sk_ad_network_conversion_value_schema resource name for the specified components. sub customer_sk_ad_network_conversion_value_schema { my ($customer_id, $account_link_id) = @_; my $path_template = 'customers/{customer_id}/customerSkAdNetworkConversionValueSchemas/{account_link_id}'; return expand_path_template($path_template, [$customer_id, $account_link_id]); } # Returns the customer_user_access resource name for the specified components. sub customer_user_access { my ($customer_id, $user_id) = @_; my $path_template = 'customers/{customer_id}/customerUserAccesses/{user_id}'; return expand_path_template($path_template, [$customer_id, $user_id]); } # Returns the customer_user_access_invitation resource name for the specified components. sub customer_user_access_invitation { my ($customer_id, $invitation_id) = @_; my $path_template = 'customers/{customer_id}/customerUserAccessInvitations/{invitation_id}'; return expand_path_template($path_template, [$customer_id, $invitation_id]); } # Returns the customizer_attribute resource name for the specified components. sub customizer_attribute { my ($customer_id, $customizer_attribute_id) = @_; my $path_template = 'customers/{customer_id}/customizerAttributes/{customizer_attribute_id}'; return expand_path_template($path_template, [$customer_id, $customizer_attribute_id]); } # Returns the data_link resource name for the specified components. sub data_link { my ($customer_id, $product_link_id, $data_link_id) = @_; my $path_template = 'customers/{customer_id}/dataLinks/{product_link_id}~{data_link_id}'; return expand_path_template($path_template, [$customer_id, $product_link_id, $data_link_id]); } # Returns the detail_content_suitability_placement_view resource name for the specified components. sub detail_content_suitability_placement_view { my ($customer_id, $placement_fingerprint) = @_; my $path_template = 'customers/{customer_id}/detailContentSuitabilityPlacementViews/{placement_fingerprint}'; return expand_path_template($path_template, [$customer_id, $placement_fingerprint]); } # Returns the detail_placement_view resource name for the specified components. sub detail_placement_view { my ($customer_id, $ad_group_id, $base64_placement) = @_; my $path_template = 'customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $base64_placement]); } # Returns the detailed_demographic resource name for the specified components. sub detailed_demographic { my ($customer_id, $detailed_demographic_id) = @_; my $path_template = 'customers/{customer_id}/detailedDemographics/{detailed_demographic_id}'; return expand_path_template($path_template, [$customer_id, $detailed_demographic_id]); } # Returns the display_keyword_view resource name for the specified components. sub display_keyword_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the distance_view resource name for the specified components. sub distance_view { my ($customer_id, $placeholder_chain_id, $distance_bucket) = @_; my $path_template = 'customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}'; return expand_path_template($path_template, [$customer_id, $placeholder_chain_id, $distance_bucket]); } # Returns the domain_category resource name for the specified components. sub domain_category { my ($customer_id, $campaign_id, $base64_category, $language_code) = @_; my $path_template = 'customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $base64_category, $language_code]); } # Returns the dynamic_search_ads_search_term_view resource name for the specified components. sub dynamic_search_ads_search_term_view { my ($customer_id, $ad_group_id, $search_term_fingerprint, $headline_fingerprint, $landing_page_fingerprint, $page_url_fingerprint) = @_; my $path_template = 'customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $search_term_fingerprint, $headline_fingerprint, $landing_page_fingerprint, $page_url_fingerprint]); } # Returns the expanded_landing_page_view resource name for the specified components. sub expanded_landing_page_view { my ($customer_id, $expanded_final_url_fingerprint) = @_; my $path_template = 'customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}'; return expand_path_template($path_template, [$customer_id, $expanded_final_url_fingerprint]); } # Returns the experiment resource name for the specified components. sub experiment { my ($customer_id, $trial_id) = @_; my $path_template = 'customers/{customer_id}/experiments/{trial_id}'; return expand_path_template($path_template, [$customer_id, $trial_id]); } # Returns the experiment_arm resource name for the specified components. sub experiment_arm { my ($customer_id, $trial_id, $trial_arm_id) = @_; my $path_template = 'customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}'; return expand_path_template($path_template, [$customer_id, $trial_id, $trial_arm_id]); } # Returns the final_url_expansion_asset_view resource name for the specified components. sub final_url_expansion_asset_view { my ($customer_id, $campaign_id, $asset_id, $field_type, $url_fp) = @_; my $path_template = 'customers/{customer_id}/finalUrlExpansionAssetViews/{campaign_id}~{asset_id}~{field_type}~{url_fp}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $asset_id, $field_type, $url_fp]); } # Returns the gender_view resource name for the specified components. sub gender_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the geo_target_constant resource name for the specified components. sub geo_target_constant { my ($criterion_id) = @_; my $path_template = 'geoTargetConstants/{criterion_id}'; return expand_path_template($path_template, [$criterion_id]); } # Returns the geographic_view resource name for the specified components. sub geographic_view { my ($customer_id, $country_criterion_id, $location_type) = @_; my $path_template = 'customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}'; return expand_path_template($path_template, [$customer_id, $country_criterion_id, $location_type]); } # Returns the goal resource name for the specified components. sub goal { my ($customer_id, $unified_goal_id) = @_; my $path_template = 'customers/{customer_id}/goals/{unified_goal_id}'; return expand_path_template($path_template, [$customer_id, $unified_goal_id]); } # Returns the google_ads_field resource name for the specified components. sub google_ads_field { my ($google_ads_field) = @_; my $path_template = 'googleAdsFields/{google_ads_field}'; return expand_path_template($path_template, [$google_ads_field]); } # Returns the group_content_suitability_placement_view resource name for the specified components. sub group_content_suitability_placement_view { my ($customer_id, $placement_fingerprint) = @_; my $path_template = 'customers/{customer_id}/groupContentSuitabilityPlacementViews/{placement_fingerprint}'; return expand_path_template($path_template, [$customer_id, $placement_fingerprint]); } # Returns the group_placement_view resource name for the specified components. sub group_placement_view { my ($customer_id, $ad_group_id, $base64_placement) = @_; my $path_template = 'customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $base64_placement]); } # Returns the hotel_group_view resource name for the specified components. sub hotel_group_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the hotel_performance_view resource name for the specified components. sub hotel_performance_view { my ($customer_id) = @_; my $path_template = 'customers/{customer_id}/hotelPerformanceView'; return expand_path_template($path_template, [$customer_id]); } # Returns the hotel_reconciliation resource name for the specified components. sub hotel_reconciliation { my ($customer_id, $commission_id) = @_; my $path_template = 'customers/{customer_id}/hotelReconciliations/{commission_id}'; return expand_path_template($path_template, [$customer_id, $commission_id]); } # Returns the income_range_view resource name for the specified components. sub income_range_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the invoice resource name for the specified components. sub invoice { my ($customer_id, $invoice_id) = @_; my $path_template = 'customers/{customer_id}/invoices/{invoice_id}'; return expand_path_template($path_template, [$customer_id, $invoice_id]); } # Returns the keyword_plan resource name for the specified components. sub keyword_plan { my ($customer_id, $keyword_plan_id) = @_; my $path_template = 'customers/{customer_id}/keywordPlans/{keyword_plan_id}'; return expand_path_template($path_template, [$customer_id, $keyword_plan_id]); } # Returns the keyword_plan_ad_group resource name for the specified components. sub keyword_plan_ad_group { my ($customer_id, $keyword_plan_ad_group_id) = @_; my $path_template = 'customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}'; return expand_path_template($path_template, [$customer_id, $keyword_plan_ad_group_id]); } # Returns the keyword_plan_ad_group_keyword resource name for the specified components. sub keyword_plan_ad_group_keyword { my ($customer_id, $keyword_plan_ad_group_keyword_id) = @_; my $path_template = 'customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}'; return expand_path_template($path_template, [$customer_id, $keyword_plan_ad_group_keyword_id]); } # Returns the keyword_plan_campaign resource name for the specified components. sub keyword_plan_campaign { my ($customer_id, $keyword_plan_campaign_id) = @_; my $path_template = 'customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}'; return expand_path_template($path_template, [$customer_id, $keyword_plan_campaign_id]); } # Returns the keyword_plan_campaign_keyword resource name for the specified components. sub keyword_plan_campaign_keyword { my ($customer_id, $keyword_plan_campaign_keyword_id) = @_; my $path_template = 'customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}'; return expand_path_template($path_template, [$customer_id, $keyword_plan_campaign_keyword_id]); } # Returns the keyword_theme_constant resource name for the specified components. sub keyword_theme_constant { my ($express_category_id, $express_sub_category_id) = @_; my $path_template = 'keywordThemeConstants/{express_category_id}~{express_sub_category_id}'; return expand_path_template($path_template, [$express_category_id, $express_sub_category_id]); } # Returns the keyword_view resource name for the specified components. sub keyword_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the label resource name for the specified components. sub label { my ($customer_id, $label_id) = @_; my $path_template = 'customers/{customer_id}/labels/{label_id}'; return expand_path_template($path_template, [$customer_id, $label_id]); } # Returns the landing_page_view resource name for the specified components. sub landing_page_view { my ($customer_id, $unexpanded_final_url_fingerprint) = @_; my $path_template = 'customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}'; return expand_path_template($path_template, [$customer_id, $unexpanded_final_url_fingerprint]); } # Returns the language_constant resource name for the specified components. sub language_constant { my ($criterion_id) = @_; my $path_template = 'languageConstants/{criterion_id}'; return expand_path_template($path_template, [$criterion_id]); } # Returns the lead_form_submission_data resource name for the specified components. sub lead_form_submission_data { my ($customer_id, $lead_form_user_submission_id) = @_; my $path_template = 'customers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}'; return expand_path_template($path_template, [$customer_id, $lead_form_user_submission_id]); } # Returns the life_event resource name for the specified components. sub life_event { my ($customer_id, $life_event_id) = @_; my $path_template = 'customers/{customer_id}/lifeEvents/{life_event_id}'; return expand_path_template($path_template, [$customer_id, $life_event_id]); } # Returns the lift_measurement_age_range resource name for the specified components. sub lift_measurement_age_range { my ($customer_id, $lift_measurement_configuration_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementAgeRanges/{lift_measurement_configuration_id}~{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id, $campaign_id, $criterion_id]); } # Returns the lift_measurement_campaign resource name for the specified components. sub lift_measurement_campaign { my ($customer_id, $lift_measurement_configuration_id, $campaign_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementCampaigns/{lift_measurement_configuration_id}~{campaign_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id, $campaign_id]); } # Returns the lift_measurement_config resource name for the specified components. sub lift_measurement_config { my ($customer_id, $lift_measurement_configuration_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementConfigs/{lift_measurement_configuration_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id]); } # Returns the lift_measurement_device resource name for the specified components. sub lift_measurement_device { my ($customer_id, $lift_measurement_configuration_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementDevices/{lift_measurement_configuration_id}~{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id, $campaign_id, $criterion_id]); } # Returns the lift_measurement_flight resource name for the specified components. sub lift_measurement_flight { my ($customer_id, $lift_measurement_configuration_id, $lift_measurement_flight_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementFlights/{lift_measurement_configuration_id}~{lift_measurement_flight_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id, $lift_measurement_flight_id]); } # Returns the lift_measurement_gender resource name for the specified components. sub lift_measurement_gender { my ($customer_id, $lift_measurement_configuration_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementGenders/{lift_measurement_configuration_id}~{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id, $campaign_id, $criterion_id]); } # Returns the lift_measurement_video resource name for the specified components. sub lift_measurement_video { my ($customer_id, $lift_measurement_configuration_id, $campaign_id, $external_video_id) = @_; my $path_template = 'customers/{customer_id}/liftMeasurementVideos/{lift_measurement_configuration_id}~{campaign_id}~{external_video_id}'; return expand_path_template($path_template, [$customer_id, $lift_measurement_configuration_id, $campaign_id, $external_video_id]); } # Returns the local_services_employee resource name for the specified components. sub local_services_employee { my ($customer_id, $gls_employee_id) = @_; my $path_template = 'customers/{customer_id}/localServicesEmployees/{gls_employee_id}'; return expand_path_template($path_template, [$customer_id, $gls_employee_id]); } # Returns the local_services_lead resource name for the specified components. sub local_services_lead { my ($customer_id, $local_services_lead_id) = @_; my $path_template = 'customers/{customer_id}/localServicesLeads/{local_services_lead_id}'; return expand_path_template($path_template, [$customer_id, $local_services_lead_id]); } # Returns the local_services_lead_conversation resource name for the specified components. sub local_services_lead_conversation { my ($customer_id, $local_services_lead_conversation_id) = @_; my $path_template = 'customers/{customer_id}/localServicesLeadConversations/{local_services_lead_conversation_id}'; return expand_path_template($path_template, [$customer_id, $local_services_lead_conversation_id]); } # Returns the local_services_verification_artifact resource name for the specified components. sub local_services_verification_artifact { my ($customer_id, $gls_verification_artifact_id) = @_; my $path_template = 'customers/{customer_id}/localServicesVerificationArtifacts/{gls_verification_artifact_id}'; return expand_path_template($path_template, [$customer_id, $gls_verification_artifact_id]); } # Returns the location_interest_view resource name for the specified components. sub location_interest_view { my ($customer_id, $campaign_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/locationInterestViews/{campaign_id}~{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $ad_group_id, $criterion_id]); } # Returns the location_view resource name for the specified components. sub location_view { my ($customer_id, $campaign_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $criterion_id]); } # Returns the managed_placement_view resource name for the specified components. sub managed_placement_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the matched_location_interest_view resource name for the specified components. sub matched_location_interest_view { my ($customer_id, $country_criterion_id) = @_; my $path_template = 'customers/{customer_id}/matchedLocationInterestViews/{country_criterion_id}'; return expand_path_template($path_template, [$customer_id, $country_criterion_id]); } # Returns the media_file resource name for the specified components. sub media_file { my ($customer_id, $media_file_id) = @_; my $path_template = 'customers/{customer_id}/mediaFiles/{media_file_id}'; return expand_path_template($path_template, [$customer_id, $media_file_id]); } # Returns the merchant_center_link resource name for the specified components. sub merchant_center_link { my ($customer_id, $merchant_center_id) = @_; my $path_template = 'customers/{customer_id}/merchantCenterLinks/{merchant_center_id}'; return expand_path_template($path_template, [$customer_id, $merchant_center_id]); } # Returns the mobile_app_category_constant resource name for the specified components. sub mobile_app_category_constant { my ($mobile_app_category_id) = @_; my $path_template = 'mobileAppCategoryConstants/{mobile_app_category_id}'; return expand_path_template($path_template, [$mobile_app_category_id]); } # Returns the mobile_device_constant resource name for the specified components. sub mobile_device_constant { my ($criterion_id) = @_; my $path_template = 'mobileDeviceConstants/{criterion_id}'; return expand_path_template($path_template, [$criterion_id]); } # Returns the multi_party_auth_review resource name for the specified components. sub multi_party_auth_review { my ($customer_id, $customer_invitation_id) = @_; my $path_template = 'customers/{customer_id}/multiPartyAuthReviews/{customer_invitation_id}'; return expand_path_template($path_template, [$customer_id, $customer_invitation_id]); } # Returns the offline_conversion_upload_client_summary resource name for the specified components. sub offline_conversion_upload_client_summary { my ($customer_id, $client) = @_; my $path_template = 'customers/{customer_id}/offlineConversionUploadClientSummaries/{client}'; return expand_path_template($path_template, [$customer_id, $client]); } # Returns the offline_conversion_upload_conversion_action_summary resource name for the specified components. sub offline_conversion_upload_conversion_action_summary { my ($customer_id, $conversion_type_id, $client) = @_; my $path_template = 'customers/{customer_id}/offlineConversionUploadConversionActionSummaries/{conversion_type_id}~{client}'; return expand_path_template($path_template, [$customer_id, $conversion_type_id, $client]); } # Returns the offline_user_data_job resource name for the specified components. sub offline_user_data_job { my ($customer_id, $offline_user_data_update_id) = @_; my $path_template = 'customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}'; return expand_path_template($path_template, [$customer_id, $offline_user_data_update_id]); } # Returns the operating_system_version_constant resource name for the specified components. sub operating_system_version_constant { my ($criterion_id) = @_; my $path_template = 'operatingSystemVersionConstants/{criterion_id}'; return expand_path_template($path_template, [$criterion_id]); } # Returns the paid_organic_search_term_view resource name for the specified components. sub paid_organic_search_term_view { my ($customer_id, $campaign_id, $ad_group_id, $base64_search_term) = @_; my $path_template = 'customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $ad_group_id, $base64_search_term]); } # Returns the parental_status_view resource name for the specified components. sub parental_status_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the payments_account resource name for the specified components. sub payments_account { my ($customer_id, $payments_account_id) = @_; my $path_template = 'customers/{customer_id}/paymentsAccounts/{payments_account_id}'; return expand_path_template($path_template, [$customer_id, $payments_account_id]); } # Returns the per_store_view resource name for the specified components. sub per_store_view { my ($customer_id, $place_id) = @_; my $path_template = 'customers/{customer_id}/perStoreViews/{place_id}'; return expand_path_template($path_template, [$customer_id, $place_id]); } # Returns the performance_max_placement_view resource name for the specified components. sub performance_max_placement_view { my ($customer_id, $base_64_placement) = @_; my $path_template = 'customers/{customer_id}/performanceMaxPlacementViews/{base_64_placement}'; return expand_path_template($path_template, [$customer_id, $base_64_placement]); } # Returns the product_category_constant resource name for the specified components. sub product_category_constant { my ($level, $category_id) = @_; my $path_template = 'productCategoryConstants/{level}~{category_id}'; return expand_path_template($path_template, [$level, $category_id]); } # Returns the product_group_view resource name for the specified components. sub product_group_view { my ($customer_id, $adgroup_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $adgroup_id, $criterion_id]); } # Returns the product_link resource name for the specified components. sub product_link { my ($customer_id, $product_link_id) = @_; my $path_template = 'customers/{customer_id}/productLinks/{product_link_id}'; return expand_path_template($path_template, [$customer_id, $product_link_id]); } # Returns the product_link_invitation resource name for the specified components. sub product_link_invitation { my ($customer_id, $customer_invitation_id) = @_; my $path_template = 'customers/{customer_id}/productLinkInvitations/{customer_invitation_id}'; return expand_path_template($path_template, [$customer_id, $customer_invitation_id]); } # Returns the qualifying_question resource name for the specified components. sub qualifying_question { my ($qualifying_question_id) = @_; my $path_template = 'qualifyingQuestions/{qualifying_question_id}'; return expand_path_template($path_template, [$qualifying_question_id]); } # Returns the recommendation resource name for the specified components. sub recommendation { my ($customer_id, $recommendation_id) = @_; my $path_template = 'customers/{customer_id}/recommendations/{recommendation_id}'; return expand_path_template($path_template, [$customer_id, $recommendation_id]); } # Returns the recommendation_subscription resource name for the specified components. sub recommendation_subscription { my ($customer_id, $recommendation_type) = @_; my $path_template = 'customers/{customer_id}/recommendationSubscriptions/{recommendation_type}'; return expand_path_template($path_template, [$customer_id, $recommendation_type]); } # Returns the remarketing_action resource name for the specified components. sub remarketing_action { my ($customer_id, $remarketing_action_id) = @_; my $path_template = 'customers/{customer_id}/remarketingActions/{remarketing_action_id}'; return expand_path_template($path_template, [$customer_id, $remarketing_action_id]); } # Returns the search_term_view resource name for the specified components. sub search_term_view { my ($customer_id, $campaign_id, $ad_group_id, $query) = @_; my $path_template = 'customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $ad_group_id, $query]); } # Returns the shared_criterion resource name for the specified components. sub shared_criterion { my ($customer_id, $shared_set_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $shared_set_id, $criterion_id]); } # Returns the shared_set resource name for the specified components. sub shared_set { my ($customer_id, $shared_set_id) = @_; my $path_template = 'customers/{customer_id}/sharedSets/{shared_set_id}'; return expand_path_template($path_template, [$customer_id, $shared_set_id]); } # Returns the shopping_performance_view resource name for the specified components. sub shopping_performance_view { my ($customer_id) = @_; my $path_template = 'customers/{customer_id}/shoppingPerformanceView'; return expand_path_template($path_template, [$customer_id]); } # Returns the shopping_product resource name for the specified components. sub shopping_product { my ($customer_id, $merchant_center_id, $channel, $language_code, $feed_label, $item_id) = @_; my $path_template = 'customers/{customer_id}/shoppingProducts/{merchant_center_id}~{channel}~{language_code}~{feed_label}~{item_id}'; return expand_path_template($path_template, [$customer_id, $merchant_center_id, $channel, $language_code, $feed_label, $item_id]); } # Returns the smart_campaign_search_term_view resource name for the specified components. sub smart_campaign_search_term_view { my ($customer_id, $campaign_id, $query) = @_; my $path_template = 'customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $query]); } # Returns the smart_campaign_setting resource name for the specified components. sub smart_campaign_setting { my ($customer_id, $campaign_id) = @_; my $path_template = 'customers/{customer_id}/smartCampaignSettings/{campaign_id}'; return expand_path_template($path_template, [$customer_id, $campaign_id]); } # Returns the targeting_expansion_view resource name for the specified components. sub targeting_expansion_view { my ($customer_id, $campaign_id, $targeting_expansion_type) = @_; my $path_template = 'customers/{customer_id}/targetingExpansionViews/{campaign_id}~{targeting_expansion_type}'; return expand_path_template($path_template, [$customer_id, $campaign_id, $targeting_expansion_type]); } # Returns the third_party_app_analytics_link resource name for the specified components. sub third_party_app_analytics_link { my ($customer_id, $customer_link_id) = @_; my $path_template = 'customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}'; return expand_path_template($path_template, [$customer_id, $customer_link_id]); } # Returns the topic_constant resource name for the specified components. sub topic_constant { my ($topic_id) = @_; my $path_template = 'topicConstants/{topic_id}'; return expand_path_template($path_template, [$topic_id]); } # Returns the topic_view resource name for the specified components. sub topic_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the travel_activity_group_view resource name for the specified components. sub travel_activity_group_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/travelActivityGroupViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the travel_activity_performance_view resource name for the specified components. sub travel_activity_performance_view { my ($customer_id) = @_; my $path_template = 'customers/{customer_id}/travelActivityPerformanceViews'; return expand_path_template($path_template, [$customer_id]); } # Returns the user_interest resource name for the specified components. sub user_interest { my ($customer_id, $user_interest_id) = @_; my $path_template = 'customers/{customer_id}/userInterests/{user_interest_id}'; return expand_path_template($path_template, [$customer_id, $user_interest_id]); } # Returns the user_list resource name for the specified components. sub user_list { my ($customer_id, $user_list_id) = @_; my $path_template = 'customers/{customer_id}/userLists/{user_list_id}'; return expand_path_template($path_template, [$customer_id, $user_list_id]); } # Returns the user_list_customer_type resource name for the specified components. sub user_list_customer_type { my ($customer_id, $user_list_id, $semantic_label) = @_; my $path_template = 'customers/{customer_id}/userListCustomerTypes/{user_list_id}~{semantic_label}'; return expand_path_template($path_template, [$customer_id, $user_list_id, $semantic_label]); } # Returns the user_location_view resource name for the specified components. sub user_location_view { my ($customer_id, $country_criterion_id, $is_targeting_location) = @_; my $path_template = 'customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}'; return expand_path_template($path_template, [$customer_id, $country_criterion_id, $is_targeting_location]); } # Returns the video resource name for the specified components. sub video { my ($customer_id, $video_id) = @_; my $path_template = 'customers/{customer_id}/videos/{video_id}'; return expand_path_template($path_template, [$customer_id, $video_id]); } # Returns the video_enhancement resource name for the specified components. sub video_enhancement { my ($customer_id, $video_enhancement) = @_; my $path_template = 'customers/{customer_id}/videoEnhancements/{video_enhancement}'; return expand_path_template($path_template, [$customer_id, $video_enhancement]); } # Returns the webpage_view resource name for the specified components. sub webpage_view { my ($customer_id, $ad_group_id, $criterion_id) = @_; my $path_template = 'customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}'; return expand_path_template($path_template, [$customer_id, $ad_group_id, $criterion_id]); } # Returns the you_tube_video_upload resource name for the specified components. sub you_tube_video_upload { my ($customer_id, $video_upload_id) = @_; my $path_template = 'customers/{customer_id}/youTubeVideoUploads/{video_upload_id}'; return expand_path_template($path_template, [$customer_id, $video_upload_id]); } 1;