Module: Google::Ads::AdManager::V1::MobileDeviceSubmodelService::Paths

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

Overview

Path helper methods for the MobileDeviceSubmodelService API.

Instance Method Summary collapse

Instance Method Details

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


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

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)


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

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