GoogleApi.RecommendationEngine.V1beta1.Api.Projects.recommendationengine_projects_locations_catalogs_event_stores_user_events_collect

You're seeing just the function recommendationengine_projects_locations_catalogs_event_stores_user_events_collect, go back to GoogleApi.RecommendationEngine.V1beta1.Api.Projects module for more information.
Link to this function

recommendationengine_projects_locations_catalogs_event_stores_user_events_collect(connection, parent, optional_params \\ [], opts \\ [])

View Source

Specs

recommendationengine_projects_locations_catalogs_event_stores_user_events_collect(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.RecommendationEngine.V1beta1.Model.GoogleApiHttpBody.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Recommendations AI JavaScript pixel. Users should not call this method directly.

Parameters

  • connection (type: GoogleApi.RecommendationEngine.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - Required. The parent eventStore name, such as projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :ets (type: String.t) - Optional. The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
    • :uri (type: String.t) - Optional. The url including cgi-parameters but excluding the hash fragment. The URL must be truncated to 1.5K bytes to conservatively be under the 2K bytes. This is often more useful than the referer url, because many browsers only send the domain for 3rd party requests.
    • :userEvent (type: String.t) - Required. URL encoded UserEvent proto.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.RecommendationEngine.V1beta1.Model.GoogleApiHttpBody{}} on success
  • {:error, info} on failure