Module: Google::Ads::GoogleAds::V16::Services::KeywordPlanCampaignService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v16/services/keyword_plan_campaign_service/paths.rb
Overview
Path helper methods for the KeywordPlanCampaignService API.
Instance Method Summary collapse
-
#geo_target_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified GeoTargetConstant resource string.
-
#keyword_plan_campaign_path(customer_id:, keyword_plan_campaign_id:) ⇒ ::String
Create a fully-qualified KeywordPlanCampaign resource string.
-
#keyword_plan_path(customer_id:, keyword_plan_id:) ⇒ ::String
Create a fully-qualified KeywordPlan resource string.
-
#language_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified LanguageConstant resource string.
Instance Method Details
#geo_target_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified GeoTargetConstant resource string.
The resource will be in the following format:
‘geoTargetConstants/criterion_id`
38 39 40 |
# File 'lib/google/ads/google_ads/v16/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:) ⇒ ::String
Create a fully-qualified KeywordPlanCampaign resource string.
The resource will be in the following format:
‘customers/customer_id/keywordPlanCampaigns/keyword_plan_campaign_id`
70 71 72 73 74 |
# File 'lib/google/ads/google_ads/v16/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:) ⇒ ::String
Create a fully-qualified KeywordPlan resource string.
The resource will be in the following format:
‘customers/customer_id/keywordPlans/keyword_plan_id`
53 54 55 56 57 |
# File 'lib/google/ads/google_ads/v16/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:) ⇒ ::String
Create a fully-qualified LanguageConstant resource string.
The resource will be in the following format:
‘languageConstants/criterion_id`
86 87 88 |
# File 'lib/google/ads/google_ads/v16/services/keyword_plan_campaign_service/paths.rb', line 86 def language_constant_path criterion_id: "languageConstants/#{criterion_id}" end |