Class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation

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

The association between a creative and a deal.

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

Returns a new instance of CreativeDealAssociation



1068
1069
1070
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1068

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

Instance Attribute Details

#account_idString

The account the creative belongs to. Corresponds to the JSON property accountId

Returns:

  • (String)


1056
1057
1058
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1056

def 
  @account_id
end

#creative_idString

The ID of the creative associated with the deal. Corresponds to the JSON property creativeId

Returns:

  • (String)


1061
1062
1063
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1061

def creative_id
  @creative_id
end

#deals_idString

The externalDealId for the deal associated with the creative. Corresponds to the JSON property dealsId

Returns:

  • (String)


1066
1067
1068
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1066

def deals_id
  @deals_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1073
1074
1075
1076
1077
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1073

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @creative_id = args[:creative_id] if args.key?(:creative_id)
  @deals_id = args[:deals_id] if args.key?(:deals_id)
end