0.01
No commit activity in last 3 years
No release in over 3 years
Simplify access to TwitterAds API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.4
 Project Readme

twitter_ads

Gem to simplify access to TwitterADS API

Installation:

gem install twitter_ads

or in your Gemfile:

gem 'twitter_ads'

Usage:

You need to instanciete the client with a whitlsted Twitter Ads application and a user token allowed for this app:

 ads=TwitterADS::Client.new({consumer_key:"YOUR_CONSUER_KEY",
                         consumer_secret:"YOUR CONSUMER SECRET",
                        access_token:"YOUR ACCESS TOKEN",
                        access_secret:"YOUR ACCESS SECRET"})

get the list of accounts:

 ads.accounts

get info on a specfic account

account=ads.account(account_id)

Note that using this form, the account won't be fetched unless you do a refresh call:

 account.refresh

get tailored_audience change

accounts.tailored_audience_changes

get tailored audience change on a specific list

accounts.tailored_audience_changes list_id

If an operation is missing, there is two ways to add it:

Just do it manually:

ads.get action,param

Example:

ads.get "accounts"