Class: AmazonAds::SellingAccounts

Inherits:
API
  • Object
show all
Defined in:
lib/amazon_ads/apis/selling_accounts.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

#query_selling_account(max_results: nil, next_token: nil, selling_account_link_token_filter: nil, selling_program_filter: nil) ⇒ Object

List selling accounts

Signature:

  • (?max_results: Integer?, ?next_token: String?, ?selling_account_link_token_filter: untyped?, ?selling_program_filter: untyped?) -> HTTP::Response



7
8
9
# File 'lib/amazon_ads/apis/selling_accounts.rb', line 7

def (max_results: nil, next_token: nil, selling_account_link_token_filter: nil, selling_program_filter: nil)
  request(:post, "/adsApi/v1/query/sellingAccounts", json: { "maxResults" => max_results, "nextToken" => next_token, "sellingAccountLinkTokenFilter" => , "sellingProgramFilter" => selling_program_filter }.compact)
end