Sha256: d54108db850ba3858b9de29e9cecfdaffcd6164f2eee714846c8895dfb96a66f

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'facebook_ads'

begin
  FacebookAds.access_token = File.read('test_access_token').chop
  puts "access_token: #{FacebookAds.access_token}"
rescue Errno::ENOENT
  puts 'Create a test_access_token file and add your Access Token to it.'
  exit
end

begin
  FacebookAds.business_id = File.read('test_business_id').chop
  puts "business_id: #{FacebookAds.business_id}"
rescue Errno::ENOENT
  puts 'Create a test_business_id file and add your Business ID to it.'
end

FacebookAds.logger = Logger.new($stdout)
FacebookAds.logger.level = Logger::Severity::DEBUG

require 'awesome_print'
require 'pry'

AwesomePrint.pry!
Pry.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facebook_ads-0.7.0 bin/facebook_ads_console