module Google::Ads::GoogleAds::V7::Services::UserLocationViewService::Paths

Path helper methods for the UserLocationViewService API.

Public Instance Methods

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

Create a fully-qualified UserLocationView resource string.

The resource will be in the following format:

`customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}`

@param customer_id [String] @param country_criterion_id [String] @param is_targeting_location [String]

@return [::String]

# File lib/google/ads/google_ads/v7/services/user_location_view_service/paths.rb, line 40
def user_location_view_path customer_id:, country_criterion_id:, is_targeting_location:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"
  raise ::ArgumentError, "country_criterion_id cannot contain /" if country_criterion_id.to_s.include? "/"

  "customers/#{customer_id}/userLocationViews/#{country_criterion_id}~#{is_targeting_location}"
end