# Outbrain

Outbrain is an advertising platform.

Outbrain integration replicates data using the [Outbrain Amplify API](http://developer.outbrain.com/home-page/amplify-api/).

See the [Schema](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Outbrain-v2.htm#Schema) section for a list of objects available for replication.

## Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Information noteMake sure that the account you use has read access to the tables you want to fetch.

## Creating the connection

For more information, see [Connecting to SaaS applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Landing/connecting-web-applications.htm).

1. Fill in the required connection properties.

2. Provide a name for the connection in Connection name.

3. Select Open connection metadata to define metadata for the connection when it has been created.

4. Click Create.

Connection settings

| Setting | Description |
| --- | --- |
| Data gateway | Select a Data Movement gateway if required by your use case.<br><br>Information note<br><br>This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None.<br><br>For information on the benefits of Data Movement gateway and use cases that require it, see [Qlik Data Gateway - Data Movement](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/replication-gateway.htm). |
| Start Date | Enter the date, in the format `MM/DD/YYYY`, from which the data must be replicated from your source to your target. |
| Account ID | You can find your account ID in the URL of your Outbrain account, at the Overview dashboard, located between marketers and campaigns. If the URL is https://my.outbrain.com/amplify/site/marketers/your-account-id/campaigns/overview, the subdomain is your-account-id. |
| Username | Username. |
| Password | Password. |

## Schema

Information note

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

Depending on your destination, table and column names may not appear as they are outlined below.

### campaign\_performance

The `campaign_performance` table contains performance metrics for your Outbrain campaigns.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Keys** | campaignId<br><br>fromDate |
| **Replication Key** | fromDate |
| **Useful links** | [Outbrain documentation](http://docs.amplifyv01.apiary.io/#reference/performance-reporting/campaigns)<br><br>[Outbrain API method](http://docs.amplifyv01.apiary.io/#reference/performance-reporting/campaigns/retrieve-campaigns-with-performance-statistics-for-a-marketer "Opens in new tab: Outbrain API method") |

campaign\_performance table schema

| **campaignId**<br><br><br>STRING |
| --- |
| **clicks**<br><br><br>NUMBER |
| **conversionRate**<br><br><br>NUMBER |
| **conversions**<br><br><br>NUMBER |
| **cpa**<br><br><br>NUMBER |
| **ctr**<br><br><br>NUMBER |
| **ecpc**<br><br><br>NUMBER |
| **fromDate**<br><br><br>DATE |
| **impressions**<br><br><br>NUMBER |
| **spend**<br><br><br>NUMBER |

### campaigns

The `campaigns` table contains info about your Outbrain campaigns.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Outbrain documentation](http://docs.amplifyv01.apiary.io/#reference/campaigns)<br><br>[Outbrain API method](http://docs.amplifyv01.apiary.io/#reference/campaigns/campaigns-collection-via-marketer/list-all-campaigns-associated-with-a-marketer "Opens in new tab: Outbrain API method") |

campaigns table schema

| **budget**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>amount: NUMBER</li><li>amountRemaining: NUMBER</li><li>amountSpent: NUMBER</li><li>creationTime: DATE-TIME</li><li>currency: STRING</li><li>dailyTarget: NUMBER</li><li>endDate: DATE</li><li>id: STRING</li><li>lastModified: DATE-TIME</li><li>maximumAmount: NUMBER</li><li>name: STRING</li><li>pacing: STRING</li><li>runForever: BOOLEAN</li><li>shared: BOOLEAN</li><li>startDate: DATE</li><li>type: STRING</li></ul><br><br>Click to expand budget<br><br><table><tr><td><p><strong>								amount							</strong></p><p>							NUMBER						</p></td></tr><tr><td><p><strong>								amountRemaining							</strong></p><p>							NUMBER						</p></td></tr><tr><td><p><strong>								amountSpent							</strong></p><p>							NUMBER						</p></td></tr><tr><td><p><strong>								creationTime							</strong></p><p>							DATE-TIME						</p></td></tr><tr><td><p><strong>								currency							</strong></p><p>							STRING						</p></td></tr><tr><td><p><strong>								dailyTarget							</strong></p><p>							NUMBER						</p></td></tr><tr><td><p><strong>								endDate							</strong></p><p>							DATE						</p></td></tr><tr><td><p><strong>								id							</strong></p><p>							STRING						</p></td></tr><tr><td><p><strong>								lastModified							</strong></p><p>							DATE-TIME						</p></td></tr><tr><td><p><strong>								maximumAmount							</strong></p><p>							NUMBER						</p></td></tr><tr><td><p><strong>								name							</strong></p><p>							STRING						</p></td></tr><tr><td><p><strong>								pacing							</strong></p><p>							STRING						</p></td></tr><tr><td><p><strong>								runForever							</strong></p><p>							BOOLEAN						</p></td></tr><tr><td><p><strong>								shared							</strong></p><p>							BOOLEAN						</p></td></tr><tr><td><p><strong>								startDate							</strong></p><p>							DATE						</p></td></tr><tr><td><p><strong>								type							</strong></p><p>							STRING						</p></td></tr></table> |
| --- |
| **campaignOnAir**<br><br><br>BOOLEAN |
| **cpc**<br><br><br>NUMBER |
| **enabled**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **onAirReason**<br><br><br>STRING |