Module: Google::Ads::DataManager::V1::PartnerLinkService::Paths

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

Overview

Path helper methods for the PartnerLinkService API.

Instance Method Summary collapse

Instance Method Details

#account_path(account_type:, account:) ⇒ ::String

Create a fully-qualified Account resource string.

The resource will be in the following format:

accountTypes/{account_type}/accounts/{account}

Parameters:

  • account_type (String)
  • account (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

def  account_type:, account:
  raise ::ArgumentError, "account_type cannot contain /" if .to_s.include? "/"

  "accountTypes/#{}/accounts/#{}"
end

Create a fully-qualified PartnerLink resource string.

The resource will be in the following format:

accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link}

Parameters:

  • account_type (String)
  • account (String)
  • partner_link (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


56
57
58
59
60
61
# File 'lib/google/ads/data_manager/v1/partner_link_service/paths.rb', line 56

def partner_link_path account_type:, account:, partner_link:
  raise ::ArgumentError, "account_type cannot contain /" if .to_s.include? "/"
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"

  "accountTypes/#{}/accounts/#{}/partnerLinks/#{partner_link}"
end