Class: Google::Apis::AdsenseV1_4::SavedAdStyle
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV1_4::SavedAdStyle
- 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
-
#ad_style ⇒ Google::Apis::AdsenseV1_4::AdStyle
The AdStyle itself.
-
#id ⇒ String
Unique identifier of this saved ad style.
-
#kind ⇒ String
Kind of resource this is, in this case adsense#savedAdStyle.
-
#name ⇒ String
The user selected name of this SavedAdStyle.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SavedAdStyle
constructor
A new instance of SavedAdStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_style ⇒ Google::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 |
#id ⇒ String
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
1076 1077 1078 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1076 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsense#savedAdStyle.
Corresponds to the JSON property kind
1081 1082 1083 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1081 def kind @kind end |
#name ⇒ String
The user selected name of this SavedAdStyle.
Corresponds to the JSON property name
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 |