Module: Google::Ads::DataManager::V1::UserListDirectLicenseService::Paths

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

Overview

Path helper methods for the UserListDirectLicenseService 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/user_list_direct_license_service/paths.rb', line 38

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

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

#user_list_direct_license_path(account_type:, account:, user_list_direct_license:) ⇒ ::String

Create a fully-qualified UserListDirectLicense resource string.

The resource will be in the following format:

accountTypes/{account_type}/accounts/{account}/userListDirectLicenses/{user_list_direct_license}

Parameters:

  • account_type (String)
  • account (String)
  • user_list_direct_license (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

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