# Cross-Channel Conversion Optimization



Cross-channel conversion optimization (CCCO) enables you to optimize conversions for both website and
app within a single campaign. Capturing conversions from both website and app provides more data, which may lower cost per action (CPA) and increase conversions.

Here are the key benefits for advertisers:

* Simplicity — Instead of managing multiple campaigns, optimize for website and app within a
single campaign
* More conversions — With more data captured, the chances of showing ads to people who&#039;ll
convert increases
* Cost-efficiency — Reach the most people at a lower cost

## Get started

Cross-channel conversion optimization enhances conversions from both your website and app (iOS+
Android) in a single campaign. If an impression leads to a website conversion or an in-app
conversion, or both, the product counts all the conversions as optimized events.

### Restrictions

#### Objective &#123;#objective&#125;
Cross-channel conversion optimization only supports the `CONVERSIONS` objective.

#### Events &#123;#events&#125;
Cross-channel conversion optimization supports the following events:

* `PURCHASE`
* `COMPLETE_REGISTRATION`
* `ADD_PAYMENT_INFO`
* `ADD_TO_CART`
* `INITIATED_CHECKOUT`
* `SEARCH`
* `CONTENT_VIEW`
* `LEAD`
* `ADD_TO_WISHLIST`
* `SUBSCRIBE` 1
* `START_TRIAL` 1

#### Bid strategy &#123;#bid-strategy&#125;
With or without campaign budget optimization (CBO), cross-channel conversion optimization only
supports these bid strategies:

* `LOWEST_COST_WITHOUT_CAP`
* `LOWEST_COST_WITH_BID_CAP`

#### Placements &#123;#placements&#125;

Cross-channel conversion optimization is available for all Instagram and Facebook placements,
including Automatic Placements. **Exceptions**: Audience Network, Messenger, Facebook Instant
Article, and Placement Asset Customization.

**Note:** `SUBSCRIBE` and `START_TRIAL` support are currently being considered.

## Ad Set
Set the optimization goal to `OFFSITE_CONVERSIONS` to optimize ad delivery for offsite conversions, if you configure your pixel to send offsite conversions.

To use cross-channel conversion optimization, set the following fields to their respective values:

* Optimization goal &gt; Set to `OFFSITE_CONVERSIONS`.
* Bid strategy &gt; See Bid strategy.
* Billing event &gt; Set to `IMPRESSIONS`.

### Omnichannel object

