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
-
#account_path(account_type:, account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#partner_link_path(account_type:, account:, partner_link:) ⇒ ::String
Create a fully-qualified PartnerLink 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/partner_link_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 |
#partner_link_path(account_type:, account:, partner_link:) ⇒ ::String
Create a fully-qualified PartnerLink resource string.
The resource will be in the following format:
accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link}
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 account_type.to_s.include? "/" raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accountTypes/#{account_type}/accounts/#{account}/partnerLinks/#{partner_link}" end |