Module: Google::Ads::GoogleAds::V22::Services::AssetGenerationService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v22/services/asset_generation_service/paths.rb
Overview
Path helper methods for the AssetGenerationService API.
Instance Method Summary collapse
-
#ad_group_ad_path(customer_id:, ad_group_id:, ad_id:) ⇒ ::String
Create a fully-qualified AdGroupAd resource string.
-
#asset_group_path(customer_id:, asset_group_id:) ⇒ ::String
Create a fully-qualified AssetGroup resource string.
Instance Method Details
#ad_group_ad_path(customer_id:, ad_group_id:, ad_id:) ⇒ ::String
Create a fully-qualified AdGroupAd resource string.
The resource will be in the following format:
‘customers/customer_id/adGroupAds/ad_group_id~ad_id`
40 41 42 43 44 45 |
# File 'lib/google/ads/google_ads/v22/services/asset_generation_service/paths.rb', line 40 def ad_group_ad_path customer_id:, ad_group_id:, ad_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" raise ::ArgumentError, "ad_group_id cannot contain /" if ad_group_id.to_s.include? "/" "customers/#{customer_id}/adGroupAds/#{ad_group_id}~#{ad_id}" end |
#asset_group_path(customer_id:, asset_group_id:) ⇒ ::String
Create a fully-qualified AssetGroup resource string.
The resource will be in the following format:
‘customers/customer_id/assetGroups/asset_group_id`
58 59 60 61 62 |
# File 'lib/google/ads/google_ads/v22/services/asset_generation_service/paths.rb', line 58 def asset_group_path customer_id:, asset_group_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/assetGroups/#{asset_group_id}" end |