Skip to content

SageData-OOD/tap-reddit-ads

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tap-reddit-ads

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This will extracting data from the Reddit Ads API

Quick Start

  1. Install

    pip install git+https://github.com/SageData-OOD/tap-reddit-ads

  2. Create the config file

    Create a JSON file called config.json. Its contents should look like:

     {
         "starts_at": "2021-09-20",
         "account_id": "<Reddit ads account id>",
         "refresh_token": "<Reddit Oauth refresh token>",
         "client_id": "<Your app client_id>",
         "client_secret": "<Your app client_secret>",
         "user_agent": "tap-reddit-ads <[email protected]>"
     }
    • The starts_at specifies the date at which the tap will begin pulling data (Supports in only Reports resource).

    • The account_id : Reddit ads account id

      • "URL will have the ad account id you need.
      • https://ads.reddit.com/account/<AD ACCOUNT ID HERE>/dashboard/campaigns
    • The refresh_token: The reddit OAuth Refresh Token

    • The client_id: The reddit OAuth client id

    • The client_secret: The reddit OAuth client secret

    • The user_agent: tap-reddit-ads <api_user_email@your_company.com>

  3. Run the Tap in Discovery Mode

    tap-reddit-ads -c config.json -d

    See the Singer docs on discovery mode here.

  4. Run the Tap in Sync Mode

    tap-reddit-ads -c config.json --catalog catalog-file.json


Copyright © 2021 SageData

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%