module Google::Ads::GoogleAds::V8::Services::KeywordPlanCampaignService::Paths

Path helper methods for the KeywordPlanCampaignService API.

Public Instance Methods

geo_target_constant_path(criterion_id: "geoTargetConstants/ click to toggle source

Create a fully-qualified GeoTargetConstant resource string.

The resource will be in the following format:

`geoTargetConstants/{criterion_id}`

@param criterion_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/keyword_plan_campaign_service/paths.rb, line 38
def geo_target_constant_path criterion_id:
  "geoTargetConstants/#{criterion_id}"
end
keyword_plan_campaign_path(customer_id:, keyword_plan_campaign_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified KeywordPlanCampaign resource string.

The resource will be in the following format:

`customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}`

@param customer_id [String] @param keyword_plan_campaign_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/keyword_plan_campaign_service/paths.rb, line 70
def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"

  "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}"
end
keyword_plan_path(customer_id:, keyword_plan_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified KeywordPlan resource string.

The resource will be in the following format:

`customers/{customer_id}/keywordPlans/{keyword_plan_id}`

@param customer_id [String] @param keyword_plan_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/keyword_plan_campaign_service/paths.rb, line 53
def keyword_plan_path customer_id:, keyword_plan_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"

  "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}"
end
language_constant_path(criterion_id: "languageConstants/ click to toggle source

Create a fully-qualified LanguageConstant resource string.

The resource will be in the following format:

`languageConstants/{criterion_id}`

@param criterion_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/keyword_plan_campaign_service/paths.rb, line 86
def language_constant_path criterion_id:
  "languageConstants/#{criterion_id}"
end