Module: Google::Ads::AdManager::V1::PlacementService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/placement_service/paths.rb
Overview
Path helper methods for the PlacementService API.
Instance Method Summary collapse
-
#ad_unit_path(network_code:, ad_unit:) ⇒ ::String
Create a fully-qualified AdUnit resource string.
-
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
-
#placement_path(network_code:, placement:) ⇒ ::String
Create a fully-qualified Placement resource string.
Instance Method Details
#ad_unit_path(network_code:, ad_unit:) ⇒ ::String
Create a fully-qualified AdUnit resource string.
The resource will be in the following format:
networks/{network_code}/adUnits/{ad_unit}
38 39 40 41 42 |
# File 'lib/google/ads/ad_manager/v1/placement_service/paths.rb', line 38 def ad_unit_path network_code:, ad_unit: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/adUnits/#{ad_unit}" 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/placement_service/paths.rb', line 54 def network_path network_code: "networks/#{network_code}" end |
#placement_path(network_code:, placement:) ⇒ ::String
Create a fully-qualified Placement resource string.
The resource will be in the following format:
networks/{network_code}/placements/{placement}
69 70 71 72 73 |
# File 'lib/google/ads/ad_manager/v1/placement_service/paths.rb', line 69 def placement_path network_code:, placement: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/placements/#{placement}" end |