# LinkedIn Ads

## Authentication methods

#### OAuth

OAuth with LinkedIn uses your own OAuth credentials, not Omnata's. To create them:

1. Visit [https://developer.linkedin.com](https://developer.linkedin.com/)
2. Click "Create App"
3. Give your app a Name and associate it with your LinkedIn company page (this will not make your app visible publicly)
4. Upload a logo for this app, only you will see this during the OAuth flow from Snowflake
5. Once your app is created, add an authorised URL for your Snowflake account.

{% hint style="info" %}
The following Snowflake query will construct the correct value for your account:\
\
`select 'https://'||get(parse_json(SYSTEM$allowlist()),0):"host"::varchar||'/oauth/complete-secret' as REDIRECT_URL;`
{% endhint %}

1. Ensure the following OAuth scopes are included: r\_ads, r\_ads\_reporting, r\_organization\_social
2. Generate a Client Secret, copy it along with the Client ID

<figure><img src="https://2119005510-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FedNbhp7XNeTdK7we4Ka5%2Fuploads%2Fgit-blob-943f7102148448fbecd30aed1103278bb94502d3%2Fimage.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## Inbound Syncs

The following streams are supported:

* [campaigns](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-campaigns)
* [accounts](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-accounts)
* [ad analytics](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting) at a daily granularity for 16 of the [pivot values](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting?view=li-lms-2024-03\&tabs=http#query-parameters-2)

## Outbound Syncs

Currently there is no outbound sync functionality, but uploading offline conversions is coming soon!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.omnata.com/omnata-product-documentation/omnata-sync-for-snowflake/apps/linkedin-ads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
