Sha256: 7f017ae93c76e2a865b6dc8ec490d81121edd27fda7df2583627e7862f7253e7

Contents?: true

Size: 703 Bytes

Versions: 7

Compression:

Stored size: 703 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

7 entries across 7 versions & 1 rubygems

Version Path
facebook_ads-0.6.11 bin/facebook_ads_console
facebook_ads-0.6.10 bin/facebook_ads_console
facebook_ads-0.6.9 bin/facebook_ads_console
facebook_ads-0.6.7 bin/facebook_ads_console
facebook_ads-0.6.6 bin/facebook_ads_console
facebook_ads-0.6.5 bin/facebook_ads_console
facebook_ads-0.6.4 bin/facebook_ads_console