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