module Google::Ads::GoogleAds::V8::Services::CustomerNegativeCriterionService::Paths

Path helper methods for the CustomerNegativeCriterionService API.

Public Instance Methods

customer_negative_criterion_path(customer_id:, criterion_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified CustomerNegativeCriterion resource string.

The resource will be in the following format:

`customers/{customer_id}/customerNegativeCriteria/{criterion_id}`

@param customer_id [String] @param criterion_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/customer_negative_criterion_service/paths.rb, line 39
def customer_negative_criterion_path customer_id:, criterion_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"

  "customers/#{customer_id}/customerNegativeCriteria/#{criterion_id}"
end