POST request to the product_feeds edge from the following paths: /{product_catalog_id}/product_feedsschedule parameter in the POST endpoint.curl -X POST \
-F 'name=Offer Feed' \
-F 'schedule={"interval":"DAILY","url":"http://www.example.com/offer_feed.tsv","hour":"22"}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<CATALOG_ID>/product_feeds
curl \
-F 'name= offer feed' \
-F 'access_token=<access_token>' \
https://graph.facebook.com/<API_VERSION>/<catalog_id>/product_feeds
curl \
-F "file=@offer_feed.csv;type=text/csv" \
-F "access_token=<access_token>" \
https://graph.facebook.com/<API_VERSION>/<offer_feed_id>/uploads
curl \
-F 'name=lease offer set' \
-F 'filter={"offer_type":{"eq":"lease"}}' \
-F 'access_token=<ACCESS TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<CATALOG_ID>/product_sets
| Name | Description |
|---|---|
event_nametype: string | Required. Predefined event names that allow you to capture intent from your audiences at an item level, and segment them. For automotive offer ads, only these four standard pixel events are available: ViewContent, Search, AddToWishlist, Lead.
Where to place these standard events:
Besides standard events, you can define custom pixel events as needed. |
| Name | Description |
|---|---|
content_typetype: string | Required. Parameter that designates the type of product being advertised. Example: vehicle_offer |
content_idstype: array of strings | Required for ViewContent, AddtoWishList, Lead. Recommended for Search.These IDs need to match to vehicle_offer_id in the offers feed.For ViewContent events, you should send the ID for the offer presented. For Search events, you might send an array of search results.Examples: [‘123’, ‘456’], “12345”, ‘[‘1234’, ‘4567’, ‘5678’]’ |
comscore_market_codestype: array of strings | Recommended. The Comscore market area code, which the user looks at for offers. Each string is an ID. Example: [“2079”] (or another valid Comscore Market ID) |
dma_codetype: array of strings | Recommended. The Designated Market Area (DMA) code, which the user looks at for offers. Example: 502 |
maketype: array of strings | Recommended. Make or brand of the vehicle. Example: Endomoto |
modeltype: string | Recommended. Model of the vehicle. Example: EndoHatch |
yeartype: integer | Recommended. Year the vehicle was launched in yyyy format.Example: 2015 |
body_styletype: enum | Recommended. Body style of the vehicle: CONVERTIBLE, COUPE, HATCHBACK, MINIVAN, TRUCK, SUV, SEDAN, VAN, WAGON, CROSSOVER, OTHER.Example: SEDAN |
trimtype: string | Recommended. Max characters: 50 Trim of the vehicle. Example: GE |
pricetype: string | Recommended. Cost and currency of the vehicle. Format the price as the cost, followed by the ISO currency code, with a space between cost and currency. Example: 13,999 USD |
transmissiontype: enum | Recommended. Transmission of the vehicle:: AUTOMATIC, MANUAL, OTHER, NONE.Example: AUTOMATIC |
fuel_typetype: enum | Recommended. Fuel type of the vehicle: DIESEL, ELECTRIC, FLEX, GASOLINE, HYBRID, PETROL, PLUGIN_HYBRID, OTHER, NONE.Example: ELECTRIC |
drivetraintype: enum | Recommended. Drivetrain of the vehicle: 4X2, 4X4, AWD, FWD, RWD, OTHER, NONE.Example: AWD |
preferred_price_rangetype: array of ints | Recommended. Preferred price range for vehicle. Min/max, up to 2 decimals. Example: [10000, 20000] |
content_type = vehicle_offer — Required. Used to match the onsite actions to the offer in the ad. This allows Meta to measure the performance and further optimize your campaigns.content_ids = An array of IDs of vehicle offers from the offers feed — Optional, but highly recommended for all events; however, only optional for the Search event. This field helps Meta further measure and optimize your ads.content_type vehicle_offer and add the following parameters:| Event Name | Required Parameters | Recommend Parameters |
|---|---|---|
SearchRecommended when searching for offers. | content_type | content_ids
|
ViewContentRecommended when viewing an auto offer. | content_typecontent_ids | content_ids
|
AddToWishlistRecommended when saving, favoring, or starring an offer. | content_typecontent_ids | content_ids
|
LeadRecommended when completing registration and submitting a lead form. | content_typecontent_ids | content_ids
|
<!-- vehicle offer id information not available-->
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '<FB_PIXEL_ID>'); // pixel id
fbq('track', "PageView");
fbq('track', 'ViewContent', {
content_type: 'vehicle_offer',
offer_types: ['lease', 'finance', 'cash'],
make: 'Endomoto',
model: 'EndoHatch'
year: '2017',
trim: 'GE'
});
</script>
<!-- End Meta Pixel Code -->
ViewContent pixel event.Lead pixel event. Learn more about standard events.curl \
-F 'external_event_sources=["<PIXEL_ID>","<APP_ID>"]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/external_event_sources
curl \
-F 'name=name of your event group' \
-F 'event_sources=["<PIXEL_ID>", "<APP_ID>"]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<BUSINESS_ID>/event_source_groups
curl \
-F 'name=Viewed in Last 30 days' \
-F 'subtype=CLAIM' \
-F 'claim_objective=VEHICLE_OFFER' \
-F 'content_type=vehicle_offer' \
-F 'event_source_group=<EVENT_SOURCE_GROUP_ID>' \
-F 'inclusions=[
{
"event": "ViewContent",
"retention": {"min_seconds":0,"max_seconds":2592000}
},
{
"event": "Search",
"retention": {"min_seconds":0,"max_seconds":2592000}
},
{
"event": "AddToWishlist",
"retention": {"min_seconds":0,"max_seconds":2592000}
}
]' \
-F 'exclusions=[{
"event":"Lead",
"retention": {"min_seconds":0,"max_seconds":2592000}
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/customaudiences
curl \
-F 'name=Viewed vechicles in vehicle set in Last 30 days' \
-F 'subtype=CLAIM' \
-F 'claim_objective=VEHICLE_OFFER' \
-F 'content_type=vehicle_offer' \
-F 'event_source_group=<EVENT_SOURCE_GROUP_ID>' \
-F 'rule={"vehicle_set_id":{"eq":"<VEHICLE_SET_ID>"}}' \
-F 'inclusions=[
{
"event": "ViewContent",
"retention": {"min_seconds":0,"max_seconds":2592000}
},
{
"event": "Search",
"retention": {"min_seconds":0,"max_seconds":2592000}
},
{
"event": "AddToWishlist",
"retention": {"min_seconds":0,"max_seconds":2592000}
}
]' \
-F 'exclusions=[{
"event":"Lead",
"retention": {"min_seconds":0,"max_seconds":2592000}
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/customaudiences