The `omnichannel_object` field is available in the [Ad Set](https://developers.facebook.com/documentation/ads-commerce/marketing-api/reference/ad-promoted-object).

For omnichannel object validation:

* All `custom_event_type` fields in the app and pixel must be of the same event.
* Both app SDK and pixel are required.
* Current ad accounts must have access to all app- and pixel-promoted objects.

| Field | Type | Description |
| --- | --- | --- |
| `app` | `list&lt;AppPromotedObject&gt;` | App-promoted objects associated with this omnichannel object.&lt;br&gt;&lt;br&gt;* `application_id` — Type: string. Application ID being promoted.&lt;br&gt;* `object_store_urls`—Type: `list&lt;string&gt;`. List of object store URLs associated with `application_id` (Play Store and/or iTunes).&lt;br&gt;* `custom_event_type`—Type: Event enum. Event that will be optimized.&lt;br&gt;&lt;br&gt;For app-promoted object validation:&lt;br&gt;&lt;br&gt;* All `object_store_urls` **must** be associated with that application. You can configure this on [developers.facebook.com](https://developers.facebook.com/) under your application settings.&lt;br&gt;&lt;br&gt;* `custom_event_type` **must** be one of those supported [events](#events). |
| `pixel` | `list&lt;PixelPromotedObject&gt;` | Pixel-promoted objects associated with this omnichannel object.&lt;br&gt;&lt;br&gt;* `pixel_id` — Type: string. Pixel ID being promoted.&lt;br&gt;* `pixel_rule`—Type: JSON. Optional. Pixel custom conversion rule.&lt;br&gt;* `custom_event_type`—Type: Event enum. Event that will be optimized. For app-promoted object validation, `custom_event_type` **must** be one of those supported [events](#events). |

#### Example: Ad set with omnichannel object

```
&#123;
     daily_budget: 20000,
     optimization_goal: CONVERSIONS,
     promoted_object: &#123;
         omnichannel_object: &#123;
             app: [
                 &#123;
                     application_id: ,
                     custom_event_type: PURCHASE,
                     object_store_urls: [
                         &quot;https://play.google.com/store/apps/details?id=com.facebook.ka&quot;
                         &quot;https://apps.apple.com/us/app/facebook/id284882215&quot;,
                     ],
                 &#125;,
             ],
             pixel: [
                 &#123;
                     pixel_id,
                     custom_event_type: PURCHASE
                 &#125;,
             ],
         &#125;
     &#125;
&#125;
```

## Ad
You can select the desired destination where advertisers want users to land when they click their
ad — from a desktop or app. Advertisers are required to insert the corresponding links — website, iOS
app deep link, or Android app deep link given the chosen destination option. Learn more about
[product deep links](https://developers.facebook.com/documentation/ads-commerce/catalog/guides/product-deep-links).

| Field | Type | Description |
| --- | --- | --- |
| `creative` | Creative spec | **Required for create**. The ID or creative spec of the ad creative is to be used by this ad. Learn more about [ad creatives](https://developers.facebook.com/documentation/ads-commerce/marketing-api/reference/ad-creative).&lt;br&gt;&lt;br&gt;`&#123;&quot;creative_id&quot;: &#125;`&lt;br&gt;&lt;br&gt;or creative spec as follows:&lt;br&gt;&lt;br&gt;```
&#123;
   &quot;creative&quot;: &#123;
      &quot;name&quot;: &quot;&quot;,
      &quot;applink_treatment&quot;: &quot;&quot;
      &quot;object_story_spec&quot;: ,
      &quot;omnichannel_link_spec&quot;:
   &#125;
&#125;
``` |
| `tracking_specs` | List of tracking spec | Required tracking spec for conversion tracking. For ad validation, see the required specs below and respective example. |

For ad validation:

* The tracking spec&#039;s (`tracking_specs`)`pixel_id` and `application_id` must be consistent with those in `promoted_object`.
* `tracking_specs` must include these specs:
| Tracking Spec | Code Sample |
| --- | --- |
| Pixel | ```
&#123;
       &quot;action.type&quot;: [&quot;offsite_conversion&quot;],
       &quot;fb_pixel&quot;: [pixel_id]
&#125;
``` |
| App install | ```
&#123;
       &quot;action.type&quot;: [&quot;mobile_app_install&quot;],
       &quot;application&quot;: [application_id]
&#125;
``` |
| App event | ```
&#123;
       &quot;action.type&quot;: [&quot;app_custom_event&quot;],
       &quot;application&quot;: [application_id]
&#125;
``` |

#### Example: Ad object

```
&#123;
     &quot;name&quot;: &quot;sample ad&quot;
     &quot;adset_id&quot;: &quot;6170648652866&quot;,
     &quot;creative&quot;: &#123;
         &quot;creative_id&quot;: creative_id,
    &#125;
    &quot;status&quot;: &quot;PAUSED&quot;,
    &quot;tracking_specs&quot;: [
        &#123;
            &quot;action.type&quot;: [&quot;offsite_conversion&quot;],
            &quot;fb_pixel&quot;: [pixel_id]
        &#125;
        &#123;
            &quot;action.type&quot;: [&quot;mobile_app_install&quot;],
            &quot;application&quot;: [application_id]
        &#125;
        &#123;
            &quot;action.type&quot;: [&quot;app_custom_event&quot;],
            &quot;application&quot;: [application_id]
        &#125;
    ]
&#125;
```

## Creative

### Advantage+ catalog ads

For Advantage+ catalog ads, `template_url_spec` can be used to specify deep links in the creative. In this field, you may use dynamic fields such as product URL or ID.

`template_url_spec` follows this specification.

#### Example: Template URL spec

```
&#123;
   &quot;creative&quot;:&#123;
      &quot;applink_treatment&quot;:&quot;deeplink_with_web_fallback&quot;,
      &quot;template_url_spec&quot;:&#123;
         &quot;android&quot;:&#123;
            &quot;url&quot;:&quot;example://product/&#123;&#123;product.retailer_id | urlencode&#125;&#125;&quot;
         &#125;,
         &quot;config&quot;:&#123;
            &quot;app_id&quot;:&quot;&lt;APPLICATION_ID&gt;&quot;
         &#125;,
         &quot;ios&quot;:&#123;
            &quot;url&quot;:&quot;example://product/&#123;&#123;product.name | urlencode&#125;&#125;&quot;
         &#125;,
         &quot;web&quot;:&#123;
            &quot;url&quot;:&quot;https://www.example.com/deeplink/&#123;&#123;product.name | urlencode&#125;&#125;&quot;
         &#125;
      &#125;
   &#125;,
&#125;
```

### Manual upload ads

For manual upload ads, `omnichannel_link_spec` is used instead of `template_url_spec`. It includes the following fields:

| Field | Type | Description |
| --- | --- | --- |
| `web` | Web configuration | Pixel-promoted objects associated with this omnichannel object.&lt;br&gt;&lt;br&gt;* `url`—Type: string. Website that the user lands on via the browser. For web validation, `url` must be the same as the link provided in `link_data`. |
| `app` | App destination configuration | App-promoted objects associated with this omnichannel object.&lt;br&gt;&lt;br&gt;* `application_id`—Type: string. Website that the user lands on via the browser. For web validation, `application_id` must be consistent as the `application_id` in `omnichannel_object` within `promoted_object`.&lt;br&gt;* `platform_specs`—Type: JSON. Landing destination configuration per the platform. |

### Platform specifications
| Field | Type | Description |
| --- | --- | --- |
| `android` | JSON | Landing configuration for Android app. For web validation, `ios`, `ipad`, `iphone` are mutually exclusive. There can only be one of those keys that exist in the `platform_specs`.&lt;br&gt;&lt;br&gt;* `url`—Type: string. Deep link to open the app. Learn more about [product deep links](https://developers.facebook.com/documentation/ads-commerce/catalog/guides/product-deep-links). |
| `ios` | JSON | Landing configuration for iOS app. For web validation, `ios`, `ipad`, `iphone` are mutually exclusive. There can only be one of those keys that exist in the `platform_specs`.&lt;br&gt;&lt;br&gt;* `url`—Type: string. Deep link to open the app. Learn more about [product deep links](https://developers.facebook.com/documentation/ads-commerce/catalog/guides/product-deep-links). |
| `ipad` | JSON | Landing configuration for iPad-only app. For web validation, `ios`, `ipad`, `iphone` are mutually exclusive. There can only be one of those keys that exist in the `platform_specs`.&lt;br&gt;&lt;br&gt;* `url`—Type: string. Deep link to open the app. Learn more about [product deep links](https://developers.facebook.com/documentation/ads-commerce/catalog/guides/product-deep-links). |
| `iphone` | JSON | Landing configuration for iPhone-only app. For web validation, `ios`, `ipad`, `iphone` are mutually exclusive. There can only be one of those keys that exist in the `platform_specs`.&lt;br&gt;&lt;br&gt;* `url`—Type: string. Deep link to open the app. Learn more about [product deep links](https://developers.facebook.com/documentation/ads-commerce/catalog/guides/product-deep-links). |

#### Example: Omnichannel link spec

```
&#123;
  &quot;applink_treatment&quot;: &quot;deeplink_with_web_fallback&quot;,
  &quot;omnichannel_link_spec&quot;: &#123;
      &quot;web&quot;: &#123;
        &quot;url&quot;: web_url
      &#125;,
      &quot;app&quot;: &#123;
        &quot;application_id&quot;: application_id,
        &quot;platform_specs&quot;: &#123;
          &quot;android&quot;: &#123;
            &quot;url&quot;: android_deeplink
          &#125;,
          &quot;ios&quot;: &#123;
            &quot;url&quot;: ios_deeplink
          &#125;
        &#125;
      &#125;
   &#125;,
  &quot;object_story_spec&quot;: &#123;
    &quot;instagram_user_id&quot;: &quot;&lt;IG_USER_ID&gt;&quot;,
    &quot;page_id&quot;: &quot;&quot;,
    &quot;link_data&quot;: &#123;
      &quot;call_to_action&quot;: &#123;
        &quot;type&quot;: &quot;LEARN_MORE&quot;,
      &#125;,
      &quot;link&quot;: web_url,
      &quot;message&quot;: &quot;Purchase now!&quot;,
      &quot;name&quot;: &quot;Sample creative&quot;
    &#125;
  &#125;,
  &quot;object_type&quot;: &quot;SHARE&quot;
&#125;
```


---

Full documentation index for this product: https://developers.facebook.com/documentation/ads-commerce/llms.txt
