Module: Google::Ads::AdManager::V1::PrivateAuctionService::Paths

Extended by:
Paths
Included in:
Paths, Rest::Client
Defined in:
lib/google/ads/ad_manager/v1/private_auction_service/paths.rb

Overview

Path helper methods for the PrivateAuctionService API.

Instance Method Summary collapse

Instance Method Details

#network_path(network_code:) ⇒ ::String

Create a fully-qualified Network resource string.

The resource will be in the following format:

networks/{network_code}

Parameters:

  • network_code (String)

Returns:

  • (::String)


37
38
39
# File 'lib/google/ads/ad_manager/v1/private_auction_service/paths.rb', line 37

def network_path network_code:
  "networks/#{network_code}"
end

#private_auction_path(network_code:, private_auction:) ⇒ ::String

Create a fully-qualified PrivateAuction resource string.

The resource will be in the following format:

networks/{network_code}/privateAuctions/{private_auction}

Parameters:

  • network_code (String)
  • private_auction (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


52
53
54
55
56
# File 'lib/google/ads/ad_manager/v1/private_auction_service/paths.rb', line 52

def private_auction_path network_code:, private_auction:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/privateAuctions/#{private_auction}"
end

#user_path(network_code:, user:) ⇒ ::String

Create a fully-qualified User resource string.

The resource will be in the following format:

networks/{network_code}/users/{user}

Parameters:

  • network_code (String)
  • user (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


69
70
71
72
73
# File 'lib/google/ads/ad_manager/v1/private_auction_service/paths.rb', line 69

def user_path network_code:, user:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/users/#{user}"
end