Module: Google::Ads::GoogleAds::V14::Services::SharedCriterionService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v14/services/shared_criterion_service/paths.rb
Overview
Path helper methods for the SharedCriterionService API.
Instance Method Summary collapse
-
#shared_criterion_path(customer_id:, shared_set_id:, criterion_id:) ⇒ ::String
Create a fully-qualified SharedCriterion resource string.
-
#shared_set_path(customer_id:, shared_set_id:) ⇒ ::String
Create a fully-qualified SharedSet resource string.
Instance Method Details
#shared_criterion_path(customer_id:, shared_set_id:, criterion_id:) ⇒ ::String
Create a fully-qualified SharedCriterion resource string.
The resource will be in the following format:
‘customers/customer_id/sharedCriteria/shared_set_id~criterion_id`
40 41 42 43 44 45 |
# File 'lib/google/ads/google_ads/v14/services/shared_criterion_service/paths.rb', line 40 def shared_criterion_path customer_id:, shared_set_id:, criterion_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" raise ::ArgumentError, "shared_set_id cannot contain /" if shared_set_id.to_s.include? "/" "customers/#{customer_id}/sharedCriteria/#{shared_set_id}~#{criterion_id}" end |
#shared_set_path(customer_id:, shared_set_id:) ⇒ ::String
Create a fully-qualified SharedSet resource string.
The resource will be in the following format:
‘customers/customer_id/sharedSets/shared_set_id`
58 59 60 61 62 |
# File 'lib/google/ads/google_ads/v14/services/shared_criterion_service/paths.rb', line 58 def shared_set_path customer_id:, shared_set_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/sharedSets/#{shared_set_id}" end |