---
title: '使用本地库存数据源'
description: '1. 我为什么要分享此数据？ 为了向您的购物者提供最佳体验，我们建议您在线下设置过程中向我们提供本地库存文件。 这向Criteo提供了您商店网络中的本地产品价格和供应情况，确保我们准确地将购物者引导到供应该产品的商店。 2. 格式概述和频率 我们接受CSV或TSV（逗号分隔值或制表符分隔值）文件。…'
language: zh
guide: zYwi3Leylx
updated: 2025-08-25T13:26:44Z
canonical: https://help.criteo.com/kb/guide/zh/-zYwi3Leylx/Steps/775588
alternates:
  de: https://help.criteo.com/kb/guide/de/lokales-inventar-zYwi3Leylx.md
  en: https://help.criteo.com/kb/guide/en/using-a-local-inventory-feed-zYwi3Leylx.md
  es: https://help.criteo.com/kb/guide/es/inventario-local-zYwi3Leylx.md
  fr: https://help.criteo.com/kb/guide/fr/inventaire-local-zYwi3Leylx.md
  it: https://help.criteo.com/kb/guide/it/inventory-locale-zYwi3Leylx.md
  ja: https://help.criteo.com/kb/guide/ja/-zYwi3Leylx.md
  ko: https://help.criteo.com/kb/guide/ko/local-inventory-zYwi3Leylx.md
  pt: https://help.criteo.com/kb/guide/pt/inventario-local-zYwi3Leylx.md
---

> Index of this knowledge base: https://help.criteo.com/llms.txt
>
> Interactive version: https://help.criteo.com/kb/guide/zh/-zYwi3Leylx/Steps/775588

# 使用本地库存数据源

<a id="step-775588"></a>

## 使用本地库存数据源

**1\. 我为什么要分享此数据？**

为了向您的购物者提供最佳体验，我们建议您在线下设置过程中向我们提供本地库存文件。  这向Criteo提供了您商店网络中的本地产品价格和供应情况，确保我们准确地将购物者引导到供应该产品的商店。

  

**2\. 格式概述和频率**

-   我们接受CSV或TSV（逗号分隔值或制表符分隔值）文件。
    
-   标头必须在文件的第一行声明，并且必须以小写形式提供，不带任何空格。
    
-   文件的每一行必须是store\_id和item\_id的不同组合。
    
-   文件可以上传到Criteo FTP或SFTP，也可由Criteo从您自己的FTP、SFTP或http(s) 服务器下载。  与您的Criteo客户策略师联系，商定最适合您的集成方法。
    
-   默认情况下，我们要求每日文件更新，但如果需要，可以提高更新频率，具体取决于文件大小。
    
-   必须完整提供所有文件数据源源更新（store\_id和item\_id），包括缺货产品的标记。
    
-   请注意：如果新文件不包含过去提供的store\_id和item\_id，则有关此store\_id和item\_id的信息将在24小时后丢失。
    
-   如果我们没有收到给定store\_id和item\_id的信息，则将视为该商品在该商店缺货。
    
-   如果store\_id和item\_id缺少价格，我们将视为有关产品缺货。
    
-   如果数据源中缺少store\_id和item\_id，我们将使用您主Criteo产品目录中相同item\_id的价格和供应情况。
    

  

  

**3\. 必填字段列表  
  
**

3.1.1 **store\_id**

商店的ID，

必须与您在线下销售数据源中发送的值相匹配。

**值：**字符串。  

**示例：**1so546

  

  

3.1.2 **item\_id**

产品的ID，

必须与您在线下销售数据源、Criteo OneTag和主Criteo产品数据源中发送的值相匹配。

**值：**字符串。

**示例：**p123tc

  

  

3.1.3 **数量**

商店有货的商品数量。

请注意：如果未提供产品的供应情况，我们将在数量 > 2时视为某商店供应有关产品。

**值：**整数。

**示例：**14

  

  

3.1.4 **价格**

这是制造商提供的产品建议零售价。

价格将以与您的网站相同的货币显示。  仅使用句点（.）作为小数点分隔符填充此字段的数字值，不使用千位分隔符。

**值：**浮动。

**示例：**1299.99

  

 3.1.5 **销售价格**

这是产品在商店内可供购买的价格。

价格将以与您的网站相同的货币显示。  仅使用句点（.）作为小数点分隔符填充此字段的数字值，不使用千位分隔符。  
**_此字段为选填字段_**

**值：**浮动。

**示例：**999.99

  

  

3.1.6 **供应情况**

这表明产品在指定store\_id是否有货。  
在此可以使用3个值：  
预订：商品可订购，但目前无法发货。  
有货：商品可订购以及发货。  
缺货：商品不可订购或发货。  
请注意：标有“缺货”的商品将从横幅中排除。  
**_此字段为选填字段_**

**值：**字符串。

**示例：**有货

