placements
Creates, updates, deletes, gets or lists a placements
resource.
Overview
Name | placements |
Type | Resource |
Id | google.retail.placements |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_catalogs_placements_search | exec | projectsId , locationsId , catalogsId , placementsId | Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. | |
projects_locations_catalogs_placements_predict | exec | projectsId , locationsId , catalogsId , placementsId | Makes a recommendation prediction. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
catalogsId | string | |
locationsId | string | |
placementsId | string | |
projectsId | string |
Lifecycle Methods
- projects_locations_catalogs_placements_search
- projects_locations_catalogs_placements_predict
Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
EXEC google.retail.placements.projects_locations_catalogs_placements_search
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@catalogsId='{{ catalogsId }}' --required,
@placementsId='{{ placementsId }}' --required
@@json=
'{
"branch": "{{ branch }}",
"query": "{{ query }}",
"visitorId": "{{ visitorId }}",
"userInfo": "{{ userInfo }}",
"pageSize": {{ pageSize }},
"pageToken": "{{ pageToken }}",
"offset": {{ offset }},
"filter": "{{ filter }}",
"canonicalFilter": "{{ canonicalFilter }}",
"orderBy": "{{ orderBy }}",
"facetSpecs": "{{ facetSpecs }}",
"dynamicFacetSpec": "{{ dynamicFacetSpec }}",
"boostSpec": "{{ boostSpec }}",
"queryExpansionSpec": "{{ queryExpansionSpec }}",
"variantRollupKeys": "{{ variantRollupKeys }}",
"pageCategories": "{{ pageCategories }}",
"searchMode": "{{ searchMode }}",
"personalizationSpec": "{{ personalizationSpec }}",
"labels": "{{ labels }}",
"spellCorrectionSpec": "{{ spellCorrectionSpec }}",
"entity": "{{ entity }}",
"conversationalSearchSpec": "{{ conversationalSearchSpec }}",
"tileNavigationSpec": "{{ tileNavigationSpec }}",
"languageCode": "{{ languageCode }}",
"regionCode": "{{ regionCode }}",
"placeId": "{{ placeId }}",
"userAttributes": "{{ userAttributes }}"
}';
Makes a recommendation prediction.
EXEC google.retail.placements.projects_locations_catalogs_placements_predict
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@catalogsId='{{ catalogsId }}' --required,
@placementsId='{{ placementsId }}' --required
@@json=
'{
"userEvent": "{{ userEvent }}",
"pageSize": {{ pageSize }},
"pageToken": "{{ pageToken }}",
"filter": "{{ filter }}",
"validateOnly": {{ validateOnly }},
"params": "{{ params }}",
"labels": "{{ labels }}"
}';