Module: Google::Ads::GoogleAds::V5::Services::CustomerFeedService::Paths

Extended by:
Paths
Included in:
Client, Paths
Defined in:
lib/google/ads/google_ads/v5/services/customer_feed_service/paths.rb

Overview

Path helper methods for the CustomerFeedService API.

Instance Method Summary collapse

Instance Method Details

#customer_feed_path(customer:, customer_feed:) ⇒ ::String

Create a fully-qualified CustomerFeed resource string.

The resource will be in the following format:

‘customers/customer/customerFeeds/customer_feed`

Parameters:

  • customer (String)
  • customer_feed (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


39
40
41
42
43
# File 'lib/google/ads/google_ads/v5/services/customer_feed_service/paths.rb', line 39

def customer_feed_path customer:, customer_feed:
  raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"

  "customers/#{customer}/customerFeeds/#{customer_feed}"
end

#feed_path(customer:, feed:) ⇒ ::String

Create a fully-qualified Feed resource string.

The resource will be in the following format:

‘customers/customer/feeds/feed`

Parameters:

  • customer (String)
  • feed (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


56
57
58
59
60
# File 'lib/google/ads/google_ads/v5/services/customer_feed_service/paths.rb', line 56

def feed_path customer:, feed:
  raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"

  "customers/#{customer}/feeds/#{feed}"
end