Module: Google::Ads::AdManager::V1::ContactService::Paths

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

Overview

Path helper methods for the ContactService API.

Instance Method Summary collapse

Instance Method Details

#company_path(network_code:, company:) ⇒ ::String

Create a fully-qualified Company resource string.

The resource will be in the following format:

networks/{network_code}/companies/{company}

Parameters:

  • network_code (String)
  • company (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

  "networks/#{network_code}/companies/#{company}"
end

#contact_path(network_code:, contact:) ⇒ ::String

Create a fully-qualified Contact resource string.

The resource will be in the following format:

networks/{network_code}/contacts/{contact}

Parameters:

  • network_code (String)
  • contact (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

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


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

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