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.


1100
1101
1102
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1100

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

Instance Attribute Details

#ad_styleGoogle::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

#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)

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

def id
  @id
end

#kindString

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

Returns:

  • (String)

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

def kind
  @kind
end

#nameString

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

Returns:

  • (String)

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