Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.CatalogsResource.EventStoresResource.UserEventsResource.CollectRequest

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.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleApiHttpBody>
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>
ProjectsResource.LocationsResource.CatalogsResource.EventStoresResource.UserEventsResource.CollectRequest
Implements
IClientServiceRequest<GoogleApiHttpBody>
IClientServiceRequest
Inherited Members
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.Xgafv
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.AccessToken
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.Alt
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.Callback
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.Fields
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.Key
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.OauthToken
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.PrettyPrint
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.QuotaUser
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.UploadType
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.UploadProtocol
ClientServiceRequest<GoogleApiHttpBody>.Execute()
ClientServiceRequest<GoogleApiHttpBody>.ExecuteAsStream()
ClientServiceRequest<GoogleApiHttpBody>.ExecuteAsync()
ClientServiceRequest<GoogleApiHttpBody>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleApiHttpBody>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleApiHttpBody>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleApiHttpBody>.CreateRequest(bool?)
ClientServiceRequest<GoogleApiHttpBody>.GenerateRequestUri()
ClientServiceRequest<GoogleApiHttpBody>.GetBody()
ClientServiceRequest<GoogleApiHttpBody>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleApiHttpBody>.ETagAction
ClientServiceRequest<GoogleApiHttpBody>.ModifyRequest
ClientServiceRequest<GoogleApiHttpBody>.ValidateParameters
ClientServiceRequest<GoogleApiHttpBody>.ApiVersion
ClientServiceRequest<GoogleApiHttpBody>.RequestParameters
ClientServiceRequest<GoogleApiHttpBody>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.RecommendationsAI.v1beta1
Assembly: Google.Apis.RecommendationsAI.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.EventStoresResource.UserEventsResource.CollectRequest : RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>, IClientServiceRequest<GoogleApiHttpBody>, IClientServiceRequest

Constructors

CollectRequest(IClientService, string)

Constructs a new Collect request.

Declaration
public CollectRequest(IClientService service, string parent)
Parameters
Type Name Description
IClientService service
string parent

Properties

Ets

Optional. The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.

Declaration
[RequestParameter("ets", RequestParameterType.Query)]
public virtual long? Ets { get; set; }
Property Value
Type Description
long?

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleApiHttpBody>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleApiHttpBody>.MethodName

Parent

Required. The parent eventStore name, such as projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store.

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleApiHttpBody>.RestPath

Uri

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.

Declaration
[RequestParameter("uri", RequestParameterType.Query)]
public virtual string Uri { get; set; }
Property Value
Type Description
string

UserEvent

Required. URL encoded UserEvent proto.

Declaration
[RequestParameter("userEvent", RequestParameterType.Query)]
public virtual string UserEvent { get; set; }
Property Value
Type Description
string

Methods

InitParameters()

Initializes Collect parameter list.

Declaration
protected override void InitParameters()
Overrides
RecommendationsAIBaseServiceRequest<GoogleApiHttpBody>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX