module Google::Ads::GoogleAds::V8::Services::SharedCriterionService::Paths
Path helper methods for the SharedCriterionService
API.
Public Instance Methods
shared_criterion_path(customer_id:, shared_set_id:, criterion_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/")
click to toggle source
Create a fully-qualified SharedCriterion resource string.
The resource will be in the following format:
`customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}`
@param customer_id [String] @param shared_set_id [String] @param criterion_id [String]
@return [::String]
# File lib/google/ads/google_ads/v8/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: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/")
click to toggle source
Create a fully-qualified SharedSet resource string.
The resource will be in the following format:
`customers/{customer_id}/sharedSets/{shared_set_id}`
@param customer_id [String] @param shared_set_id [String]
@return [::String]
# File lib/google/ads/google_ads/v8/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