Module: Google::Ads::GoogleAds::V15::Services::ExtensionFeedItemService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb
Overview
Path helper methods for the ExtensionFeedItemService API.
Instance Method Summary collapse
-
#ad_group_path(customer_id:, ad_group_id:) ⇒ ::String
Create a fully-qualified AdGroup resource string.
-
#asset_path(customer_id:, asset_id:) ⇒ ::String
Create a fully-qualified Asset resource string.
-
#campaign_path(customer_id:, campaign_id:) ⇒ ::String
Create a fully-qualified Campaign resource string.
-
#extension_feed_item_path(customer_id:, feed_item_id:) ⇒ ::String
Create a fully-qualified ExtensionFeedItem resource string.
-
#geo_target_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified GeoTargetConstant resource string.
Instance Method Details
#ad_group_path(customer_id:, ad_group_id:) ⇒ ::String
Create a fully-qualified AdGroup resource string.
The resource will be in the following format:
‘customers/customer_id/adGroups/ad_group_id`
39 40 41 42 43 |
# File 'lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb', line 39 def ad_group_path customer_id:, ad_group_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/adGroups/#{ad_group_id}" end |
#asset_path(customer_id:, asset_id:) ⇒ ::String
Create a fully-qualified Asset resource string.
The resource will be in the following format:
‘customers/customer_id/assets/asset_id`
56 57 58 59 60 |
# File 'lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb', line 56 def asset_path customer_id:, asset_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/assets/#{asset_id}" end |
#campaign_path(customer_id:, campaign_id:) ⇒ ::String
Create a fully-qualified Campaign resource string.
The resource will be in the following format:
‘customers/customer_id/campaigns/campaign_id`
73 74 75 76 77 |
# File 'lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb', line 73 def campaign_path customer_id:, campaign_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/campaigns/#{campaign_id}" end |
#extension_feed_item_path(customer_id:, feed_item_id:) ⇒ ::String
Create a fully-qualified ExtensionFeedItem resource string.
The resource will be in the following format:
‘customers/customer_id/extensionFeedItems/feed_item_id`
90 91 92 93 94 |
# File 'lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb', line 90 def extension_feed_item_path customer_id:, feed_item_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" "customers/#{customer_id}/extensionFeedItems/#{feed_item_id}" end |
#geo_target_constant_path(criterion_id:) ⇒ ::String
Create a fully-qualified GeoTargetConstant resource string.
The resource will be in the following format:
‘geoTargetConstants/criterion_id`
106 107 108 |
# File 'lib/google/ads/google_ads/v15/services/extension_feed_item_service/paths.rb', line 106 def geo_target_constant_path criterion_id: "geoTargetConstants/#{criterion_id}" end |