Class ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource.CollectRequest
Writes a single user event from the browser. For larger user event payload over 16 KB, the POST method should be used instead, otherwise a 400 Bad Request error is returned. This method is used only by the AI Commerce Search API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
Inheritance
ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource.CollectRequest
Inherited Members
Namespace: Google.Apis.CloudRetail.v2beta
Assembly: Google.Apis.CloudRetail.v2beta.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource.CollectRequest : CloudRetailBaseServiceRequest<GoogleApiHttpBody>, IClientServiceRequest<GoogleApiHttpBody>, IClientServiceRequest
Constructors
CollectRequest(IClientService, GoogleCloudRetailV2betaCollectUserEventRequest, string)
Constructs a new Collect request.
Declaration
public CollectRequest(IClientService service, GoogleCloudRetailV2betaCollectUserEventRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudRetailV2betaCollectUserEventRequest | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The parent catalog name, such as
projects/1234/locations/global/catalogs/default_catalog.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Collect parameter list.
Declaration
protected override void InitParameters()