line_ads

Ruby interface to LINE Ads API


License
MIT
Install
gem install line_ads -v 0.1.2

Documentation

LineAds

Installation

$ gem install line_ads

Or add this line to your Gemfile

gem 'line_ads', '~> 0.0.2'

And $ bundle install

Usage

Setup a client

require 'line_ads'

client = LineAds::Client.new(
  client_id: "your client id",
  client_secret: "your client secret"
)

create Custom Audience

client.add_custom_audience("account id", "audience name")

# # Example response body:
#
# {
#   "accountId" => 9999,
#   "operands" => [{
#     "id" => 12345,
#     "type" => "ADVERTISING_ID",
#     "name" => "test_audience",
#     "userStatus" => "ACTIVE"
#   }]
# }

upload Audience file to created Custom Audience

client.upload_custom_audience("account id", "audience name", "file path")

# # Example response body:
#
# {
#   "accountId" => 9999,
#   "status" => "accepted"
# }