module TwitterAds

Usage: Initialisation

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

get tailored_audience change

accounts.tailored_audience_changes

get tailored audience change on a specific list

accounts.tailoered_audience_changes list_id

if the method does not exist, the easiest it to do: client.get “/accounts/ACCOUNT_ID”,params

same with post, put, delete

@ Seevibes 2015 Author Thomas Landspurg

thomas@seevibes.com

@ Seevibes 2015 Author Thomas Landspurg

thomas@seevibes.com

@ Seevibes 2015 Author Thomas Landspurg

thomas@seevibes.com

@ Seevibes 2015 Author Thomas Landspurg

thomas@seevibes.com

Constants

ADS_API_ENDPOINT
TRACE
UnauthorizedAccess

Public Instance Methods

tailored_audience(tailored_audience_id) click to toggle source
# File lib/twitter_ads/account.rb, line 38
def tailored_audience tailored_audience_id
  TwitterAds::TailoredAudience.new(self, {'id' => tailored_audience_id})
end
tailored_audiences() click to toggle source
# File lib/twitter_ads/account.rb, line 34
def tailored_audiences
    get('tailored_audiences').map{ |ta| TailoredAudience.new(self, ta)}
end