Class: Google::Apis::AdmobV1beta::AdSource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

ID of this ad source. Corresponds to the JSON property adSourceId

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/admob_v1beta/classes.rb', line 32

def ad_source_id
  @ad_source_id
end

#nameString

Resource name of this ad source. Format is: accounts/publisher_id/adSources/ ad_source_id Corresponds to the JSON property name

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/admob_v1beta/classes.rb', line 38

def name
  @name
end

#titleString

Display name of this ad source. Corresponds to the JSON property title

Returns:

  • (String)


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