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

#application_path(network_code:, application:) ⇒ ::String

Create a fully-qualified Application resource string.

The resource will be in the following format:

networks/{network_code}/applications/{application}

Parameters:

  • network_code (String)
  • application (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 application_path network_code:, application:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/applications/#{application}"
end

#audience_segment_path(network_code:, audience_segment:) ⇒ ::String

Create a fully-qualified AudienceSegment resource string.

The resource will be in the following format:

networks/{network_code}/audienceSegments/{audience_segment}

Parameters:

  • network_code (String)
  • audience_segment (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 audience_segment_path network_code:, audience_segment:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/audienceSegments/#{audience_segment}"
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)


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

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

#browser_language_path(network_code:, browser_language:) ⇒ ::String

Create a fully-qualified BrowserLanguage resource string.

The resource will be in the following format:

networks/{network_code}/browserLanguages/{browser_language}

Parameters:

  • network_code (String)
  • browser_language (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 browser_language_path network_code:, browser_language:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/browserLanguages/#{browser_language}"
end

#browser_path(network_code:, browser:) ⇒ ::String

Create a fully-qualified Browser resource string.

The resource will be in the following format:

networks/{network_code}/browsers/{browser}

Parameters:

  • network_code (String)
  • browser (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 browser_path network_code:, browser:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/browsers/#{browser}"
end

#cms_metadata_value_path(network_code:, cms_metadata_value:) ⇒ ::String

Create a fully-qualified CmsMetadataValue resource string.

The resource will be in the following format:

networks/{network_code}/cmsMetadataValues/{cms_metadata_value}

Parameters:

  • network_code (String)
  • cms_metadata_value (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

  "networks/#{network_code}/cmsMetadataValues/#{cms_metadata_value}"
end

#content_bundle_path(network_code:, content_bundle:) ⇒ ::String

Create a fully-qualified ContentBundle resource string.

The resource will be in the following format:

networks/{network_code}/contentBundles/{content_bundle}

Parameters:

  • network_code (String)
  • content_bundle (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


174
175
176
177
178
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 174

def content_bundle_path network_code:, content_bundle:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/contentBundles/#{content_bundle}"
end

#content_path(network_code:, content:) ⇒ ::String

Create a fully-qualified Content resource string.

The resource will be in the following format:

networks/{network_code}/content/{content}

Parameters:

  • network_code (String)
  • content (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


157
158
159
160
161
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 157

def content_path network_code:, content:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/content/#{content}"
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)


191
192
193
194
195
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 191

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)


208
209
210
211
212
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 208

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_capability_path(network_code:, device_capability:) ⇒ ::String

Create a fully-qualified DeviceCapability resource string.

The resource will be in the following format:

networks/{network_code}/deviceCapabilities/{device_capability}

Parameters:

  • network_code (String)
  • device_capability (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


225
226
227
228
229
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 225

def device_capability_path network_code:, device_capability:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/deviceCapabilities/#{device_capability}"
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)


242
243
244
245
246
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 242

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

#device_manufacturer_path(network_code:, device_manufacturer:) ⇒ ::String

Create a fully-qualified DeviceManufacturer resource string.

The resource will be in the following format:

networks/{network_code}/deviceManufacturers/{device_manufacturer}

Parameters:

  • network_code (String)
  • device_manufacturer (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


259
260
261
262
263
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 259

def device_manufacturer_path network_code:, device_manufacturer:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/deviceManufacturers/#{device_manufacturer}"
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)


276
277
278
279
280
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 276

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

#mobile_carrier_path(network_code:, mobile_carrier:) ⇒ ::String

Create a fully-qualified MobileCarrier resource string.

The resource will be in the following format:

networks/{network_code}/mobileCarriers/{mobile_carrier}

Parameters:

  • network_code (String)
  • mobile_carrier (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


293
294
295
296
297
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 293

def mobile_carrier_path network_code:, mobile_carrier:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/mobileCarriers/#{mobile_carrier}"
end

#mobile_device_path(network_code:, mobile_device:) ⇒ ::String

Create a fully-qualified MobileDevice resource string.

The resource will be in the following format:

networks/{network_code}/mobileDevices/{mobile_device}

Parameters:

  • network_code (String)
  • mobile_device (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


310
311
312
313
314
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 310

def mobile_device_path network_code:, mobile_device:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/mobileDevices/#{mobile_device}"
end

#mobile_device_submodel_path(network_code:, mobile_device_submodel:) ⇒ ::String

Create a fully-qualified MobileDeviceSubmodel resource string.

The resource will be in the following format:

networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}

Parameters:

  • network_code (String)
  • mobile_device_submodel (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


327
328
329
330
331
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 327

def mobile_device_submodel_path network_code:, mobile_device_submodel:
  raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"

  "networks/#{network_code}/mobileDeviceSubmodels/#{mobile_device_submodel}"
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)


343
344
345
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 343

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)


358
359
360
361
362
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 358

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)


375
376
377
378
379
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 375

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)


392
393
394
395
396
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 392

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)


409
410
411
412
413
# File 'lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb', line 409

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