class Google::Apis::GanV1beta1::Event

An EventResource.

Attributes

advertiser_id[RW]

The ID of advertiser for this event. Corresponds to the JSON property `advertiserId` @return [String]

advertiser_name[RW]

The name of the advertiser for this event. Corresponds to the JSON property `advertiserName` @return [String]

charge_id[RW]

The charge ID for this event. Only returned for charge events. Corresponds to the JSON property `chargeId` @return [String]

charge_type[RW]

Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit| credit). Only returned for charge events. Corresponds to the JSON property `chargeType` @return [String]

commissionable_sales[RW]

An ApiMoneyProto. Corresponds to the JSON property `commissionableSales` @return [Google::Apis::GanV1beta1::Money]

earnings[RW]

An ApiMoneyProto. Corresponds to the JSON property `earnings` @return [Google::Apis::GanV1beta1::Money]

event_date[RW]

The date-time this event was initiated as a RFC 3339 date-time value. Corresponds to the JSON property `eventDate` @return [DateTime]

kind[RW]

The kind for one event. Corresponds to the JSON property `kind` @return [String]

member_id[RW]

The ID of the member attached to this event. Only returned for conversion events. Corresponds to the JSON property `memberId` @return [String]

modify_date[RW]

The date-time this event was last modified as a RFC 3339 date-time value. Corresponds to the JSON property `modifyDate` @return [DateTime]

network_fee[RW]

An ApiMoneyProto. Corresponds to the JSON property `networkFee` @return [Google::Apis::GanV1beta1::Money]

order_id[RW]

The order ID for this event. Only returned for conversion events. Corresponds to the JSON property `orderId` @return [String]

products[RW]

Products associated with the event. Corresponds to the JSON property `products` @return [Array<Google::Apis::GanV1beta1::Event::Product>]

publisher_fee[RW]

An ApiMoneyProto. Corresponds to the JSON property `publisherFee` @return [Google::Apis::GanV1beta1::Money]

publisher_id[RW]

The ID of the publisher for this event. Corresponds to the JSON property `publisherId` @return [String]

publisher_name[RW]

The name of the publisher for this event. Corresponds to the JSON property `publisherName` @return [String]

status[RW]

Status of the event (active|canceled). Only returned for charge and conversion events. Corresponds to the JSON property `status` @return [String]

type[RW]

Type of the event (action|transaction|charge). Corresponds to the JSON property `type` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/gan_v1beta1/classes.rb, line 870
def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @charge_id = args[:charge_id] if args.key?(:charge_id)
  @charge_type = args[:charge_type] if args.key?(:charge_type)
  @commissionable_sales = args[:commissionable_sales] if args.key?(:commissionable_sales)
  @earnings = args[:earnings] if args.key?(:earnings)
  @event_date = args[:event_date] if args.key?(:event_date)
  @kind = args[:kind] if args.key?(:kind)
  @member_id = args[:member_id] if args.key?(:member_id)
  @modify_date = args[:modify_date] if args.key?(:modify_date)
  @network_fee = args[:network_fee] if args.key?(:network_fee)
  @order_id = args[:order_id] if args.key?(:order_id)
  @products = args[:products] if args.key?(:products)
  @publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee)
  @publisher_id = args[:publisher_id] if args.key?(:publisher_id)
  @publisher_name = args[:publisher_name] if args.key?(:publisher_name)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end