Module: Google::Ads::GoogleAds::V13::Services::CustomerConversionGoalService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v13/services/customer_conversion_goal_service/paths.rb
Overview
Path helper methods for the CustomerConversionGoalService API.
Instance Method Summary collapse
-
#customer_conversion_goal_path(customer_id:, category:, source:) ⇒ ::String
Create a fully-qualified CustomerConversionGoal resource string.
Instance Method Details
#customer_conversion_goal_path(customer_id:, category:, source:) ⇒ ::String
Create a fully-qualified CustomerConversionGoal resource string.
The resource will be in the following format:
‘customers/customer_id/customerConversionGoals/category~source`
40 41 42 43 44 45 |
# File 'lib/google/ads/google_ads/v13/services/customer_conversion_goal_service/paths.rb', line 40 def customer_conversion_goal_path customer_id:, category:, source: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/" "customers/#{customer_id}/customerConversionGoals/#{category}~#{source}" end |