Class: Google::Apis::Adexchangebuyer2V2beta1::CreativeRestrictions

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

Overview

Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn't apply to Private Auction and AdX Preferred Deals.

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

Returns a new instance of CreativeRestrictions.



924
925
926
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 924

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

Instance Attribute Details

#creative_formatString

The format of the environment that the creatives will be displayed in. Corresponds to the JSON property creativeFormat

Returns:

  • (String)


912
913
914
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 912

def creative_format
  @creative_format
end

#creative_specificationsArray<Google::Apis::Adexchangebuyer2V2beta1::CreativeSpecification>

Corresponds to the JSON property creativeSpecifications



917
918
919
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 917

def creative_specifications
  @creative_specifications
end

#skippable_ad_typeString

Skippable video ads allow viewers to skip ads after 5 seconds. Corresponds to the JSON property skippableAdType

Returns:

  • (String)


922
923
924
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 922

def skippable_ad_type
  @skippable_ad_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



929
930
931
932
933
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 929

def update!(**args)
  @creative_format = args[:creative_format] if args.key?(:creative_format)
  @creative_specifications = args[:creative_specifications] if args.key?(:creative_specifications)
  @skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type)
end