Ruby client for the Perfect Audience API

less than 1 minute read

I recently wrote a Ruby gem called Perfecta, that wraps the Perfect Audience reporting API.

We use Perfect Audience for our retargeting campaigns and having the Ruby client makes it easy to integrate the reports and analytics into other systems.

Full documentation is over on Github and the project page, but here’s a quick a quick overview

gem install perfecta

# or place this into your Gemfile and bundle install

gem 'perfecta'

And then interacting with the API is as simple as

client = do |c| = 'email@ddress'
  c.password = 'password'

p client.campaign_reports(interval: 'yesterday').inspect

Check out the project page for more info and usage instructions