Module: Google::Ads::AdManager::V1::AdReviewCenterAdService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/ad_review_center_ad_service/paths.rb
Overview
Path helper methods for the AdReviewCenterAdService API.
Instance Method Summary collapse
-
#ad_review_center_ad_path(network_code:, web_property_code:, ad_review_center_ad:) ⇒ ::String
Create a fully-qualified AdReviewCenterAd resource string.
-
#web_property_path(network_code:, web_property:) ⇒ ::String
Create a fully-qualified WebProperty resource string.
Instance Method Details
#ad_review_center_ad_path(network_code:, web_property_code:, ad_review_center_ad:) ⇒ ::String
Create a fully-qualified AdReviewCenterAd resource string.
The resource will be in the following format:
networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}
39 40 41 42 43 44 |
# File 'lib/google/ads/ad_manager/v1/ad_review_center_ad_service/paths.rb', line 39 def ad_review_center_ad_path network_code:, web_property_code:, ad_review_center_ad: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" raise ::ArgumentError, "web_property_code cannot contain /" if web_property_code.to_s.include? "/" "networks/#{network_code}/webProperties/#{web_property_code}/adReviewCenterAds/#{ad_review_center_ad}" end |
#web_property_path(network_code:, web_property:) ⇒ ::String
Create a fully-qualified WebProperty resource string.
The resource will be in the following format:
networks/{network_code}/webProperties/{web_property}
57 58 59 60 61 |
# File 'lib/google/ads/ad_manager/v1/ad_review_center_ad_service/paths.rb', line 57 def web_property_path network_code:, web_property: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/webProperties/#{web_property}" end |