Module: Google::Ads::AdManager::V1::ThirdPartyCompanyService::Paths

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

Overview

Path helper methods for the ThirdPartyCompanyService 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/third_party_company_service/paths.rb', line 37

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

#third_party_company_path(network_code:, third_party_company:) ⇒ ::String

Create a fully-qualified ThirdPartyCompany resource string.

The resource will be in the following format:

networks/{network_code}/thirdPartyCompanies/{third_party_company}

Parameters:

  • network_code (String)
  • third_party_company (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

  "networks/#{network_code}/thirdPartyCompanies/#{third_party_company}"
end