Snapchat Extract
    • Dark
      Light

    Snapchat Extract

    • Dark
      Light

    Article Summary

    This article is specific to the following platforms - Snowflake - Redshift - BigQuery.

    Snapchat Extract

    The Snapchat Extract component calls the Snapchat API to retrieve and store data to be either referenced by an external table or loaded into a table, depending on the user's cloud data warehouse. Users can then transform their data with the Matillion ETL library of transformation components.

    Using this component may return structured data that requires flattening. For help with flattening such data, we recommend using the Nested Data Load Component for Amazon Redshift and the Extract Nested Data Component for Snowflake or Google BigQuery.

    Properties


    Snowflake Properties

    PropertySettingDescription
    NameStringA human-readable name for the component.
    Data SourceSelectSelect a data source. As noted above, once you have configured the Data Source property, one or more properties specific to that data source will become available to configure. These properties are not optional and must be configured.
    Please refer to the "Data Source Properties" table in this documentation for guidance with these additional properties.
    OAuthSelectSelect an OAuth entry to authenticate this component. An OAuth entry must be set up in advance. To learn how to create and authorise a fresh OAuth entry, please read our Snapchat Authentication Guide.
    Page LimitIntegerLimit the number of pages to stage.
    LocationStorage LocationProvide an S3 bucket path, GCS bucket path, or Azure Blob Storage path that will be used to store the data. Once on an S3 bucket, GCS bucket or Azure Blob, the data can be referenced by an external table. A folder will be created at this location with the same name as the Target Table.
    IntegrationSelect(GCP only) Choose your Google Cloud Storage Integration. Integrations are required to permit Snowflake to read data from and write to a Google Cloud Storage bucket. Integrations must be set up in advance of selecting them in Matillion ETL. To learn more about setting up a storage integration, read our Storage Integration Setup Guide.
    WarehouseSelectChoose a Snowflake warehouse that will run the load.
    DatabaseSelectChoose a database to create the new table in.
    SchemaSelectSelect the table schema. The special value, [Environment Default], will use the schema defined in the environment. For more information on using multiple schemas, see this article.
    Target TableStringProvide a new table name.
    Warning: This table will be recreated and will drop any existing table of the same name.

    Redshift Properties

    PropertySettingDescription
    NameStringA human-readable name for the component.
    Data SourceSelectSelect a data source. As noted above, once you have configured the Data Source property, one or more properties specific to that data source will become available to configure. These properties are not optional and must be configured.
    Please refer to the "Data Source Properties" table in this documentation for guidance with these additional properties.
    OAuthSelectSelect an OAuth entry to authenticate this component. An OAuth entry must be set up in advance. To learn how to create and authorise a fresh OAuth entry, please read our Snapchat Authentication Guide.
    Page LimitIntegerLimit the number of pages to stage.
    LocationStorage LocationProvide an S3 Bucket path that will be used to store the data. Once on an S3 bucket, the data can be referenced by an external table. A folder will be created at this location with the same name as the Target Table.
    TypeDropdownSelect between a standard table and an external table.
    Standard SchemaDropdownSelect the Redshift schema. The special value, [Environment Default], will use the schema defined in the Matillion ETL environment.
    External SchemaSelectSelect the table's external schema. To learn more about external schemas, please consult the 'Configuring The Matillion ETL Client' section of the Getting Started With Amazon Redshift Spectrum documentation.
    Target TableStringProvide a name for the external table to be used.
    Warning: This table will be recreated and will drop any existing table of the same name.

    BigQuery Properties

    PropertySettingDescription
    NameStringA human-readable name for the component.
    Data SourceSelectSelect a data source. As noted above, once you have configured the Data Source property, one or more properties specific to that data source will become available to configure. These properties are not optional and must be configured.
    Please refer to the "Data Source Properties" table in this documentation for guidance with these additional properties.
    OAuthSelectSelect an OAuth entry to authenticate this component. An OAuth entry must be set up in advance. To learn how to create and authorise a fresh OAuth entry, please read our Snapchat Authentication Guide.
    Page LimitIntegerLimit the number of pages to stage.
    Table TypeSelectSelect whether the table is Native (by default in BigQuery) or an external table.
    ProjectSelectSelect the Google Bigquery project. The special value, [Environment Default], will use the project defined in the environment.
    For more information, refer to the BigQuery documentation.
    DatasetSelectSelect the Google Bigquery dataset to load data into. The special value, [Environment Default], will use the dataset defined in the environment.
    For more information, refer to the BigQuery documentation.
    Target TableStringA name for the table.
    Warning: This table will be recreated and will drop any existing table of the same name.
    Only available when the table type is Native.
    New Target TableStringA name for the new external table.
    Only available when the table type is External.
    Cloud Storage Staging AreaCloud Storage BucketSpecify the target Google Cloud Storage bucket to be used for staging the queried data. Users can either:
    1. Input the URL string of the Cloud Storage bucket following the template provided: gs://<bucket>/<path>
    2. Navigate through the file structure to select the target bucket.

    Only available when the table type is Native.
    LocationCloud Storage BucketSpecify the target Google Cloud Storage bucket to be used for staging the queried data. Users can either:
    1. Input the URL string of the Cloud Storage bucket following the template provided: gs://<bucket>/<path>
    2. Navigate through the file structure to select the target bucket.
    Only available when the table type is External.
    Load OptionsMultiple SelectClean Cloud Storage Files: Destroy staged files on Cloud Storage after loading data. Default is On.
    Cloud Storage File Prefix: Give staged file names a prefix of your choice. The default setting is an empty field.
    Recreate Target Table: Choose whether the component recreates its target table before the data load. If Off, the component will use an existing table or create one if it does not exist. Default is On.
    Use Grid Variable: Check this checkbox to use a grid variable. This box is unchecked by default.



    Data Source Properties

    The following table lists any Data Source that requires a unique component property for configuration. If a Data Source is missing from this table, it does NOT have any unique component properties.

    Data SourceProperty NameTypeDescription
    Ad AccountsOrganization IDStringThe ID of the organization to retrieve.
    Ad Squad StatsAd Squad IDStringThe ID of the Ad Squad to retrieve.
    Ad Squads under a CampaignCampaign IDStringThe ID of the Campaign to retrieve.
    Ad Squads under an Ad AccountAd Account IDStringThe Ad Account ID.
    Ad StatsAd IDStringThe ID of the Ad to retrieve.
    Ads under an Ad AccountAd Account IDStringThe Ad Account ID.
    Ads under an Ad SquadAd Squad IDStringThe ID of the Ad Squad to retrieve.
    Audience SegmentsAd Account IDStringThe Ad Account ID.
    Campaign StatsCampaign IDStringThe ID of the Campaign to retrieve.
    CampaignsAd Account IDStringThe Ad Account ID.
    CreativesAd Account IDStringAd Account ID.
    Funding SourcesOrganization IDStringThe ID of the organization to retrieve.
    MediaAd Account IDStringThe Ad Account ID.
    OrganizationsWith Ad AccountsSelect True or FalseSelect whether to include Ad Accounts. Default is "false".
    Targeting Device - OS VersionOS TypeSelectSelect the operating system type. Users can choose either "ANDROID" or "iOS".
    Targeting Geolocation MetroCountry CodeStringProvide the ISO ALPHA-2 Country Code (lowercase).
    Targeting Geolocation RegionCountry CodeStringProvide the ISO ALPHA-2 Country Code (lowercase).
    Targeting Interests Snap Lifestyle Categories By CountryCountry CodeStringISO ALPHA-2 Country Code (lowercase).