Skip to main content

placements

Creates, updates, deletes, gets or lists a placements resource.

Overview

Nameplacements
TypeResource
Idgoogle.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:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_catalogs_placements_searchexecprojectsId, locationsId, catalogsId, placementsIdPerforms 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_predictexecprojectsId, locationsId, catalogsId, placementsIdMakes 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.

NameDatatypeDescription
catalogsIdstring
locationsIdstring
placementsIdstring
projectsIdstring

Lifecycle Methods

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 }}"
}';