Class: AmazonAds::CommitmentSpends

Inherits:
API
  • Object
show all
Defined in:
lib/amazon_ads/apis/commitment_spends.rb

Constant Summary

Constants inherited from API

API::ENDPOINTS

Instance Attribute Summary

Attributes inherited from API

#access_token, #account_id, #profile_id, #region, #retries

Instance Method Summary collapse

Methods inherited from API

#endpoint, #http, #initialize

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.)

Signature:

  • (commitment_ids: Array[untyped]) -> HTTP::Response



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

Signature:

  • (commitment_ids: Array[untyped]) -> HTTP::Response



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