Class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb

Overview

A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MarketplaceDeal

Returns a new instance of MarketplaceDeal.



2084
2085
2086
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2084

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

Instance Attribute Details

#buyer_private_dataGoogle::Apis::AdexchangebuyerV1_4::PrivateData

Buyer private data (hidden from seller). Corresponds to the JSON property buyerPrivateData



1941
1942
1943
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1941

def buyer_private_data
  @buyer_private_data
end

#creation_time_msFixnum

The time (ms since epoch) of the deal creation. (readonly) Corresponds to the JSON property creationTimeMs

Returns:

  • (Fixnum)


1946
1947
1948
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1946

def creation_time_ms
  @creation_time_ms
end

#creative_pre_approval_policyString

Specifies the creative pre-approval policy (buyer-readonly) Corresponds to the JSON property creativePreApprovalPolicy

Returns:

  • (String)


1951
1952
1953
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1951

def creative_pre_approval_policy
  @creative_pre_approval_policy
end

#creative_safe_frame_compatibilityString

Specifies whether the creative is safeFrame compatible (buyer-readonly) Corresponds to the JSON property creativeSafeFrameCompatibility

Returns:

  • (String)


1956
1957
1958
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1956

def creative_safe_frame_compatibility
  @creative_safe_frame_compatibility
end

#deal_idString

A unique deal-id for the deal (readonly). Corresponds to the JSON property dealId

Returns:

  • (String)


1961
1962
1963
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1961

def deal_id
  @deal_id
end

#deal_serving_metadataGoogle::Apis::AdexchangebuyerV1_4::DealServingMetadata

Metadata about the serving status of this deal (readonly, writes via custom actions) Corresponds to the JSON property dealServingMetadata



1967
1968
1969
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1967

def 
  @deal_serving_metadata
end

#delivery_controlGoogle::Apis::AdexchangebuyerV1_4::DeliveryControl

The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. Corresponds to the JSON property deliveryControl



1975
1976
1977
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1975

def delivery_control
  @delivery_control
end

#external_deal_idString

The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) Corresponds to the JSON property externalDealId

Returns:

  • (String)


1981
1982
1983
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1981

def external_deal_id
  @external_deal_id
end

#flight_end_time_msFixnum

Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) Corresponds to the JSON property flightEndTimeMs

Returns:

  • (Fixnum)


1987
1988
1989
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1987

def flight_end_time_ms
  @flight_end_time_ms
end

#flight_start_time_msFixnum

Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) Corresponds to the JSON property flightStartTimeMs

Returns:

  • (Fixnum)


1993
1994
1995
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1993

def flight_start_time_ms
  @flight_start_time_ms
end

#inventory_descriptionString

Description for the deal terms. (buyer-readonly) Corresponds to the JSON property inventoryDescription

Returns:

  • (String)


1998
1999
2000
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1998

def inventory_description
  @inventory_description
end

#is_rfp_templateBoolean Also known as: is_rfp_template?

Indicates whether the current deal is a RFP template. RFP template is created by buyer and not based on seller created products. Corresponds to the JSON property isRfpTemplate

Returns:

  • (Boolean)


2004
2005
2006
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2004

def is_rfp_template
  @is_rfp_template
end

#is_setup_completeBoolean Also known as: is_setup_complete?

True, if the buyside inventory setup is complete for this deal. (readonly, except via OrderSetupCompleted action) Corresponds to the JSON property isSetupComplete

Returns:

  • (Boolean)


2011
2012
2013
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2011

def is_setup_complete
  @is_setup_complete
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " adexchangebuyer#marketplaceDeal". Corresponds to the JSON property kind

Returns:

  • (String)


2018
2019
2020
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2018

def kind
  @kind
end

#last_update_time_msFixnum

The time (ms since epoch) when the deal was last updated. (readonly) Corresponds to the JSON property lastUpdateTimeMs

Returns:

  • (Fixnum)


2023
2024
2025
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2023

def last_update_time_ms
  @last_update_time_ms
end

#makegood_requested_reasonString

Corresponds to the JSON property makegoodRequestedReason

Returns:

  • (String)


2028
2029
2030
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2028

