Module: Google::Ads::AdManager::V1::CustomTargetingValueService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/custom_targeting_value_service/paths.rb
Overview
Path helper methods for the CustomTargetingValueService API.
Instance Method Summary collapse
-
#custom_targeting_key_path(network_code:, custom_targeting_key:) ⇒ ::String
Create a fully-qualified CustomTargetingKey resource string.
-
#custom_targeting_value_path(network_code:, custom_targeting_key:, custom_targeting_value:) ⇒ ::String
Create a fully-qualified CustomTargetingValue resource string.
Instance Method Details
#custom_targeting_key_path(network_code:, custom_targeting_key:) ⇒ ::String
Create a fully-qualified CustomTargetingKey resource string.
The resource will be in the following format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key}
38 39 40 41 42 |
# File 'lib/google/ads/ad_manager/v1/custom_targeting_value_service/paths.rb', line 38 def custom_targeting_key_path network_code:, custom_targeting_key: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/customTargetingKeys/#{custom_targeting_key}" end |
#custom_targeting_value_path(network_code:, custom_targeting_key:, custom_targeting_value:) ⇒ ::String
Create a fully-qualified CustomTargetingValue resource string.
The resource will be in the following format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}
56 57 58 59 60 61 |
# File 'lib/google/ads/ad_manager/v1/custom_targeting_value_service/paths.rb', line 56 def custom_targeting_value_path network_code:, custom_targeting_key:, custom_targeting_value: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" raise ::ArgumentError, "custom_targeting_key cannot contain /" if custom_targeting_key.to_s.include? "/" "networks/#{network_code}/customTargetingKeys/#{custom_targeting_key}/customTargetingValues/#{custom_targeting_value}" end |