GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CollectUserEventRequest (google_api_retail v0.20.0)

View Source

Request message for CollectUserEvent method.

Attributes

  • ets (type: String.t, default: nil) - The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
  • prebuiltRule (type: String.t, default: nil) - The prebuilt rule name that can convert a specific type of raw_json. For example: "ga4_bq" rule for the GA4 user event schema.
  • rawJson (type: String.t, default: nil) - An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
  • uri (type: String.t, default: nil) - The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.
  • userEvent (type: String.t, default: nil) - Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CollectUserEventRequest{
  ets: String.t() | nil,
  prebuiltRule: String.t() | nil,
  rawJson: String.t() | nil,
  uri: String.t() | nil,
  userEvent: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.