Class: Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb

Overview

Settings specific to WAP mobile content ads (AFMC) - deprecated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MobileContentAdsSettings

Returns a new instance of MobileContentAdsSettings.



541
542
543
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 541

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#markup_languageString

The markup language to use for this ad unit. Corresponds to the JSON property markupLanguage

Returns:

  • (String)


524
525
526
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 524

def markup_language
  @markup_language
end

#scripting_languageString

The scripting language to use for this ad unit. Corresponds to the JSON property scriptingLanguage

Returns:

  • (String)


529
530
531
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 529

def scripting_language
  @scripting_language
end

#sizeString

Size of this ad unit. Corresponds to the JSON property size

Returns:

  • (String)


534
535
536
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 534

def size
  @size
end

#typeString

Type of this ad unit. Corresponds to the JSON property type

Returns:

  • (String)


539
540
541
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 539

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



546
547
548
549
550
551
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 546

def update!(**args)
  @markup_language = args[:markup_language] if args.key?(:markup_language)
  @scripting_language = args[:scripting_language] if args.key?(:scripting_language)
  @size = args[:size] if args.key?(:size)
  @type = args[:type] if args.key?(:type)
end