module YandexDirect::V5::AdGroups
Public Instance Methods
ad_groups(params)
click to toggle source
Returns parameters of groups that match the specified criteria
@see tech.yandex.com/direct/doc/ref-v5/adgroups/get-docpage/
# File lib/yandex_direct/v5/ad_groups.rb, line 18 def ad_groups(params) response = YandexDirect::V5::Request.new(self, @token, 'adgroups', 'get', params).perform @available_units = response[:available_units] response[:result] end
add_ad_groups(params)
click to toggle source
Creates an ad group
@see tech.yandex.com/direct/doc/ref-v5/adgroups/add-docpage/
# File lib/yandex_direct/v5/ad_groups.rb, line 9 def add_ad_groups(params) response = YandexDirect::V5::Request.new(self, @token, 'adgroups', 'add', params).perform @available_units = response[:available_units] response[:result]['AddResults'] end