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.
511 512 513 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 511 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
503 504 505 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 503 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
509 510 511 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 509 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
516 517 518 519 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 516 def update!(**args) @ad_unit_mapping = args[:ad_unit_mapping] if args.key?(:ad_unit_mapping) @parent = args[:parent] if args.key?(:parent) end |