Class: Google::Apis::AuthorizedbuyersmarketplaceV1::AuctionPackage

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

Overview

Defines a segment of inventory that buyer wants to buy. It's created by buyer and could be shared with multiple buyers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuctionPackage

Returns a new instance of AuctionPackage.



214
215
216
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 214

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

Instance Attribute Details

#create_timeString

Output only. Time the auction package was created. Corresponds to the JSON property createTime

Returns:

  • (String)


153
154
155
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 153

def create_time
  @create_time
end

#creatorString

Output only. The buyer that created this auction package. Format: buyers/ buyerAccountId` Corresponds to the JSON propertycreator`

Returns:

  • (String)


159
160
161
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 159

def creator
  @creator
end

#descriptionString

Output only. A description of the auction package. Corresponds to the JSON property description

Returns:

  • (String)


164
165
166
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 164

def description
  @description
end

#display_nameString

The display_name assigned to the auction package. Corresponds to the JSON property displayName

Returns:

  • (String)


169
170
171
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 169

def display_name
  @display_name
end

#eligible_seat_idsArray<String>

Output only. If set, this field contains the list of DSP specific seat ids set by media planners that are eligible to transact on this deal. The seat ID is in the calling DSP's namespace. Corresponds to the JSON property eligibleSeatIds

Returns:

  • (Array<String>)


176
177
178
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 176

def eligible_seat_ids
  @eligible_seat_ids
end

#nameString

Immutable. The unique identifier for the auction package. Format: buyers/ accountId/auctionPackages/auctionPackageId`The auction_package_id part of name is sent in the BidRequest to all RTB bidders and is returned as deal_id by the bidder in the BidResponse. Corresponds to the JSON propertyname`

Returns:

  • (String)


184
185
186
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 184

def name
  @name
end

#subscribed_buyersArray<String>

Output only. The list of buyers that are subscribed to the AuctionPackage. This field is only populated when calling as a bidder. Format: buyers/ buyerAccountId` Corresponds to the JSON propertysubscribedBuyers`

Returns:

  • (Array<String>)


191
192
193
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 191

def subscribed_buyers
  @subscribed_buyers
end

#subscribed_clientsArray<String>

Output only. When calling as a buyer, the list of clients of the current buyer that are subscribed to the AuctionPackage. When calling as a bidder, the list of clients that are subscribed to the AuctionPackage owned by the bidder or its buyers. Format: buyers/buyerAccountId/clients/clientAccountId` Corresponds to the JSON propertysubscribedClients`

Returns:

  • (Array<String>)


199
200
201
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 199

def subscribed_clients
  @subscribed_clients
end

#subscribed_media_plannersArray<Google::Apis::AuthorizedbuyersmarketplaceV1::MediaPlanner>

Output only. The list of media planners that are subscribed to the AuctionPackage. This field is only populated when calling as a bidder. Corresponds to the JSON property subscribedMediaPlanners



205
206
207
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 205

def subscribed_media_planners
  @subscribed_media_planners
end

#update_timeString

Output only. Time the auction package was last updated. This value is only increased when this auction package is updated but never when a buyer subscribed. Corresponds to the JSON property updateTime

Returns:

  • (String)


212
213
214
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 212

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 219

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @eligible_seat_ids = args[:eligible_seat_ids] if args.key?(:eligible_seat_ids)
  @name = args[:name] if args.key?(:name)
  @subscribed_buyers = args[:subscribed_buyers] if args.key?(:subscribed_buyers)
  @subscribed_clients = args[:subscribed_clients] if args.key?(:subscribed_clients)
  @subscribed_media_planners = args[:subscribed_media_planners] if args.key?(:subscribed_media_planners)
  @update_time = args[:update_time] if args.key?(:update_time)
end