Module: Google::Ads::AdManager::V1::PrivateAuctionDealService::Paths

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

Overview

Path helper methods for the PrivateAuctionDealService API.

Instance Method Summary collapse

Instance Method Details

#ad_unit_path(network_code:, ad_unit:) ⇒ ::String

Create a fully-qualified AdUnit resource string.

The resource will be in the following format:

networks/{network_code}/adUnits/{ad_unit}

Parameters:

  • network_code (String)
  • ad_unit (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


38
39
40
41
42
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 38

def ad_unit_path network_code:, ad_unit:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/adUnits/#{ad_unit}"
end

#bandwidth_group_path(network_code:, bandwidth_group:) ⇒ ::String

Create a fully-qualified BandwidthGroup resource string.

The resource will be in the following format:

networks/{network_code}/bandwidthGroups/{bandwidth_group}

Parameters:

  • network_code (String)
  • bandwidth_group (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


55
56
57
58
59
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 55

def bandwidth_group_path network_code:, bandwidth_group:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/bandwidthGroups/#{bandwidth_group}"
end

#custom_targeting_key_path(network_code:, custom_targeting_key:) ⇒ ::String

Create a fully-qualified CustomTargetingKey resource string.

The resource will be in the following format:

networks/{network_code}/customTargetingKeys/{custom_targeting_key}

Parameters:

  • network_code (String)
  • custom_targeting_key (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


72
73
74
75
76
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 72

def custom_targeting_key_path network_code:, custom_targeting_key:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/customTargetingKeys/#{custom_targeting_key}"
end

#custom_targeting_value_path(network_code:, custom_targeting_value:) ⇒ ::String

Create a fully-qualified CustomTargetingValue resource string.

The resource will be in the following format:

networks/{network_code}/customTargetingValues/{custom_targeting_value}

Parameters:

  • network_code (String)
  • custom_targeting_value (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


89
90
91
92
93
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 89

def custom_targeting_value_path network_code:, custom_targeting_value:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/customTargetingValues/#{custom_targeting_value}"
end

#device_category_path(network_code:, device_category:) ⇒ ::String

Create a fully-qualified DeviceCategory resource string.

The resource will be in the following format:

networks/{network_code}/deviceCategories/{device_category}

Parameters:

  • network_code (String)
  • device_category (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


106
107
108
109
110
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 106

def device_category_path network_code:, device_category:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/deviceCategories/#{device_category}"
end

#geo_target_path(network_code:, geo_target:) ⇒ ::String

Create a fully-qualified GeoTarget resource string.

The resource will be in the following format:

networks/{network_code}/geoTargets/{geo_target}

Parameters:

  • network_code (String)
  • geo_target (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


123
124
125
126
127
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 123

def geo_target_path network_code:, geo_target:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/geoTargets/#{geo_target}"
end

#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)


139
140
141
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 139

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

#operating_system_path(network_code:, operating_system:) ⇒ ::String

Create a fully-qualified OperatingSystem resource string.

The resource will be in the following format:

networks/{network_code}/operatingSystems/{operating_system}

Parameters:

  • network_code (String)
  • operating_system (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


154
155
156
157
158
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 154

def operating_system_path network_code:, operating_system:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/operatingSystems/#{operating_system}"
end

#operating_system_version_path(network_code:, operating_system_version:) ⇒ ::String

Create a fully-qualified OperatingSystemVersion resource string.

The resource will be in the following format:

networks/{network_code}/operatingSystemVersions/{operating_system_version}

Parameters:

  • network_code (String)
  • operating_system_version (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


171
172
173
174
175
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 171

def operating_system_version_path network_code:, operating_system_version:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/operatingSystemVersions/#{operating_system_version}"
end

#placement_path(network_code:, placement:) ⇒ ::String

Create a fully-qualified Placement resource string.

The resource will be in the following format:

networks/{network_code}/placements/{placement}

Parameters:

  • network_code (String)
  • placement (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


188
189
190
191
192
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 188

def placement_path network_code:, placement:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/placements/#{placement}"
end

#private_auction_deal_path(network_code:, private_auction_deal:) ⇒ ::String

Create a fully-qualified PrivateAuctionDeal resource string.

The resource will be in the following format:

networks/{network_code}/privateAuctionDeals/{private_auction_deal}

Parameters:

  • network_code (String)
  • private_auction_deal (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


205
206
207
208
209
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 205

def private_auction_deal_path network_code:, private_auction_deal:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/privateAuctionDeals/#{private_auction_deal}"
end