Module: Google::Ads::GoogleAds::V15::Services::SharedCriterionService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb
Overview
Path helper methods for the SharedCriterionService API.
Instance Method Summary collapse
-
#mobile_app_category_constant_path(mobile_app_category_id:) ⇒ ::String
Create a fully-qualified MobileAppCategoryConstant resource string.
-
#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
#mobile_app_category_constant_path(mobile_app_category_id:) ⇒ ::String
Create a fully-qualified MobileAppCategoryConstant resource string.
The resource will be in the following format:
‘mobileAppCategoryConstants/mobile_app_category_id`
38 39 40 |
# File 'lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb', line 38 def mobile_app_category_constant_path mobile_app_category_id: "mobileAppCategoryConstants/#{mobile_app_category_id}" end |
#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`
54 55 56 57 58 59 |
# File 'lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb', line 54 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`
72 73 74 75 76 |
# File 'lib/google/ads/google_ads/v15/services/shared_criterion_service/paths.rb', line 72 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 |