module YandexDirect::V5::Dictionaries

Public Instance Methods

dictionaries(params) click to toggle source

Returns reference data: regions, time zones, currency exchange rates, metro stations, restrictions on parameter values, ad exchanges (SSPs), and other information

@see tech.yandex.com/direct/doc/ref-v5/dictionaries/get-docpage/

# File lib/yandex_direct/v5/dictionaries.rb, line 12
def dictionaries(params)
  response = YandexDirect::V5::Request.new(self, @token, 'dictionaries', 'get', params).perform
  if response[:result]['GeoRegions'].any?
    response[:result]['GeoRegions'].map! do |region_data|
      YandexDirect::GeoRegionsItem.new(region_data)
    end
  end
  response[:result]
end