Class: AmazonAds::CommitmentSpends
- Defined in:
- lib/amazon_ads/apis/commitment_spends.rb
Constant Summary
Constants inherited from API
Instance Attribute Summary
Attributes inherited from API
#access_token, #account_id, #profile_id, #region, #retries
Instance Method Summary collapse
-
#dsp_retrieve_commitment_spend(commitment_ids:) ⇒ Object
Retrieve commitment spend (Deprecated legacy ad-product path alias of RetrieveCommitmentSpend; prefer the ad-product-agnostic path.).
-
#retrieve_commitment_spend(commitment_ids:) ⇒ Object
Retrieve commitment spend.
Methods inherited from API
Constructor Details
This class inherits a constructor from AmazonAds::API
Instance Method Details
#dsp_retrieve_commitment_spend(commitment_ids:) ⇒ Object
Retrieve commitment spend (Deprecated legacy ad-product path alias of RetrieveCommitmentSpend; prefer the ad-product-agnostic path.)
7 8 9 |
# File 'lib/amazon_ads/apis/commitment_spends.rb', line 7 def dsp_retrieve_commitment_spend(commitment_ids:) request(:post, "/adsApi/v1/retrieve/commitmentSpends/dsp", json: { "commitmentIds" => commitment_ids }.compact) end |
#retrieve_commitment_spend(commitment_ids:) ⇒ Object
Retrieve commitment spend
13 14 15 |
# File 'lib/amazon_ads/apis/commitment_spends.rb', line 13 def retrieve_commitment_spend(commitment_ids:) request(:post, "/adsApi/v1/retrieve/commitmentSpends", json: { "commitmentIds" => commitment_ids }.compact) end |