Class: Google::Apis::AdsenseV1_4::AdCode

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

Returns a new instance of AdCode.



217
218
219
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 217

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

Instance Attribute Details

#ad_codeString

The ad code snippet. Corresponds to the JSON property adCode

Returns:

  • (String)


210
211
212
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 210

def ad_code
  @ad_code
end

#kindString

Kind this is, in this case adsense#adCode. Corresponds to the JSON property kind

Returns:

  • (String)


215
216
217
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 215

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



222
223
224
225
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 222

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