A product set inside the canvas
Ab dem 14. September 2021 geben die folgenden Felder ab Version 12.0 einen Fehler für Aufrufe zurück, die von Apps durchgeführt werden, die nicht über die erforderlichen Berechtigungen des Endpunkts verfügen. Diese Änderung gilt ab dem 13. Dezember 2021 für alle Versionen.
storefront_settings| Feld | Beschreibung |
|---|---|
idnumeric string | The id of the element |
bottom_paddingnumeric string | The padding below the element |
element_group_keystring | The element group key to bundle multiple elements in editing |
element_typeenum | The type of the element |
How to render overlays over a product item | |
item_descriptionstring | A token to represent which field from the product to show in the product description |
item_headlinestring | A token to represent which field from the product to show in the product headline |
max_productsunsigned int32 | Maximum number of products to show |
namestring | The name of the element |
product_set_idnumeric string | The product set id which contains a subset of products within a product catalog |
retailer_item_idslist<string> | An array of items that should be shown first in the product set element. If this is not set then products will be dynamically chosen |
show_in_feedbool | A flag that products should be shown in feed unit |
top_paddingnumeric string | The padding above the element |
| Fehler | Beschreibung |
|---|---|
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
To create a product set used in Collection ads from a set of products in Dynamic Ads:
curl
-F 'canvas_product_set={
"bottom_padding": 8,
"max_items": 50,
"name": "Collection Product Set Name",
"product_set_id": "PRODUCT_SET_ID",
"show_in_feed": true,
"item_headline": "See more at {{product.brand | titleize}}",
"item_description": "{{product.price}}",
"retailer_item_ids": [
"RETAILER_ID_1",
"RETAILER_ID_2",
"RETAILER_ID_3",
"RETAILER_ID_4",
],
"top_padding": 24
}' \
-F 'access_token=ACCESS_TOKEN' \
https://graph.facebook.com/VERSION/PAGE_ID/canvas_elements