lib/twitter-ads/creative/account_media.rb
# frozen_string_literal: true
# Copyright (C) 2019 Twitter, Inc.
module TwitterAds
module Creative
class AccountMedia
include TwitterAds::DSL
include TwitterAds::Resource
include TwitterAds::Persistence
attr_reader :account
property :deleted, type: :bool, read_only: true
property :created_at, type: :time, read_only: true
property :updated_at, type: :time, read_only: true
property :id, read_only: true
property :creative_type, read_only: true
property :media_key, read_only: true
property :media_url, read_only: true
RESOURCE_COLLECTION = "/#{TwitterAds::API_VERSION}/" \
'accounts/%{account_id}/account_media' # @api private
RESOURCE = "/#{TwitterAds::API_VERSION}/" \
'accounts/%{account_id}/account_media/%{id}' # @api private
def initialize(account)
@account = account
self
end
end
end
end