- If "如何将我的线下销售数据传递给Criteo？": [如何将我的线下销售数据传递给Criteo？](#step-910811)
- If "产品目录规范": [产品目录规范](#step-910810)

<a id="step-910811"></a>

## 如何将我的线下销售数据传递给Criteo？

<a id="step-Yf95KPKbjB-775624"></a>

## 如何将我的线下销售数据传递给Criteo？

有3种方式可以将您的线下销售数据传递给Criteo。  请访问更新后的支持页面以获取更多详细信息：

1.  **平面文件目录集成**
    
2.  **线下销售数据加载API**
    
3.  **数据合作伙伴集成。** 我们的战略合作伙伴关系使您能够利用直接集成，轻松地通过您的数据合作伙伴（例如CRM和营销软件提供商、数字收据和忠诚度提供商、集成平台和销售点提供商）向我们传递您的线下销售数据。
    

  
线下销售数据文件必须包括：

-   购物者ID（以加密电子邮箱形式提供）
    
-   交易数据（即价格和数量）
    
-   产品级别数据（即产品ID）
    
-   商店ID
    
-   时间戳（精确到分钟）
    

  
为了开展商店转化广告活动，您还需要：

-   传递您的商店目录以在广告中提供相关的商店详情
    
-   使用Criteo OneTag采集线上商店意图
    
-   传递您的本地库存_（可选）_以筛选每家商店哪些产品有货
    

 _请与您的Criteo客户策略师联系以了解更多信息。_

- If "线下销售数据加载——平面文件数据源集成": [线下销售数据加载——平面文件数据源集成](#step-Yf95KPKbjB-914151)
- If "线下销售数据加载——API集成": [线下销售数据加载——API集成](#step-Yf95KPKbjB-914149)
- If "商店目录": [商店目录](#step-Yf95KPKbjB-914152)
- If "使用Criteo OneTag采集线上商店意图": [使用Criteo OneTag采集线上商店意图](#step-Yf95KPKbjB-914153)
- If "使用本地库存数据源": [使用本地库存数据源](#step-Yf95KPKbjB-914150)
- If "Activate the Criteo Offline Sales native Snowflake app": [Activate the Criteo Offline Sales native Snowflake app](#step-Yf95KPKbjB-4469234)

<a id="step-Yf95KPKbjB-914151"></a>

## 线下销售数据加载——平面文件数据源集成

See [线下销售数据加载——平面文件数据源集成](https://help.criteo.com/kb/guide/zh/-8g1zFYawMy.md).

This path ends here.

<a id="step-Yf95KPKbjB-914149"></a>

## 线下销售数据加载——API集成

See [Offline sales onboarding - API integration](https://help.criteo.com/kb/guide/en/offline-sales-onboarding-api-integration-ssFLphogRs/Steps/775602).

This path ends here.

<a id="step-Yf95KPKbjB-914152"></a>

## 商店目录

See [商店目录](https://help.criteo.com/kb/guide/zh/-SHaqqKX3FY.md).

This path ends here.

<a id="step-Yf95KPKbjB-914153"></a>

## 使用Criteo OneTag采集线上商店意图

See [Capture online store intent with Criteo OneTag](https://help.criteo.com/kb/guide/en/capture-online-store-intent-with-criteo-onetag-qRtjqWgKzF/Steps/775618).

This path ends here.

<a id="step-Yf95KPKbjB-914150"></a>

## 使用本地库存数据源

_Part of this guide is not public._

This path ends here.

<a id="step-Yf95KPKbjB-4469234"></a>

## Activate the Criteo Offline Sales native Snowflake app

[Video](https://content-enablement.wistia.com/medias/81q3t6ntsv)

> **Tip:** **Before you get started, ensure that:** 
>
> 1.  You reach out to a Criteo representative to activate this integration. 
>     
>
> 2.  You have the Criteo partner ID. 
>     
>
> 3.  You have the Account Admin Role assigned to you in Snowflake. 
>     
>
> 4.  You have the offline sales data table that includes Timestamp, Email address/ Hashed email, Transaction ID, Total purchase amount, Currency (optional) and a column with an array of products being purchased with this transaction that contains the Product Id, price and amount.

The Criteo Offline Sales app enables secure sharing of your offline sales data from your Snowflake environment directly into Commerce Growth. This allows you to connect offline sales with online behavior, supporting store attribution and campaign optimization.  

##### **Install the Criteo Offline Sales app**

1.  Open the Snowflake interface. 
    

2.  From the left navigation menu, go to **Data Products > Marketplace.** Then, search for **Criteo Offline Sales**. 
    
3.  Click **Get**.  
    
4.  When prompted, grant permission to access Criteo API endpoints and share data over SSL by clicking **Connect**.   
    

Your app installation is done.

Next: [Configure the Criteo Offline Sales app](#step-Yf95KPKbjB-4469235)

<a id="step-Yf95KPKbjB-4469235"></a>

## Configure the Criteo Offline Sales app

Once you have installed the app, you can configure it by following the steps below. 

1.  The first step is to enter your **Account Id** provided to you by a Criteo representative.   
    
2.  Next, you will be prompted to select and allow access to the table that keeps your offline sales data. Select the table and click **Save**.   
    
3.  For each column in the table, select the corresponding field in the database. Optionally, you can choose to provide access to Cortext AI for simplified table mapping. If you use AI mapping, a manual review is recommended to ensure accurate mapping.    
    
4.  The final step is to schedule the import to enable data change tracking and execute imports. Under the **Import** section, click **Enable data change tracking**. Once this is enabled, you will see the **Start Import** button. Your import will run successfully. 
    
5.  To see the import history and the time the latest import was running, navigate to the Dashboard section.

Next: [What happens next?](#step-Yf95KPKbjB-4469238)

<a id="step-Yf95KPKbjB-4469238"></a>

## What happens next?

Once the configuration is complete: 

-   All changes to the selected table will automatically sync with Criteo. 
    

-   Offline sales data will appear on the Criteo platform within minutes. 
    

-   This data will be incorporated into attribution reporting and will be available for targeting within Commerce Growth.

This path ends here.

_End of the embedded guide "如何将我的线下销售数据传递给Criteo？"._

<a id="step-910810"></a>

## 产品目录规范

_Part of this guide is not public._

This path ends here.