def makegood_requested_reason
  @makegood_requested_reason
end

#nameString

The name of the deal. (updatable) Corresponds to the JSON property name

Returns:

  • (String)


2033
2034
2035
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2033

def name
  @name
end

#product_idString

The product-id from which this deal was created. (readonly, except on create) Corresponds to the JSON property productId

Returns:

  • (String)


2038
2039
2040
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2038

def product_id
  @product_id
end

#product_revision_numberFixnum

The revision number of the product that the deal was created from (readonly, except on create) Corresponds to the JSON property productRevisionNumber

Returns:

  • (Fixnum)


2044
2045
2046
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2044

def product_revision_number
  @product_revision_number
end

#programmatic_creative_sourceString

Specifies the creative source for programmatic deals, PUBLISHER means creative is provided by seller and ADVERTISR means creative is provided by buyer. ( buyer-readonly) Corresponds to the JSON property programmaticCreativeSource

Returns:

  • (String)


2051
2052
2053
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2051

def programmatic_creative_source
  @programmatic_creative_source
end

#proposal_idString

Corresponds to the JSON property proposalId

Returns:

  • (String)


2056
2057
2058
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2056

def proposal_id
  @proposal_id
end

#seller_contactsArray<Google::Apis::AdexchangebuyerV1_4::ContactInformation>

Optional Seller contact information for the deal (buyer-readonly) Corresponds to the JSON property sellerContacts



2061
2062
2063
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2061

def seller_contacts
  @seller_contacts
end

#shared_targetingsArray<Google::Apis::AdexchangebuyerV1_4::SharedTargeting>

The shared targeting visible to buyers and sellers. Each shared targeting entity is AND'd together. (updatable) Corresponds to the JSON property sharedTargetings



2067
2068
2069
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2067

def shared_targetings
  @shared_targetings
end

#syndication_productString

The syndication product associated with the deal. (readonly, except on create) Corresponds to the JSON property syndicationProduct

Returns:

  • (String)


2072
2073
2074
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2072

def syndication_product
  @syndication_product
end

#termsGoogle::Apis::AdexchangebuyerV1_4::DealTerms

The negotiable terms of the deal. (updatable) Corresponds to the JSON property terms



2077
2078
2079
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2077

def terms
  @terms
end

#web_property_codeString

Corresponds to the JSON property webPropertyCode

Returns:

  • (String)


2082
2083
2084
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2082

def web_property_code
  @web_property_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2089

def update!(**args)
  @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data)
  @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
  @creative_pre_approval_policy = args[:creative_pre_approval_policy] if args.key?(:creative_pre_approval_policy)
  @creative_safe_frame_compatibility = args[:creative_safe_frame_compatibility] if args.key?(:creative_safe_frame_compatibility)
  @deal_id = args[:deal_id] if args.key?(:deal_id)
  @deal_serving_metadata = args[:deal_serving_metadata] if args.key?(:deal_serving_metadata)
  @delivery_control = args[:delivery_control] if args.key?(:delivery_control)
  @external_deal_id = args[:external_deal_id] if args.key?(:external_deal_id)
  @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms)
  @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms)
  @inventory_description = args[:inventory_description] if args.key?(:inventory_description)
  @is_rfp_template = args[:is_rfp_template] if args.key?(:is_rfp_template)
  @is_setup_complete = args[:is_setup_complete] if args.key?(:is_setup_complete)
  @kind = args[:kind] if args.key?(:kind)
  @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms)
  @makegood_requested_reason = args[:makegood_requested_reason] if args.key?(:makegood_requested_reason)
  @name = args[:name] if args.key?(:name)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_revision_number = args[:product_revision_number] if args.key?(:product_revision_number)
  @programmatic_creative_source = args[:programmatic_creative_source] if args.key?(:programmatic_creative_source)
  @proposal_id = args[:proposal_id] if args.key?(:proposal_id)
  @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts)
  @shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings)
  @syndication_product = args[:syndication_product] if args.key?(:syndication_product)
  @terms = args[:terms] if args.key?(:terms)
  @web_property_code = args[:web_property_code] if args.key?(:web_property_code)
end