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

Path helper methods for the ClickViewService API.

Public Instance Methods

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

Create a fully-qualified AdGroupAd resource string.

The resource will be in the following format:

`customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`

@param customer_id [String] @param ad_group_id [String] @param ad_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/click_view_service/paths.rb, line 40
def ad_group_ad_path customer_id:, ad_group_id:, ad_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"
  raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/"

  "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}"
end
ad_group_criterion_path(customer_id:, ad_group_id:, criterion_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified AdGroupCriterion resource string.

The resource will be in the following format:

`customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}`

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

@return [::String]

# File lib/google/ads/google_ads/v8/services/click_view_service/paths.rb, line 59
def ad_group_criterion_path customer_id:, ad_group_id:, criterion_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"
  raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/"

  "customers/#{customer_id}/adGroupCriteria/#{ad_group_id}~#{criterion_id}"
end
click_view_path(customer_id:, date:, gclid: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified ClickView resource string.

The resource will be in the following format:

`customers/{customer_id}/clickViews/{date}~{gclid}`

@param customer_id [String] @param date [String] @param gclid [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/click_view_service/paths.rb, line 78
def click_view_path customer_id:, date:, gclid:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"
  raise ::ArgumentError, "date cannot contain /" if date.to_s.include? "/"

  "customers/#{customer_id}/clickViews/#{date}~#{gclid}"
end
geo_target_constant_path(criterion_id: "geoTargetConstants/ click to toggle source

Create a fully-qualified GeoTargetConstant resource string.

The resource will be in the following format:

`geoTargetConstants/{criterion_id}`

@param criterion_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/click_view_service/paths.rb, line 95
def geo_target_constant_path criterion_id:
  "geoTargetConstants/#{criterion_id}"
end
user_list_path(customer_id:, user_list_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified UserList resource string.

The resource will be in the following format:

`customers/{customer_id}/userLists/{user_list_id}`

@param customer_id [String] @param user_list_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/services/click_view_service/paths.rb, line 110
def user_list_path customer_id:, user_list_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"

  "customers/#{customer_id}/userLists/#{user_list_id}"
end