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.
611 612 613 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 611 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
603 604 605 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 603 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
609 610 611 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 609 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
616 617 618 619 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 616 def update!(**args) @ad_unit_mapping = args[:ad_unit_mapping] if args.key?(:ad_unit_mapping) @parent = args[:parent] if args.key?(:parent) end |