Module: Google::Ads::GoogleAds::V17::Services::FeedItemSetLinkService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/ads/google_ads/v17/services/feed_item_set_link_service/paths.rb
Overview
Path helper methods for the FeedItemSetLinkService API.
Instance Method Summary collapse
-
#feed_item_path(customer_id:, feed_id:, feed_item_id:) ⇒ ::String
Create a fully-qualified FeedItem resource string.
-
#feed_item_set_link_path(customer_id:, feed_id:, feed_item_set_id:, feed_item_id:) ⇒ ::String
Create a fully-qualified FeedItemSetLink resource string.
-
#feed_item_set_path(customer_id:, feed_id:, feed_item_set_id:) ⇒ ::String
Create a fully-qualified FeedItemSet resource string.
Instance Method Details
#feed_item_path(customer_id:, feed_id:, feed_item_id:) ⇒ ::String
Create a fully-qualified FeedItem resource string.
The resource will be in the following format:
‘customers/customer_id/feedItems/feed_id~feed_item_id`
40 41 42 43 44 45 |
# File 'lib/google/ads/google_ads/v17/services/feed_item_set_link_service/paths.rb', line 40 def feed_item_path customer_id:, feed_id:, feed_item_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" "customers/#{customer_id}/feedItems/#{feed_id}~#{feed_item_id}" end |
#feed_item_set_link_path(customer_id:, feed_id:, feed_item_set_id:, feed_item_id:) ⇒ ::String
Create a fully-qualified FeedItemSetLink resource string.
The resource will be in the following format:
‘customers/customer_id/feedItemSetLinks/feed_id~feed_item_set_id~feed_item_id`
79 80 81 82 83 84 85 |
# File 'lib/google/ads/google_ads/v17/services/feed_item_set_link_service/paths.rb', line 79 def feed_item_set_link_path customer_id:, feed_id:, feed_item_set_id:, feed_item_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" raise ::ArgumentError, "feed_item_set_id cannot contain /" if feed_item_set_id.to_s.include? "/" "customers/#{customer_id}/feedItemSetLinks/#{feed_id}~#{feed_item_set_id}~#{feed_item_id}" end |
#feed_item_set_path(customer_id:, feed_id:, feed_item_set_id:) ⇒ ::String
Create a fully-qualified FeedItemSet resource string.
The resource will be in the following format:
‘customers/customer_id/feedItemSets/feed_id~feed_item_set_id`
59 60 61 62 63 64 |
# File 'lib/google/ads/google_ads/v17/services/feed_item_set_link_service/paths.rb', line 59 def feed_item_set_path customer_id:, feed_id:, feed_item_set_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" raise ::ArgumentError, "feed_id cannot contain /" if feed_id.to_s.include? "/" "customers/#{customer_id}/feedItemSets/#{feed_id}~#{feed_item_set_id}" end |