Module: Google::Ads::DataManager::V1::UserListService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/ads/data_manager/v1/user_list_service/paths.rb
Overview
Path helper methods for the UserListService API.
Instance Method Summary collapse
-
#account_path(account_type:, account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#user_list_path(account_type:, account:, user_list:) ⇒ ::String
Create a fully-qualified UserList resource string.
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}
38 39 40 41 42 |
# File 'lib/google/ads/data_manager/v1/user_list_service/paths.rb', line 38 def account_path account_type:, account: raise ::ArgumentError, "account_type cannot contain /" if account_type.to_s.include? "/" "accountTypes/#{account_type}/accounts/#{account}" end |
#user_list_path(account_type:, account:, user_list:) ⇒ ::String
Create a fully-qualified UserList resource string.
The resource will be in the following format:
accountTypes/{account_type}/accounts/{account}/userLists/{user_list}
56 57 58 59 60 61 |
# File 'lib/google/ads/data_manager/v1/user_list_service/paths.rb', line 56 def user_list_path account_type:, account:, user_list: raise ::ArgumentError, "account_type cannot contain /" if account_type.to_s.include? "/" raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accountTypes/#{account_type}/accounts/#{account}/userLists/#{user_list}" end |