Class: Google::Apis::AdmobV1beta::CreateAdUnitMappingRequest
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::CreateAdUnitMappingRequest
- 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
Request to create an ad unit mapping under the specific AdMob account and ad unit.
Instance Attribute Summary collapse
-
#ad_unit_mapping ⇒ Google::Apis::AdmobV1beta::AdUnitMapping
Settings to map an AdMob ad unit to a 3rd party ad unit.
-
#parent ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateAdUnitMappingRequest
constructor
A new instance of CreateAdUnitMappingRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateAdUnitMappingRequest
Returns a new instance of CreateAdUnitMappingRequest.
512 513 514 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 512 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_unit_mapping ⇒ Google::Apis::AdmobV1beta::AdUnitMapping
Settings to map an AdMob ad unit to a 3rd party ad unit.
Corresponds to the JSON property adUnitMapping
504 505 506 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 504 def ad_unit_mapping @ad_unit_mapping end |
#parent ⇒ String
Required. The parent which owns the ad unit mapping. Format: accounts/
publisher_id
/adUnits/ad_unit_id
Corresponds to the JSON property parent
510 511 512 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 510 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
517 518 519 520 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 517 def update!(**args) @ad_unit_mapping = args[:ad_unit_mapping] if args.key?(:ad_unit_mapping) @parent = args[:parent] if args.key?(:parent) end |