> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Snapchat Ads OAuth Connector

## Intro

Snapchat represents a new direction in social media, with its predominantly young users craving a more in-the-moment way of sharing and communicating via technology. Use Domo's Snapchat Ads OAuth Connector to receive details about organizations, ads, campaigns and more. To learn more about the Snapchat Ads API, visit their page ([https://developers.snapchat.com/ads/](https://developers.snapchat.com/ads/ "https://developers.snapchat.com/ads/") ).

You connect to your Snapchat Ads account in the Data Center. This topic discusses the fields and menus that are specific to the Snapchat Ads OAuth connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in [Adding a DataSet Using a Connector](https://domo-support.domo.com/s/article/360042926274?language=en_US "Adding a DataSet Using a Connector").

## Prerequisites

To connect to your Snapchat Ads OAuth account and create a DataSet, you must have the username and password of a Snapchat Ads account that has access to the Ad accounts you are interested in.

## Connecting to Your Snapchat Ads OAuth Account

This section enumerates the options in the **Credentials** and **Details** panes in the Snapchat Ads OAuth Connector page. The components of the other panes in this page, **Scheduling** and **Name & Describe Your DataSet**, are universal across most connector types and are discussed in greater length in [Adding a DataSet Using a Data Connector](https://domo-support.domo.com/s/article/360042926274?language=en_US "Adding a DataSet Using a Data Connector").

### Credentials Pane

The Domo Snapchat Ads OAuth connector uses OAuth to connect, so there is no need to enter credentials within Domo. Click **Connect** (or select **Add Account** if you have existing Snapchat Ads accounts in Domo) to open the Snapchat Ads OAuth screen where you can enter your Snapchat Ads credentials. Once you have entered valid Snapchat Ads credentials, you can use the same account any time you go to create a new Snapchat Ads OAuth DataSet. You can manage connector accounts in the **Accounts** tab in the Data Center. For more information about this tab, see [Manage Connectors Accounts](https://domo-support.domo.com/s/article/360042926054?language=en_US "Manage Connectors Accounts").

<Note>
  **Note:** If you are already logged into Snapchat Ads when you connect in Domo, you are authenticated automatically when you click **Add account**. If you want to connect to an account that is different from the one you are logged into, you must first log out of Snapchat Ads OAuth.
</Note>

### Details Pane

This pane contains a primary **Reports** menu, along with various other menus which may or may not appear depending on the report type you select.

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:195;a"><thead><tr><th colspan="1" rowspan="1"><p> Menu </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Report </p></td><td colspan="1" rowspan="1"><p><span> Select the Snapchat Ads OAuth report you want to run. The following reports are available: </span></p><table border="1" cellpadding="1" cellspacing="1"><tbody><tr><td colspan="1" rowspan="1"> Object Info: Organizations </td><td colspan="1" rowspan="1"> This report returns all the organizations the logged in user can access. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: Ad Accounts </td><td colspan="1" rowspan="1"> This report returns all ad accounts for the specified Organization. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: Campaigns </td><td colspan="1" rowspan="1"> This report returns all campaigns within a specified ad account. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: All Campaigns </td><td colspan="1" rowspan="1"> This report returns all campaigns within the specified ad accounts. Supports multiple ad accounts. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: Ad Squads </td><td colspan="1" rowspan="1"> This report returns all ad squads within a specified campaign or ad account. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: All Ad Squads </td><td colspan="1" rowspan="1"> This report returns all ad squads within a specified campaign or ad account. Supports multiple ad accounts. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: Ads </td><td colspan="1" rowspan="1"> This report returns all ads within a specified ad squad or ad account. </td></tr><tr><td colspan="1" rowspan="1"> Object Info: All Ads </td><td colspan="1" rowspan="1"> This report returns all ads within a specified ad squad or ad account. Supports multiple ad accounts. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Campaign (deprecated) </td><td colspan="1" rowspan="1"> This report returns statistics for the specified Campaign, or for all Ads or Ad Squads owned by that Campaign. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Campaign (Insights and Dimensions) </td><td colspan="1" rowspan="1"> This report returns statistics for the specified Campaign, or for all Ads or Ad Squads owned by that Campaign using the updated Insights and Dimensions query. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: All Campaigns (Insights and Dimensions) </td><td colspan="1" rowspan="1"> This report returns statistics for the specified Campaign, or for all Ads or Ad Squads owned by that Campaign using the updated Insights and Dimensions query. Supports multiple ad accounts. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad Squad (deprecated) </td><td colspan="1" rowspan="1"> This report returns statistics for a single, specified Ad Squad. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad Squad (Insights and Dimensions) </td><td colspan="1" rowspan="1"> This report returns statistics for a single, specified Ad Squad using the updated Insights and Dimensions query. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: All Ad Squads (Insights and Dimensions) </td><td colspan="1" rowspan="1"> This report returns statistics for specified Ad Squad using the updated Insights and Dimensions query. Supports multiple ad accounts. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad (deprecated) </td><td colspan="1" rowspan="1"> This report returns statistics for a single, specified Ad. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad (Insights and Dimensions) </td><td colspan="1" rowspan="1"> This report returns statistics for a single, specified Ad using the updated Insights and Dimensions query. </td></tr><tr><td colspan="1" rowspan="1"> Statistics: All Ads (Insights and Dimensions) </td><td colspan="1" rowspan="1"> This report returns statistics for specified Ad using the updated Insights and Dimensions query. Supports multiple ad accounts. </td></tr><tr><td colspan="1" rowspan="1"> Campaign Statistics Merge </td><td colspan="1" rowspan="1"> This report returns statistics for the requested campaigns as it is merged with organization and campaigns report. </td></tr><tr><td colspan="1" rowspan="1"> Ad Squads Statistics Merge </td><td colspan="1" rowspan="1"> This report returns statistics for the requested ad squads as it is merged with organization, ad account and ad squads report. </td></tr><tr><td colspan="1" rowspan="1"> Ads Statistics Merge </td><td colspan="1" rowspan="1"> This report returns statistics for the requested ads as it is merged with organization, ad account, ad squads and ads report. </td></tr></tbody></table></td></tr><tr><td colspan="1" rowspan="1"><p> Organization Selection Criteria </p></td><td colspan="1" rowspan="1"><p><span> Select the way you want to retrieve organizations. </span></p></td></tr><tr><td colspan="1" rowspan="1"><p> Organization </p></td><td colspan="1" rowspan="1"><p> Select the organization you want to retrieve data for. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Ad Account </p></td><td colspan="1" rowspan="1"><p> Select the ad account you want to retrieve data for. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Ad Account Selection Criteria </p></td><td colspan="1" rowspan="1"><p> Select whether you want to retrieve ad data from a selected ad account or all ad accounts. </p></td></tr><tr><td colspan="1" rowspan="1"> Select Ads By </td><td colspan="1" rowspan="1"> Select the type of object that owns the Ads to return. </td></tr><tr><td colspan="1" rowspan="1"><p> Select Ad Squads By </p></td><td colspan="1" rowspan="1"><p> Select the type of object that owns the Ad Squads to return. </p></td></tr><tr><td colspan="1" rowspan="1"> Campaign Selection Criteria </td><td colspan="1" rowspan="1"> Select whether you want to retrieve selected campaigns or all campaigns. </td></tr><tr><td colspan="1" rowspan="1"><p> Campaign </p></td><td colspan="1" rowspan="1"><p> Select the campaign you want to retrieve data for. </p></td></tr><tr><td colspan="1" rowspan="1"> Ad Squad Selection Criteria </td><td colspan="1" rowspan="1"> Select whether you want to retrieve data for all Ad Squads or selected Ad Squads. </td></tr><tr><td colspan="1" rowspan="1"><p> Ad Squad </p></td><td colspan="1" rowspan="1"><p> Select the ad squad you want to retrieve data for. </p></td></tr><tr><td colspan="1" rowspan="1"> Ad Selection Criteria </td><td colspan="1" rowspan="1"> Select whether you want to retrieve data for all Ads or selected Ads. </td></tr><tr><td colspan="1" rowspan="1"><p> Ad </p></td><td colspan="1" rowspan="1"><p> Select the ad you want to retrieve data for. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Breakdown </p></td><td colspan="1" rowspan="1"><p> Select whether you want to break down results by ad, ad squad, or campaign. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Granularity </p></td><td colspan="1" rowspan="1"><p> Select how data will be aggregated in your report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Dimension </p></td><td colspan="1" rowspan="1"><p> Select how your data will be grouped in your report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Pivot </p></td><td colspan="1" rowspan="1"><p> Select how your data will be pivoted in your report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Fields </p></td><td colspan="1" rowspan="1"><p> Select the fields (columns) you want to include in your report: </p></td></tr><tr><td colspan="1" rowspan="1"> Conversion Source Types </td><td colspan="1" rowspan="1"><span> App, Offline, Total, or Web </span></td></tr><tr><td colspan="1" rowspan="1"><p> Swipe Up Attribution Window </p></td><td colspan="1" rowspan="1"><p> Select a Swipe Up Attribution Window of 1, 7, or 28 days. </p></td></tr><tr><td colspan="1" rowspan="1"><p> View Attribution Window </p></td><td colspan="1" rowspan="1"><p> Select the desired View Attribution Window. Note that this value must be smaller than the <b><b> Swipe Up Attribution Window </b></b>. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Duration </p></td><td colspan="1" rowspan="1"><p> Select whether you want to pull data for a specific date or a date range. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Report Date </p></td><td colspan="1" rowspan="1"><p> Select whether the report data is for a specific date or for a relative number of days back from today. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Select Specific Date </p></td><td colspan="1" rowspan="1"><p> Select the date for the report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Days Back </p></td><td colspan="1" rowspan="1"><p> Enter the number of past days that should appear in the report. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Start Date </p></td><td colspan="1" rowspan="1"><p> Specify whether the first date in your date range is a specific or relative date. You select the last date in your range in <b><b> End Date </b></b>. </p></td></tr><tr><td colspan="1" rowspan="1"><p> End Date </p></td><td colspan="1" rowspan="1"><p> Specify whether the second date in your date range is a specific or relative date. You select the first date in your range in <b><b> Start Date </b></b>. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Select Specific Start Date </p></td><td colspan="1" rowspan="1"><p> Select the first date in your date range. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Select Specific End Date </p></td><td colspan="1" rowspan="1"><p> Select the second date in your date range. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Days Back to Start From </p></td><td colspan="1" rowspan="1"><p> Enter the number of the farthest day back that should be represented in the report. Combine with <b><b> Days Back to End At </b></b> to create a range of represented days. </p><p> For example, if you entered 10 for <b><b> Days Back to Start From </b></b> and 5 for <b><b> Days Back to End At </b></b>, the report would contain data for 10 days ago up until 5 days ago. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Days Back to End At </p></td><td colspan="1" rowspan="1"><p> Enter the number of the most recent day back that should be represented in the report. Combine with <b><b> Days Back to Start From </b></b> to create a range of represented days. </p><p> For example, if you entered 10 for <b><b> Days Back to Start From </b></b> and 5 for <b><b> Days Back to End At </b></b>, the report would contain data for 10 days ago up until 5 days ago. </p></td></tr></tbody></table>

### Other Panes

For information about the remaining sections of the Connector interface, including how to configure scheduling, retry, and update options, see [Adding a DataSet Using a Connector](https://domo-support.domo.com/s/article/360042926274?language=en_US "Adding a DataSet Using a Connector").

## FAQs

<AccordionGroup>
  <Accordion title="What version of the Snapchat API does this connector use?">
    This connector uses version 1 of the Snapchat API ([https://adsapi.snapchat.com/v1.](https://adsapi.snapchat.com/v1. "https://adsapi.snapchat.com/v1.") )
  </Accordion>

  <Accordion title="Which endpoint(s) does each report call in this connector?">
    <table><tbody><tr><th colspan="1" rowspan="1" width="30%"> Report Name </th><th colspan="1" rowspan="1" width="70%"> Endpoint URL(s) </th></tr><tr><td colspan="1" rowspan="1"> Object Info: Organizations </td><td colspan="1" rowspan="1"> /me/organizations </td></tr><tr><td colspan="1" rowspan="1"> Object Info: Ad Accounts </td><td colspan="1" rowspan="1"> /organizations/{organization-id}/adaccounts </td></tr><tr><td colspan="1" rowspan="1"> Object Info: Campaigns </td><td colspan="1" rowspan="1"> /adaccounts/{ad_account_id}/campaigns </td></tr><tr><td colspan="1" rowspan="1"> Object Info: All Campaigns </td><td colspan="1" rowspan="1"> /adaccounts/{ad_account_id}/campaigns </td></tr><tr><td colspan="1" rowspan="2"> Object Info: Ad Squads </td><td colspan="1" rowspan="1"> adSquadsBy/{campaignId}/adsquads </td></tr><tr><td colspan="1" rowspan="1"> /adSquadsBy/{adSquadId}/adsquads </td></tr><tr><td colspan="1" rowspan="2"> Object Info: All Ad Squads </td><td colspan="1" rowspan="1"> /adSquadsBy/{campaignId}/adsquads </td></tr><tr><td colspan="1" rowspan="1"> /adSquadsBy/{adAccountId}/adsquads </td></tr><tr><td colspan="1" rowspan="2"> Object Info: Ads </td><td colspan="1" rowspan="1"> /AdsVia/{ad_squad_id}/ads </td></tr><tr><td colspan="1" rowspan="1"> /AdsVia/{Id}/ads </td></tr><tr><td colspan="1" rowspan="2"> Object Info: All Ads </td><td colspan="1" rowspan="1"> /AdsVia/{ad_squad_id}/ads </td></tr><tr><td colspan="1" rowspan="1"> /AdsVia/{adAccountId}/ads </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Campaign (deprecated) </td><td colspan="1" rowspan="1"> /campaigns/{campaign-id}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Campaign (Insights and Dimensions) </td><td colspan="1" rowspan="1"> /campaigns/{campaignId}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: All Campaign (Insights and Dimensions) </td><td colspan="1" rowspan="1"> /campaigns/{adAccIdAndTimeZone}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad Squad (deprecated) </td><td colspan="1" rowspan="1"> /adsquads/{adsquad-id}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad Squad (Insights and Dimensions) </td><td colspan="1" rowspan="1"> /adsquads/{adSquadId}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: All Ad Squads (Insights and Dimensions) </td><td colspan="1" rowspan="1"> /adsquads/{adAccIdAndTimeZone}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad (deprecated) </td><td colspan="1" rowspan="1"> /ads/{ad-id}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: Ad (Insights and Dimensions) </td><td colspan="1" rowspan="1"> /ads/{adId}/stats </td></tr><tr><td colspan="1" rowspan="1"> Statistics: All Ads (Insights and Dimensions) </td><td colspan="1" rowspan="1"> /ads/{adAccIdAndTimeZone}/stats </td></tr><tr><td colspan="1" rowspan="1"> Campaign Statistics Merge </td><td colspan="1" rowspan="1"> /getAndWriteCampaignStatsData </td></tr><tr><td colspan="1" rowspan="1"> Ad Squads Statistics Merge </td><td colspan="1" rowspan="1"> /getAndWriteAdSquadsStatsData </td></tr><tr><td colspan="1" rowspan="1"> Ads Statistics Merge </td><td colspan="1" rowspan="1"> /getAndWriteAdsStatsData </td></tr></tbody></table>
  </Accordion>

  <Accordion title="What kind of credentials do I need to power up this connector?">
    You need the username and password of a Snapchat Ads account that has access to the Ad accounts you are interested in.
  </Accordion>

  <Accordion title="How do I know if my data is finalized?">
    Data for a given day can be changed by Snapchat for up to 48 hours after the end of that day in the Ad Accounts timezone.

    The data that is returned has a column called "finalized\_data\_end\_time". This is the time of the most recently finalized data. Any data before that time is finalized. Any data after that time is still subject to change.
  </Accordion>

  <Accordion title="How do I get information about more than one Ad, Ad Squad, or Campaign at once?">
    The "Statistics: Ad (Insights and Dimensions)" and "Statistics: Ad Squad (Insights and Dimensions)" reports provide the data for a single or objects (ad or ad squad) at once. To get information about multiple objects, you need to use the "Statistics: Campaign (Insights and Dimensions)" report.

    This report allows you to select the metrics to report, and how the data should be broken down. Data can be broken down by Ad, Ad Squad, or Campaign. If you select one of these, the data will be reported for all individual Ads, Ad Squads, or Campaigns.
  </Accordion>
</AccordionGroup>

## Troubleshooting

* Make sure your authentication remains valid.
* Review the configuration to make sure that all required items have been selected.
* Review the Connector history for error messages.
* In rare cases, you may be requesting too much information and reaching API limitations or timeouts. If this is the case, you can review the history of the Connector run to see the error message and duration. If this is the case, you can reduce the number of accounts that are being pulled, choose a smaller number of metrics for the report that you are pulling, or reduce the timeframe that you are trying to pull.
