Module: AdSense
- Defined in:
- lib/ad_sense.rb,
lib/ad_sense/ad_type.rb,
lib/ad_sense/ad_sense.rb,
lib/ad_sense/ad_format.rb,
lib/ad_sense/rails/railtie.rb,
lib/ad_sense/rails/action_view/base.rb,
lib/generators/ad_sense/install/install_generator.rb
Defined Under Namespace
Modules: AdFormat, AdType, Generators, Rails
Class Method Summary
collapse
Class Method Details
.ad_client_id ⇒ Object
24
25
26
|
# File 'lib/ad_sense.rb', line 24
def ad_client_id
"ca-pub-#{client_id}"
end
|
.config {|_self| ... } ⇒ Object
12
13
14
|
# File 'lib/ad_sense.rb', line 12
def config
yield self
end
|
.default_ad_type ⇒ Object
16
17
18
|
# File 'lib/ad_sense.rb', line 16
def default_ad_type
@@default_ad_type ||= AdSense::AdType::TextImage
end
|
.search_ad_client_id ⇒ Object
28
29
30
|
# File 'lib/ad_sense.rb', line 28
def search_ad_client_id
"pub-#{client_id}"
end
|