class Google::Apis::DfareportingV3_3::InventoryItem

Represents a buy from the Planning inventory store.

Attributes

account_id[RW]

Account ID of this inventory item. Corresponds to the JSON property `accountId` @return [Fixnum]

ad_slots[RW]

Ad slots of this inventory item. If this inventory item represents a standalone placement, there will be exactly one ad slot. If this inventory item represents a placement group, there will be more than one ad slot, each representing one child placement in that placement group. Corresponds to the JSON property `adSlots` @return [Array<Google::Apis::DfareportingV3_3::AdSlot>]

advertiser_id[RW]

Advertiser ID of this inventory item. Corresponds to the JSON property `advertiserId` @return [Fixnum]

content_category_id[RW]

Content category ID of this inventory item. Corresponds to the JSON property `contentCategoryId` @return [Fixnum]

estimated_click_through_rate[RW]

Estimated click-through rate of this inventory item. Corresponds to the JSON property `estimatedClickThroughRate` @return [Fixnum]

estimated_conversion_rate[RW]

Estimated conversion rate of this inventory item. Corresponds to the JSON property `estimatedConversionRate` @return [Fixnum]

id[RW]

ID of this inventory item. Corresponds to the JSON property `id` @return [Fixnum]

in_plan[RW]

Whether this inventory item is in plan. Corresponds to the JSON property `inPlan` @return [Boolean]

in_plan?[RW]

Whether this inventory item is in plan. Corresponds to the JSON property `inPlan` @return [Boolean]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#inventoryItem”. Corresponds to the JSON property `kind` @return [String]

last_modified_info[RW]

Modification timestamp. Corresponds to the JSON property `lastModifiedInfo` @return [Google::Apis::DfareportingV3_3::LastModifiedInfo]

name[RW]

Name of this inventory item. For standalone inventory items, this is the same name as that of its only ad slot. For group inventory items, this can differ from the name of any of its ad slots. Corresponds to the JSON property `name` @return [String]

negotiation_channel_id[RW]

Negotiation channel ID of this inventory item. Corresponds to the JSON property `negotiationChannelId` @return [Fixnum]

order_id[RW]

Order ID of this inventory item. Corresponds to the JSON property `orderId` @return [Fixnum]

placement_strategy_id[RW]

Placement strategy ID of this inventory item. Corresponds to the JSON property `placementStrategyId` @return [Fixnum]

pricing[RW]

Pricing Information Corresponds to the JSON property `pricing` @return [Google::Apis::DfareportingV3_3::Pricing]

project_id[RW]

Project ID of this inventory item. Corresponds to the JSON property `projectId` @return [Fixnum]

rfp_id[RW]

RFP ID of this inventory item. Corresponds to the JSON property `rfpId` @return [Fixnum]

site_id[RW]

ID of the site this inventory item is associated with. Corresponds to the JSON property `siteId` @return [Fixnum]

subaccount_id[RW]

Subaccount ID of this inventory item. Corresponds to the JSON property `subaccountId` @return [Fixnum]

type[RW]

Type of inventory item. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_3/classes.rb, line 6601
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_3/classes.rb, line 6606
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @ad_slots = args[:ad_slots] if args.key?(:ad_slots)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @content_category_id = args[:content_category_id] if args.key?(:content_category_id)
  @estimated_click_through_rate = args[:estimated_click_through_rate] if args.key?(:estimated_click_through_rate)
  @estimated_conversion_rate = args[:estimated_conversion_rate] if args.key?(:estimated_conversion_rate)
  @id = args[:id] if args.key?(:id)
  @in_plan = args[:in_plan] if args.key?(:in_plan)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info)
  @name = args[:name] if args.key?(:name)
  @negotiation_channel_id = args[:negotiation_channel_id] if args.key?(:negotiation_channel_id)
  @order_id = args[:order_id] if args.key?(:order_id)
  @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id)
  @pricing = args[:pricing] if args.key?(:pricing)
  @project_id = args[:project_id] if args.key?(:project_id)
  @rfp_id = args[:rfp_id] if args.key?(:rfp_id)
  @site_id = args[:site_id] if args.key?(:site_id)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @type = args[:type] if args.key?(:type)
end