Class: Google::Apis::AdmobV1beta::CreateAdUnitMappingRequest

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

Request to create an ad unit mapping under the specific AdMob account and ad unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_mappingGoogle::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

#parentString

Required. The parent which owns the ad unit mapping. Format: accounts/ publisher_id/adUnits/ad_unit_id Corresponds to the JSON property parent

Returns:

  • (String)


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