Connect with us

Tech

Class UserEvent (0.11.10) | Python Client Library | Google Cloud

Class UserEvent (0.11.10) | Python Client Library | Google Cloud

 



AttributesNameDescriptionevent_type str Required. Type of user event. Possible values ​​are: Typical values: – search: Search for documents. – view-item: Document details page view. – view-item-list: View of a panel or ordered list of documents. – view-home-page: Home page view. – view-category-page: View of a category page (e.g. Home > Men > Jeans) Retail-related values: – add-to-cart: Add item to cart (e.g. retail online shopping) – Purchase: Add item to cart I'll buy it. item Media-related values: – media-play: Start/resume watching a video, playing a song, etc. – media-complete: End or stop in the middle of a video, song, etc. user_pseudo_id str Required. Unique identifier to track visitors. For example, this can be implemented using HTTP cookies. This allows us to uniquely identify visitors on a single device. This unique identifier should not change when a visitor logs in or out of her website. Do not set fields to the same fixed ID for different users. This mixes the event history of these users and reduces the quality of the model. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field should not contain PII or user data. We recommend using Google Analytics. `Client ID event_time google.protobuf.timestamp_pb2.Timestamp Only required for the UserEventService.ImportUserEvents method. Timestamp when the user event occurred. user_info google.cloud.discoveryenngine_v1.types.UserInfo Information about the end user. direct_user_request bool Must be set to true if the request is made directly from the end user. In this case, UserEvent.user_info.user_agent can be set from the HTTP request. This flag should only be set if the API request is made directly from an end user, such as a mobile app (and should not be set if the gateway or server is processing and pushing user events). Do not set this if you use JavaScript tags with UserEventService.CollectUserEvent. session_id str Unique identifier for tracking visitor sessions (length limit is 128 bytes). A session is a collection of end user actions over a period of time. General guidelines for setting session_id are: 1. If a user has no activity for her 30 minutes, a new session_id should be assigned. 2. session_id must be unique among users. I recommend using uuid or adding UserEvent.user_pseudo_id as a prefix. page_info google.cloud.discoveryengine_v1.types.PageInfo Page metadata such as category and other important information for a specific event type, such as view-category-page. attribution_token str Token to associate API responses with user actions and trigger events. Highly recommended as a result of user events.
[RecommendationService.Recommend][]. This field allows you to accurately understand the performance of your recommendation model. The value must be one of the following: – [RecommendResponse.attribution_token][] For events that occur as a result of [RecommendationService.Recommend][]. – SearchResponse.attribution_token for events that are the result of SearchService.Search. This token allows us to accurately attribute page views or conversion completions to events involving this clicked/purchased item and to a specific expected response. Passes if the user clicks on product K in the recommendation result. [RecommendResponse.attribution_token][] As a URL parameter to the product K page. If you want to log an event on the page for product K,
[RecommendResponse.attribution_token][] to this field. filter str The filter syntax consists of an expression language for constructing predicates from one or more fields of the document being filtered. As an example, for a search event, the associated SearchRequest may include a filter expression in SearchRequest.filter that complies with https://google.aip.dev/160#filtering. Similarly, [RecommendRequest][]this field can be entered directly from. [RecommendRequest.filter][] Compliant with https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. Document MutableSequence[google.cloud.discoveryengine_v1.types.DocumentInfo]
List of documents associated with this user event. This field is optional except for the following event types: – view-item – add-to-cart – Purchase – media-play – media-complete In search events, this field represents the document returned to the end user on the current page. (The end user may not have finished viewing the entire page yet.) Even for the same query, after pagination/filtering/ordering, when a new page is returned to the end user, a new search event with a different UserEvent.documents is required. Panel google.cloud.discoveryengine_v1.types.PanelInfo Metadata for the panel associated with this user event. search_info google.cloud.discoveryengine_v1.types.SearchInfo SearchService.Search details related to an event. This field must be set for search events. completed_info google.cloud.discoveryengine_v1.types.CompletionInfo CompletionService.CompleteQuery details related to the event. This field should be set in the search event when the autocomplete feature is enabled and the user clicks a search suggestion. transaction_info google.cloud.discoveryengine_v1.types.TransactionInfo Transaction metadata associated with this user event, if any. tag_ids MutableSequence[str]
A list of identifiers of independent experiment groups to which this user event belongs. This is used to differentiate user events associated with different setups on the customer side. Promotion_ids MutableSequence[str]
For events associated with a promotion, the promotion ID. This field is currently limited to at most one ID. Attribute MutableMapping[str, google.cloud.discoveryengine_v1.types.CustomAttribute]
Additional user event functionality to include in the recommended model. These attributes cannot contain data that requires further parsing or processing, such as JSON or other encodings. If you specify custom attributes for the ingested user events, include those attributes in the user events that you associate with the prediction request. The format of custom attributes must be consistent between the imported event and the event provided in the prediction request. This allows the Discovery Engine API to use these custom attributes when training models and providing predictions, helping improve recommendation quality. This field must meet all of the following criteria: Otherwise, an INVALID_ARGUMENT error is returned. – The key must be a UTF-8 encoded string with a length limit of 5,000 characters. – For text attributes, up to 400 values ​​are allowed. Empty values ​​are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. – For numeric attributes, up to 400 values ​​are allowed. For product recommendations, an example of additional user information is Traffic_channel, which is how users reach your site. Users can access the Site directly, through Google Search, or in other ways. media_info google.cloud.discoveryengine_v1.types.MediaInfo Media-specific information.

