Module: Google::Ads::GoogleAds::V15::Services::ConversionValueRuleService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb
Overview
Path helper methods for the ConversionValueRuleService API.
Instance Method Summary collapse
-
#conversion_value_rule_path(customer_id:, conversion_value_rule_id:) ⇒ ::String
Create a fully-qualified ConversionValueRule resource string.
-
#customer_path(customer_id:) ⇒ ::String
Create a fully-qualified Customer resource string.
-
#geo_target_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified GeoTargetConstant resource string.
-
#user_interest_path(customer_id:, user_interest_id:) ⇒ ::String
Create a fully-qualified UserInterest resource string.
-
#user_list_path(customer_id:, user_list_id:) ⇒ ::String
Create a fully-qualified UserList resource string.
Instance Method Details
#conversion_value_rule_path(customer_id:, conversion_value_rule_id:) ⇒ ::String
Create a fully-qualified ConversionValueRule resource string.
The resource will be in the following format:
‘customers/customer_id/conversionValueRules/conversion_value_rule_id`
39 40 41 42 43 |
# File 'lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb', line 39 def conversion_value_rule_path customer_id:, conversion_value_rule_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/conversionValueRules/#{conversion_value_rule_id}" end |
#customer_path(customer_id:) ⇒ ::String
Create a fully-qualified Customer resource string.
The resource will be in the following format:
‘customers/customer_id`
55 56 57 |
# File 'lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb', line 55 def customer_path customer_id: "customers/#{customer_id}" end |
#geo_target_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified GeoTargetConstant resource string.
The resource will be in the following format:
‘geoTargetConstants/criterion_id`
69 70 71 |
# File 'lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb', line 69 def geo_target_constant_path criterion_id: "geoTargetConstants/#{criterion_id}" end |
#user_interest_path(customer_id:, user_interest_id:) ⇒ ::String
Create a fully-qualified UserInterest resource string.
The resource will be in the following format:
‘customers/customer_id/userInterests/user_interest_id`
84 85 86 87 88 |
# File 'lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb', line 84 def user_interest_path customer_id:, user_interest_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/userInterests/#{user_interest_id}" end |
#user_list_path(customer_id:, user_list_id:) ⇒ ::String
Create a fully-qualified UserList resource string.
The resource will be in the following format:
‘customers/customer_id/userLists/user_list_id`
101 102 103 104 105 |
# File 'lib/google/ads/google_ads/v15/services/conversion_value_rule_service/paths.rb', line 101 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 |