[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-08 (世界標準時間)。"],[[["\u003cp\u003eLocal product inventory can be added by uploading a feed that describes in-store items.\u003c/p\u003e\n"],["\u003cp\u003eInventory data providers can be added to the Merchant Center by submitting their details through a provided form.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods for inserting inventory, sales, and store information, with request and response examples.\u003c/p\u003e\n"],["\u003cp\u003eEach API method has corresponding documentation for detailed information and further guidance.\u003c/p\u003e\n"]]],["Retailers can use the local feeds partnership program to share sales and inventory data with Google via data providers. Inventory data is added by uploading a local product inventory feed. The `GetLfpState` method retrieves merchant-level integration status. The `insert` method is used to add inventory, sales, and store information using `POST` requests with specific parameters such as `gtin`, `price`, `storeCode` and `targetAccount`. `SendLfpNotification` method sends notifications to retailers, including onboarding messages.\n"],null,["# Local feeds partnership API\n\nThe local feeds partnership program lets retailers participate in local\ninventory ads and free local product listings without having to create their own\nprimary and local product inventory feeds. Retailers can provide their sales and\ninventory information to a trusted data provider that can share that information\nwith Google. For the list of supported data partners, see [About the local feeds\npartnership program](//support.google.com/merchants/answer/7676652).\n\nYou can add local product inventory by uploading a local product inventory feed.\n| **Note:** The Local Feeds Partnership API can help you submit your inventory information through an approved third party data provider. Whereas, if you want to submit your inventory information by yourself, you can use the [Merchant\n| Inventories API](/merchant/api/guides/inventories/overview).\n\nTo get your inventory data provider added to the Merchant Center, provide your\ndetails at\n[Point-of-Sale Data Provider Feedback to show local product on Google](https://docs.google.com/forms/d/1gGULVx_YGWHwjE46G0LCdiL39XMRND3K3oLh8FyOmyM/viewform).\n\nTo learn about the migration from Content API for Shopping, see [Migrate local feeds partnership](/merchant/api/guides/compatibility/local-feeds-partnership).\n\nRetrieve a retailer's onboarding status\n---------------------------------------\n\nYou can use the `lfpMerchantStates.get` method to retrieve the state of the\nmerchant-level properties related to the local feeds partnership integration.\nBased on the provided properties, you can check whether the integration is\nworking as intended or if any additional action is required. \n\n GET https://merchantapi.googleapis.com/lfp/v1/accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/lfpMerchantStates/\u003cvar translate=\"no\"\u003e{TARGET_MERCHANT_ID}\u003c/var\u003e\n\nInsert an inventory\n-------------------\n\nTo insert an inventory, use the following request: \n\n POST https://merchantapi.googleapis.com/lfp/v1/\u003cvar translate=\"no\"\u003e{PARENT}\u003c/var\u003e/lfpInventories:insert\n\n {\n \"availability\": \"in stock\",\n \"collectionTime\": \"2024-01-08T08:00:00Z\",\n \"contentLanguage\": \"en\",\n \"gtin\": \"gtin\",\n \"offerId\": \"\u003cvar translate=\"no\"\u003e{OFFER_ID}\u003c/var\u003e\",\n \"pickupMethod\": \"buy\",\n \"pickupSla\": \"same day\",\n \"price\": {\n \"amountMicros\": \"1000000\",\n \"currencyCode\": \"USD\"\n },\n \"regionCode\": \"US\",\n \"storeCode\": \"\u003cvar translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e\",\n \"targetAccount\": \"\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e\"\n }\n\nReplace the following:\n\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{PARENT}\u003c/var\u003e: The format is `accounts/`\u003cvar class=\"readonly\" translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e, where \u003cvar class=\"readonly\" translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e is the unique identifier of the Merchant Center account.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{OFFER_ID}\u003c/var\u003e: The unique identifier of the product.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e: The identifier of the merchant's store.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e: The account ID of the business you want to submit the inventory for.\n\nYou can expect to see the following response: \n\n {\n \"name\": \"accounts/{merchantId}/lfpInventories/\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e~\u003cvar translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e~\u003cvar translate=\"no\"\u003e{OFFER_ID}\u003c/var\u003e\",\n \"targetAccount\": \"\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e\",\n \"storeCode\": \"123\",\n \"offerId\": \"\u003cvar translate=\"no\"\u003e{OFFER_ID}\u003c/var\u003e\",\n \"regionCode\": \"US\",\n \"contentLanguage\": \"en\",\n \"gtin\": \"gtin\",\n \"price\": {\n \"amountMicros\": \"1000000\",\n \"currencyCode\": \"USD\"\n },\n \"availability\": \"in stock\",\n \"collectionTime\": \"2024-01-08T08:00:00Z\",\n \"pickupMethod\": \"buy\",\n \"pickupSla\": \"same day\",\n \"feedLabel\": \"US\"\n }\n\nFor more information, see [Method:\naccounts.lfpInventories.insert](/merchant/api/reference/rest/lfp_v1/accounts.lfpInventories/insert).\n\nInsert a sale\n-------------\n\nTo insert a sale, use the following request: \n\n POST https://merchantapi.googleapis.com/lfp/v1/\u003cvar translate=\"no\"\u003e{PARENT}\u003c/var\u003e/lfpSales:insert\n\n {\n \"contentLanguage\": \"en\",\n \"gtin\": \"gtin\",\n \"offerId\": \"offerId\",\n \"price\": {\n \"amountMicros\": \"1000000\",\n \"currencyCode\": \"USD\"\n },\n \"quantity\": 2,\n \"regionCode\": \"US\",\n \"saleTime\": \"2024-01-08T08:00:00Z\",\n \"storeCode\": \"123\",\n \"targetAccount\": \"\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e\"\n }\n\nReplace the following:\n\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e: The account ID of the business to submit the sale for.\n\nYou can expect to see the following response: \n\n {\n \"name\": \"accounts/1000005718521947/lfpSales/\u003cvar translate=\"no\"\u003e{UUID}\u003c/var\u003e\",\n \"targetAccount\": \"\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e\",\n \"storeCode\": \"123\",\n \"offerId\": \"offerId\",\n \"regionCode\": \"US\",\n \"contentLanguage\": \"en\",\n \"gtin\": \"gtin\",\n \"price\": {\n \"amountMicros\": \"1000000\",\n \"currencyCode\": \"USD\"\n },\n \"quantity\": \"2\",\n \"saleTime\": \"2024-01-08T08:00:00Z\",\n \"uid\": \"\u003cvar translate=\"no\"\u003e{UUID}\u003c/var\u003e\",\n \"feedLabel\": \"US\"\n }\n\nFor more information, see [Method:\naccounts.lfpSales.insert](/merchant/api/reference/rest/lfp_v1/accounts.lfpSales/insert)\n\nInsert a store\n--------------\n\nTo insert a store, use the following request: \n\n POST https://merchantapi.googleapis.com/lfp/v1/\u003cvar translate=\"no\"\u003e{PARENT}\u003c/var\u003e/lfpStores:insert\n\n {\n \"storeAddress\": \"1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA\",\n \"storeCode\": \"\u003cvar translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e\",\n \"targetAccount\": \"\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e\"\n }\n\nReplace the following:\n\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e: A unique identifier of the store.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e: The account ID of the business to submit the store for.\n\nYou can expect to see the following response: \n\n {\n \"name\": \"accounts/\u003cvar translate=\"no\"\u003e{MERCHANT_ID}\u003c/var\u003e/lfpStores/\u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e~\u003cvar translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e\",\n \"targetAccount\": \"1000005718454644\",\n \"storeCode\": \"\u003cvar translate=\"no\"\u003e{STORE_CODE}\u003c/var\u003e\",\n \"storeAddress\": \"1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA\",\n \"matchingState\": \"STORE_MATCHING_STATE_MATCHED\"\n }\n\nFor more information, see [`accounts.lfpStores.insert`](/merchant/api/reference/rest/lfp_v1/accounts.lfpStores/insert).\n\nSend a notification to a retailer\n---------------------------------\n\nYou can use the `SendLfpNotification` method to send a notification to a\nretailer. For example, you can use this method to send an onboarding\nnotification to the retailer. \n\n POST https://merchantapi.googleapis.com/lfp/v1/accounts/\u003cvar translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e/lfpNotifications:send\n\n {\n \"target_account\": \u003cvar translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e,\n \"email_address\": \u003cvar translate=\"no\"\u003e{EMAIL_ADDRESS}\u003c/var\u003e,\n \"type\": \u003cvar translate=\"no\"\u003e{TYPE}\u003c/var\u003e\n }\n\nReplace the following:\n\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{ACCOUNT_ID}\u003c/var\u003e: The unique identifier of your Merchant Center account.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{TARGETMERCHANT_ID}\u003c/var\u003e: The unique identifier of the account to which you want to send the notification.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{EMAIL_ADDRESS}\u003c/var\u003e: The email address of the account to which you want to send the notification.\n- \u003cvar class=\"readonly\" translate=\"no\"\u003e{TYPE}\u003c/var\u003e: You can only pass the string value `ONBOARDING_UI` in this field."]]