# Meta Marketing

## Authentication methods

### App Access Token

1. Create a Meta Developer account at developers.facebok.com which should link to your business account(s) by your identity.
2. Create an app
   1. Pick the relevant business portfolio(s)
   2. App functionality; pick the option 'Other'
   3. App type; pick the option 'Business'
   4. Name the app 'Omnata Sync'
3. Add products to your app - Marketing API
4. Follow the Meta docs to [get your app Access Token](https://developers.facebook.com/docs/facebook-login/guides/access-tokens/#apptokens).\
   You will only need the access token to connect via Omnata, the App ID and App Secret are not required.

[This video](https://youtu.be/E9H8bjZrtPo?si=pOXFTKbwVjxgl-lE), not created directly for Omnata, provides a useful overview of the steps.

## Inbound Syncs

The following streams are supported:

* Ads
* Ad Sets
* Campaigns
* Insights Ads Performance Daily

## 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/meta_marketing.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.
