Class: Google::Apis::AdsenseV1_4::SavedAdStyle

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

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) ⇒ SavedAdStyle

Returns a new instance of SavedAdStyle



1088
1089
1090
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1088

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

Instance Attribute Details

#ad_styleGoogle::Apis::AdsenseV1_4::AdStyle

The AdStyle itself. Corresponds to the JSON property adStyle



1070
1071
1072
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1070

def ad_style
  @ad_style
end

#idString

Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property id

Returns:

  • (String)


1076
1077
1078
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1076

def id
  @id
end

#kindString

Kind of resource this is, in this case adsense#savedAdStyle. Corresponds to the JSON property kind

Returns:

  • (String)


1081
1082
1083
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1081

def kind
  @kind
end

#nameString

The user selected name of this SavedAdStyle. Corresponds to the JSON property name

Returns:

  • (String)


1086
1087
1088
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1086

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1093
1094
1095
1096
1097
1098
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1093

def update!(**args)
  @ad_style = args[:ad_style] if args.key?(:ad_style)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end