Module: Google::Ads::AdManager::V1::AdBreakService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/ad_break_service/paths.rb
Overview
Path helper methods for the AdBreakService API.
Instance Method Summary collapse
-
#ad_break_path(network_code:, asset_key:, ad_break:) ⇒ ::String
Create a fully-qualified AdBreak resource string.
-
#live_stream_event_path(network_code:, live_stream_event:) ⇒ ::String
Create a fully-qualified LiveStreamEvent resource string.
Instance Method Details
#ad_break_path(network_code:, asset_key:, ad_break:) ⇒ ::String
Create a fully-qualified AdBreak resource string.
The resource will be in the following format:
networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}
39 40 41 42 43 44 |
# File 'lib/google/ads/ad_manager/v1/ad_break_service/paths.rb', line 39 def ad_break_path network_code:, asset_key:, ad_break: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" raise ::ArgumentError, "asset_key cannot contain /" if asset_key.to_s.include? "/" "networks/#{network_code}/liveStreamEventsByAssetKey/#{asset_key}/adBreaks/#{ad_break}" end |
#live_stream_event_path(network_code:, live_stream_event:) ⇒ ::String
Create a fully-qualified LiveStreamEvent resource string.
The resource will be in the following format:
networks/{network_code}/liveStreamEvents/{live_stream_event}
57 58 59 60 61 |
# File 'lib/google/ads/ad_manager/v1/ad_break_service/paths.rb', line 57 def live_stream_event_path network_code:, live_stream_event: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/liveStreamEvents/#{live_stream_event}" end |