module Google::Ads::GoogleAds::V8::Services::FeedItemSetLinkService::Paths

Path helper methods for the FeedItemSetLinkService API.

Public Instance Methods

feed_item_path(customer_id:, feed_id:, feed_item_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

Create a fully-qualified FeedItem resource string.

The resource will be in the following format:

`customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`

@param customer_id [String] @param feed_id [String] @param feed_item_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/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_path(customer_id:, feed_id:, feed_item_set_id: raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/") click to toggle source

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}`

@param customer_id [String] @param feed_id [String] @param feed_item_set_id [String]

@return [::String]

# File lib/google/ads/google_ads/v8/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