Class: Google::Apis::Adexchangebuyer2V2beta1::Product
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::Product
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
A product is a segment of inventory that a seller wishes to sell. It is associated with certain terms and targeting information which helps the buyer know more about the inventory.
Instance Attribute Summary collapse
-
#available_end_time ⇒ String
The proposed end time for the deal.
-
#available_start_time ⇒ String
Inventory availability dates.
-
#create_time ⇒ String
Creation time.
-
#creator_contacts ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::ContactInformation>
Optional contact information for the creator of this product.
-
#display_name ⇒ String
The display name for this product as set by the seller.
-
#has_creator_signed_off ⇒ Boolean
(also: #has_creator_signed_off?)
If the creator has already signed off on the product, then the buyer can finalize the deal by accepting the product as is.
-
#product_id ⇒ String
The unique ID for the product.
-
#product_revision ⇒ Fixnum
The revision number of the product (auto-assigned by Marketplace).
-
#publisher_profile_id ⇒ String
An ID which can be used by the Publisher Profile API to get more information about the seller that created this product.
-
#seller ⇒ Google::Apis::Adexchangebuyer2V2beta1::Seller
Represents a seller of inventory.
-
#syndication_product ⇒ String
The syndication product associated with the deal.
-
#targeting_criterion ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria>
Targeting that is shared between the buyer and the seller.
-
#terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::DealTerms
The deal terms specify the details of a Product/deal.
-
#update_time ⇒ String
Time of last update.
-
#web_property_code ⇒ String
The web-property code for the seller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Product
constructor
A new instance of Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Product
Returns a new instance of Product.
3245 3246 3247 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_end_time ⇒ String
The proposed end time for the deal. The field will be truncated to the order
of seconds during serving.
Corresponds to the JSON property availableEndTime
3160 3161 3162 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3160 def available_end_time @available_end_time end |
#available_start_time ⇒ String
Inventory availability dates. The start time will be truncated to seconds
during serving. Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will be
truncated to 3:23:34 when serving.
Corresponds to the JSON property availableStartTime
3167 3168 3169 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3167 def available_start_time @available_start_time end |
#create_time ⇒ String
Creation time.
Corresponds to the JSON property createTime
3172 3173 3174 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3172 def create_time @create_time end |
#creator_contacts ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::ContactInformation>
Optional contact information for the creator of this product.
Corresponds to the JSON property creatorContacts
3177 3178 3179 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3177 def creator_contacts @creator_contacts end |
#display_name ⇒ String
The display name for this product as set by the seller.
Corresponds to the JSON property displayName
3182 3183 3184 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3182 def display_name @display_name end |
#has_creator_signed_off ⇒ Boolean Also known as: has_creator_signed_off?
If the creator has already signed off on the product, then the buyer can
finalize the deal by accepting the product as is. When copying to a proposal,
if any of the terms are changed, then auto_finalize is automatically set to
false.
Corresponds to the JSON property hasCreatorSignedOff
3190 3191 3192 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3190 def has_creator_signed_off @has_creator_signed_off end |
#product_id ⇒ String
The unique ID for the product.
Corresponds to the JSON property productId
3196 3197 3198 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3196 def product_id @product_id end |
#product_revision ⇒ Fixnum
The revision number of the product (auto-assigned by Marketplace).
Corresponds to the JSON property productRevision
3201 3202 3203 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3201 def product_revision @product_revision end |
#publisher_profile_id ⇒ String
An ID which can be used by the Publisher Profile API to get more information
about the seller that created this product.
Corresponds to the JSON property publisherProfileId
3207 3208 3209 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3207 def publisher_profile_id @publisher_profile_id end |
#seller ⇒ Google::Apis::Adexchangebuyer2V2beta1::Seller
Represents a seller of inventory. Each seller is identified by a unique Ad
Manager account ID.
Corresponds to the JSON property seller
3213 3214 3215 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3213 def seller @seller end |
#syndication_product ⇒ String
The syndication product associated with the deal.
Corresponds to the JSON property syndicationProduct
3218 3219 3220 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3218 def @syndication_product end |
#targeting_criterion ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria>
Targeting that is shared between the buyer and the seller. Each targeting
criterion has a specified key and for each key there is a list of inclusion
value or exclusion values.
Corresponds to the JSON property targetingCriterion
3225 3226 3227 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3225 def targeting_criterion @targeting_criterion end |
#terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::DealTerms
The deal terms specify the details of a Product/deal. They specify things like
price per buyer, the type of pricing model (e.g., fixed price, auction) and
expected impressions from the publisher.
Corresponds to the JSON property terms
3232 3233 3234 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3232 def terms @terms end |
#update_time ⇒ String
Time of last update.
Corresponds to the JSON property updateTime
3237 3238 3239 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3237 def update_time @update_time end |
#web_property_code ⇒ String
The web-property code for the seller. This needs to be copied as is when
adding a new deal to a proposal.
Corresponds to the JSON property webPropertyCode
3243 3244 3245 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3243 def web_property_code @web_property_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3250 def update!(**args) @available_end_time = args[:available_end_time] if args.key?(:available_end_time) @available_start_time = args[:available_start_time] if args.key?(:available_start_time) @create_time = args[:create_time] if args.key?(:create_time) @creator_contacts = args[:creator_contacts] if args.key?(:creator_contacts) @display_name = args[:display_name] if args.key?(:display_name) @has_creator_signed_off = args[:has_creator_signed_off] if args.key?(:has_creator_signed_off) @product_id = args[:product_id] if args.key?(:product_id) @product_revision = args[:product_revision] if args.key?(:product_revision) @publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id) @seller = args[:seller] if args.key?(:seller) @syndication_product = args[:syndication_product] if args.key?(:syndication_product) @targeting_criterion = args[:targeting_criterion] if args.key?(:targeting_criterion) @terms = args[:terms] if args.key?(:terms) @update_time = args[:update_time] if args.key?(:update_time) @web_property_code = args[:web_property_code] if args.key?(:web_property_code) end |