Sha256: 7af762db6bf8387278a21384bd28f5dd8e96097fe69bcb7829ccddecfdb6ab0d

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

require_relative 'resource'

module Eucalyptus
  class Ad < Resource
    def self.known_fields
      [
        :id,
        :account_id,
        :adgroup_status,
        :campaign_id,
        :campaign_group_id,
        :conversion_specs,
        :created_time,
        :targeting,
        :tracking_specs,
        :name
      ]
    end

    def ad_set; AdSet.find(self.campaign_id); end

    def self.api_path
      "adgroups"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eucalyptus-1.2.4 lib/eucalyptus/ad.rb
eucalyptus-1.2.3 lib/eucalyptus/ad.rb
eucalyptus-1.2.2 lib/eucalyptus/ad.rb
eucalyptus-1.2.1 lib/eucalyptus/ad.rb