module YandexDirect::V5::Ads
Public Instance Methods
add_ads(params)
click to toggle source
Creates an ad
@see tech.yandex.com/direct/doc/ref-v5/ads/add-docpage/
# File lib/yandex_direct/v5/ads.rb, line 9 def add_ads(params) response = YandexDirect::V5::Request.new(self, @token, 'ads', 'add', params).perform @available_units = response[:available_units] response[:result] end
ads(params)
click to toggle source
Returns parameters of ads that match the specified criteria
@see tech.yandex.com/direct/doc/ref-v5/ads/get-docpage/
# File lib/yandex_direct/v5/ads.rb, line 18 def ads(params) response = YandexDirect::V5::Request.new(self, @token, 'ads', 'get', params).perform @available_units = response[:available_units] response[:result] end
moderate_ads(params)
click to toggle source
Submits ads for review
@see tech.yandex.com/direct/doc/ref-v5/ads/moderate-docpage/
# File lib/yandex_direct/v5/ads.rb, line 27 def moderate_ads(params) response = YandexDirect::V5::Request.new(self, @token, 'ads', 'moderate', params).perform @available_units = response[:available_units] response[:result] end