Module: Google::Ads::GoogleAds::V5::Services::AssetService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v5/services/asset_service/paths.rb
Overview
Path helper methods for the AssetService API.
Instance Method Summary collapse
-
#asset_path(customer:, asset:) ⇒ ::String
Create a fully-qualified Asset resource string.
Instance Method Details
#asset_path(customer:, asset:) ⇒ ::String
Create a fully-qualified Asset resource string.
The resource will be in the following format:
‘customers/customer/assets/asset`
39 40 41 42 43 |
# File 'lib/google/ads/google_ads/v5/services/asset_service/paths.rb', line 39 def asset_path customer:, asset: raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/" "customers/#{customer}/assets/#{asset}" end |