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.
Constructor Details
#initialize(**args) ⇒ SavedAdStyle
Returns a new instance of SavedAdStyle.
1100 1101 1102 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1100 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
1082 1083 1084 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1082 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
1088 1089 1090 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1088 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsense#savedAdStyle.
Corresponds to the JSON property kind
1093 1094 1095 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1093 def kind @kind end |
#name ⇒ String
The user selected name of this SavedAdStyle.
Corresponds to the JSON property name
1098 1099 1100 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1098 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1105 1106 1107 1108 1109 1110 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1105 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 |