Class: Google::Apis::Adexchangebuyer2V2beta1::Correction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/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) ⇒ Correction

Returns a new instance of Correction



1473
1474
1475
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1473

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

Instance Attribute Details

#contextsArray<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>

The contexts for the correction. Corresponds to the JSON property contexts



1466
1467
1468
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1466

def contexts
  @contexts
end

#detailsArray<String>

Additional details about what was corrected. Corresponds to the JSON property details

Returns:

  • (Array<String>)


1471
1472
1473
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1471

def details
  @details
end

#typeString

The type of correction that was applied to the creative. Corresponds to the JSON property type

Returns:

  • (String)


1461
1462
1463
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1461

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1478
1479
1480
1481
1482
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1478

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @contexts = args[:contexts] if args.key?(:contexts)
  @details = args[:details] if args.key?(:details)
end