Module: TheTradeDeskAds
- Defined in:
- lib/the_trade_desk_ads.rb,
lib/the_trade_desk_ads/ad.rb,
lib/the_trade_desk_ads/base.rb,
lib/the_trade_desk_ads/ad_set.rb,
lib/the_trade_desk_ads/ad_image.rb,
lib/the_trade_desk_ads/ad_format.rb,
lib/the_trade_desk_ads/ad_account.rb,
lib/the_trade_desk_ads/ad_insight.rb,
lib/the_trade_desk_ads/ad_partner.rb,
lib/the_trade_desk_ads/api_result.rb,
lib/the_trade_desk_ads/ad_audience.rb,
lib/the_trade_desk_ads/ad_campaign.rb,
lib/the_trade_desk_ads/ad_creative.rb,
lib/the_trade_desk_ads/ad_exception.rb,
lib/the_trade_desk_ads/ad_targeting.rb,
lib/the_trade_desk_ads/ad_advertiser.rb,
lib/the_trade_desk_ads/ad_categories.rb,
lib/the_trade_desk_ads/ad_comscore_demographic_members.rb
Overview
The primary namespace for this gem.
Defined Under Namespace
Classes: Ad, AdAccount, AdAdvertiser, AdAudience, AdCampaign, AdCategories, AdComscoreDemographicMembers, AdCreative, AdException, AdFormat, AdImage, AdInsight, AdPartner, AdSet, AdTargeting, ApiResult, Base
Class Method Summary
collapse
Class Method Details
.access_token ⇒ Object
42
43
44
|
# File 'lib/the_trade_desk_ads.rb', line 42
def self.access_token
@access_token
end
|
.access_token=(access_token) ⇒ Object
38
39
40
|
# File 'lib/the_trade_desk_ads.rb', line 38
def self.access_token=(access_token)
@access_token = access_token
end
|
.base_uri ⇒ Object
Note: This is the sandbox base uri
31
32
33
34
35
36
|
# File 'lib/the_trade_desk_ads.rb', line 31
def self.base_uri
unless defined?(@base_uri)
@base_uri = 'https://apisb.thetradedesk.com/v3/'
end
@base_uri
end
|
.base_uri=(base_uri) ⇒ Object
26
27
28
|
# File 'lib/the_trade_desk_ads.rb', line 26
def self.base_uri=(base_uri)
@base_uri = base_uri
end
|
.logger ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/the_trade_desk_ads.rb', line 17
def self.logger
unless defined?(@logger)
@logger = Logger.new('/dev/null')
@logger.level = Logger::Severity::UNKNOWN
end
@logger
end
|
.logger=(logger) ⇒ Object
13
14
15
|
# File 'lib/the_trade_desk_ads.rb', line 13
def self.logger=(logger)
@logger = logger
end
|
.login ⇒ Object
50
51
52
|
# File 'lib/the_trade_desk_ads.rb', line 50
def self.login
@login
end
|
.login=(login) ⇒ Object
46
47
48
|
# File 'lib/the_trade_desk_ads.rb', line 46
def self.login=(login)
@login = login
end
|
.password ⇒ Object
58
59
60
|
# File 'lib/the_trade_desk_ads.rb', line 58
def self.password
@password
end
|
.password=(password) ⇒ Object
54
55
56
|
# File 'lib/the_trade_desk_ads.rb', line 54
def self.password=(password)
@password = password
end
|
.token_expiration_in_minutes ⇒ Object
66
67
68
|
# File 'lib/the_trade_desk_ads.rb', line 66
def self.token_expiration_in_minutes
@token_expiration_in_minutes
end
|
.token_expiration_in_minutes=(token_expiration_in_minutes) ⇒ Object
62
63
64
|
# File 'lib/the_trade_desk_ads.rb', line 62
def self.token_expiration_in_minutes=(token_expiration_in_minutes)
@token_expiration_in_minutes = token_expiration_in_minutes
end
|