Collaborative Ads allows producers, such as consumer-packaged goods advertisers to run ad campaigns to drive people to seller platforms. Such platforms include online retailer websites or apps and those that can measure, retarget, and optimize towards people who have interacted with the producers' products on the seller platforms. Access to the Collaborative Ads features is provided on a limited basis only. Please contact your Facebook Representative.
To use Collaborative Ads features, the sellers need to implement the following required standard events with their respective parameters. If you're not familiar with app events and parameters, or you need to set up Facebook SDK for iOS, see Getting Started with App Events for iOS.
The seller platform needs to provide the following standard events.
Event Name | Description | Required Parameters | Optional Parameters |
---|---|---|---|
View Content: valueToSum: Price of item viewed (if applicable) | When a product page is viewed. A person lands on a product details page. |
|
|
Add to Cart: valueToSum: Price of item added (required) | When a product is added to the shopping cart. A person clicks Add to Cart. |
| |
Purchase: FBSDKAppEventNamePurchased Use the valueToSum: Purchase price (required) | When a purchase is made or checkout flow is completed. A person has finished the purchase or checkout flow and lands on thank you or confirmation page. |
|
Parameter: FBSDKAppEventParameterName | Description | Value Type |
---|---|---|
Content: | A string of an array of JSON objects that contains the International Article Number (EAN) when applicable, or other product or content identifier(s) associated with the event (Product Group ID is not supported) and quantities of the products. Required: Example: Note: This parameter is required for |
|
Content ID: | Product IDs associated with the event, such as SKUs (Product Group ID is not supported). Example: |
|
Content Type: | Must be Note: |
|
Currency: | Currency for the value specified in ISO 4217 currency code. Example: |
|
Value: | Value of a user performing this event to the business.
Example: |
|
[FBSDKAppEvents logEvent:FBSDKAppEventNameViewedContent valueToSum:54.23 parameters:@{ FBSDKAppEventParameterNameCurrency : @"USD", FBSDKAppEventParameterNameContentType : @"product", FBSDKAppEventParameterNameContent : @"[{\"id\": \"1234\", \"quantity\": 1}]";
Or, with minimal parameters:
[FBSDKAppEvents logEvent:FBSDKAppEventNameViewedContent valueToSum:54.23 parameters:@{ FBSDKAppEventParameterNameCurrency : @"USD", FBSDKAppEventParameterNameContentType : @"product", FBSDKAppEventParameterNameContentID : @"1234";
Note: The minimal parameter setup is valid for ViewContent
only and not valid for AddToCart
and Purchase
.
[FBSDKAppEvents logEvent:FBSDKAppEventNameAddedToCart valueToSum:54.23 parameters:@{ FBSDKAppEventParameterNameCurrency : @"USD", FBSDKAppEventParameterNameContentType : @"product", FBSDKAppEventParameterNameContent : @"[{\"id\": \"1234\", \"quantity\": 2}, {\"id\": \"5678\", \"quantity\": 1}]" } ];
[FBSDKAppEvents logPurchase:54.23 currency: @"USD" parameters:@{ FBSDKAppEventParameterNameContentType : @"product", FBSDKAppEventParameterNameContent : @"[{\"id\": \"1234\", \"quantity\": 2}, {\"id\": \"5678\", \"quantity\": 1}]" } ];
Content: "[\"id\": \"SKU-123\"}, {\"id\": \"SKU-456\"}]"
- Missing quantity
key.ContentID: "SKU-123,SKU-456,SKU-789"
- Missing an array symbol.ContentID: []
- Missing SKU IDs in an array.ContentType: "soap"
- The value is not "product"
.Currency: "$"
- Cannot use a currency symbol format.valueToSum: "5000,00"
- Wrong format (should not be a string with comma).