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

Path helper methods for the GeographicViewService API.

Public Instance Methods

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

Create a fully-qualified GeographicView resource string.

The resource will be in the following format:

`customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`

@param customer_id [String] @param country_criterion_id [String] @param location_type [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/geographic_view_service/paths.rb, line 40
def geographic_view_path customer_id:, country_criterion_id:, location_type:
  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}/geographicViews/#{country_criterion_id}~#{location_type}"
end