Class: Google::Apis::AdmobV1beta::AdSource
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::AdSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/representations.rb
Overview
Definition of a mediation ad source.
Instance Attribute Summary collapse
-
#ad_source_id ⇒ String
ID of this ad source.
-
#name ⇒ String
Resource name of this ad source.
-
#title ⇒ String
Display name of this ad source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdSource
constructor
A new instance of AdSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdSource
Returns a new instance of AdSource.
45 46 47 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 45 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_source_id ⇒ String
ID of this ad source.
Corresponds to the JSON property adSourceId
32 33 34 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 32 def ad_source_id @ad_source_id end |
#name ⇒ String
Resource name of this ad source. Format is: accounts/publisher_id
/adSources/
ad_source_id
Corresponds to the JSON property name
38 39 40 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 38 def name @name end |
#title ⇒ String
Display name of this ad source.
Corresponds to the JSON property title
43 44 45 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 43 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50 51 52 53 54 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 50 def update!(**args) @ad_source_id = args[:ad_source_id] if args.key?(:ad_source_id) @name = args[:name] if args.key?(:name) @title = args[:title] if args.key?(:title) end |