Module: Google::Ads::AdManager::V1::DeviceCategoryService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/device_category_service/paths.rb
Overview
Path helper methods for the DeviceCategoryService API.
Instance Method Summary collapse
-
#device_category_path(network_code:, device_category:) ⇒ ::String
Create a fully-qualified DeviceCategory resource string.
-
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
Instance Method Details
#device_category_path(network_code:, device_category:) ⇒ ::String
Create a fully-qualified DeviceCategory resource string.
The resource will be in the following format:
networks/{network_code}/deviceCategories/{device_category}
38 39 40 41 42 |
# File 'lib/google/ads/ad_manager/v1/device_category_service/paths.rb', line 38 def device_category_path network_code:, device_category: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/deviceCategories/#{device_category}" end |
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
The resource will be in the following format:
networks/{network_code}
54 55 56 |
# File 'lib/google/ads/ad_manager/v1/device_category_service/paths.rb', line 54 def network_path network_code: "networks/#{network_code}" end |