Sources

1/ https://Google.com/

2/ https://cloud.google.com/python/docs/reference/discoveryengine/0.11.10/google.cloud.discoveryengine_v1.types.UserEvent

The mention sources can contact us to remove/changing this article

What Are The Main Benefits Of Comparing Car Insurance Quotes Online

LOS ANGELES, CA / ACCESSWIRE / June 24, 2020, / Compare-autoinsurance.Org has launched a new blog post that presents the main benefits of comparing multiple car insurance quotes. For more info and free online quotes, please visit https://compare-autoinsurance.Org/the-advantages-of-comparing-prices-with-car-insurance-quotes-online/ The modern society has numerous technological advantages. One important advantage is the speed at which information is sent and received. With the help of the internet, the shopping habits of many persons have drastically changed. The car insurance industry hasn't remained untouched by these changes. On the internet, drivers can compare insurance prices and find out which sellers have the best offers. View photos The advantages of comparing online car insurance quotes are the following: Online quotes can be obtained from anywhere and at any time. Unlike physical insurance agencies, websites don't have a specific schedule and they are available at any time. Drivers that have busy working schedules, can compare quotes from anywhere and at any time, even at midnight. Multiple choices. Almost all insurance providers, no matter if they are well-known brands or just local insurers, have an online presence. Online quotes will allow policyholders the chance to discover multiple insurance companies and check their prices. Drivers are no longer required to get quotes from just a few known insurance companies. Also, local and regional insurers can provide lower insurance rates for the same services. Accurate insurance estimates. Online quotes can only be accurate if the customers provide accurate and real info about their car models and driving history. Lying about past driving incidents can make the price estimates to be lower, but when dealing with an insurance company lying to them is useless. Usually, insurance companies will do research about a potential customer before granting him coverage. Online quotes can be sorted easily. Although drivers are recommended to not choose a policy just based on its price, drivers can easily sort quotes by insurance price. Using brokerage websites will allow drivers to get quotes from multiple insurers, thus making the comparison faster and easier. For additional info, money-saving tips, and free car insurance quotes, visit https://compare-autoinsurance.Org/ Compare-autoinsurance.Org is an online provider of life, home, health, and auto insurance quotes. This website is unique because it does not simply stick to one kind of insurance provider, but brings the clients the best deals from many different online insurance carriers. In this way, clients have access to offers from multiple carriers all in one place: this website. On this site, customers have access to quotes for insurance plans from various agencies, such as local or nationwide agencies, brand names insurance companies, etc. "Online quotes can easily help drivers obtain better car insurance deals. All they have to do is to complete an online form with accurate and real info, then compare prices", said Russell Rabichev, Marketing Director of Internet Marketing Company. CONTACT: Company Name: Internet Marketing CompanyPerson for contact Name: Gurgu CPhone Number: (818) 359-3898Email: [email protected]: https://compare-autoinsurance.Org/ SOURCE: Compare-autoinsurance.Org View source version on accesswire.Com:https://www.Accesswire.Com/595055/What-Are-The-Main-Benefits-Of-Comparing-Car-Insurance-Quotes-Online View photos

ExBUlletin

to request, modification Contact us at Here or [email protected]