Sha256: f110ef5e22f5facd23a1b791fa2e3ccc2445f794f08b83ce082358ea437df776
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 Bytes
Contents
require_relative 'resource' module Eucalyptus class CustomAudience < Resource def self.api_path "customaudiences" end def ad_sets AdSet.all.collect do |ad_set| if ad_set.targeting.custom_audiences ad_set if ad_set.targeting.custom_audiences.any?{|a| a["id"] == self.id } end end.compact end def self.known_fields [:name, :description] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eucalyptus-0.2.9 | lib/eucalyptus/custom_audience.rb |
eucalyptus-0.2.8 | lib/eucalyptus/custom_audience.rb |