Class: YandexApiDirect::CampaignStats

Inherits:
Hashr
  • Object
show all
Extended by:
YandexObject
Includes:
YandexObject
Defined in:
lib/yandex-api-direct/yandex_objects/campaign_stats.rb

Class Method Summary collapse

Class Method Details

.find(params = {}) ⇒ Object

get stats for campaign input args:

campaign_ids: [Integer]
start_date: Date
end_date: Date


18
19
20
21
22
# File 'lib/yandex-api-direct/yandex_objects/campaign_stats.rb', line 18

def self.find params = {}
  call_method("get_summary_stat", camelize_keys(params))[:data].collect do |stats_data|
    new stats_data
  end
end