adparlor-facebook 0.6.4 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd2cd88a1f2a4d284244a95209ce871b6370fe3d
4
- data.tar.gz: f0d3ef30cf3be3f40327f24efd3115d41b98bc14
3
+ metadata.gz: fd811b4f7a6771b5e6e3a9f7b8fa27b7f0a223fa
4
+ data.tar.gz: fc8d8e21ea10fb8f37bdca098f85753e40b855c9
5
5
  SHA512:
6
- metadata.gz: ea7c0d7e6946272baa9a6b95fbd69c32a5270d82aec575d2fcb82134eeb4bbf0f34ee909ae0137c075da0980a5084016ce22ff88f778a28e8a9047c4c0ec085c
7
- data.tar.gz: 9fcf9b8e8c0ac061bd8dad3bdba5b4c8e63b38c386e2982c3c7e98615508bca6a9f7a3e21a6187ef6589426cc96dc0a93eda1a34b6291c340815c201ef3c1fed
6
+ metadata.gz: 64cd017c3a26e665f52fc85e4d9f1a92a3587ad5900e330064e6dc8c1a7603c26ac332d272298342ed90930620a01413f37dfc7387e18e01374f764c1eae634b
7
+ data.tar.gz: a1525607f742180595fc53875f4664d0ece24b1187a6aa72db429c5ad0687616bcd7b81d2c509129ea16633f06cbe9391e8b95b90a4fe089fc6743e5f31475b0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adparlor-facebook (0.6.4)
4
+ adparlor-facebook (0.7.2)
5
5
  faraday
6
6
  faraday_middleware
7
7
  httpclient
@@ -4,7 +4,7 @@ require 'bundler/setup'
4
4
  require 'adparlor/facebook'
5
5
 
6
6
  Adparlor::Facebook.configure do |config|
7
- config.api_version = 'v3.3'
7
+ config.api_version = 'v5.0'
8
8
  end
9
9
 
10
10
  # You can add fixtures and/or initialization code here to make experimenting
@@ -15,7 +15,7 @@ module Adparlor
15
15
  attr_accessor :proxy_api_key
16
16
 
17
17
  def initialize
18
- @api_version = 'v3.3'
18
+ @api_version = 'v5.0'
19
19
  @base_uri = 'https://graph.facebook.com'
20
20
  @proxy_api_key = nil
21
21
  end
@@ -4,7 +4,7 @@ module Adparlor
4
4
  class Campaign < GraphObject
5
5
  include Fields::Campaign
6
6
  include Traits::Methods
7
-
7
+
8
8
  field_attrs FIELDS
9
9
  allow_method :create
10
10
  allow_local_method :create, :destroy, :update
@@ -33,7 +33,23 @@ module Adparlor
33
33
  :budget_remaining,
34
34
  :daily_budget,
35
35
  :lifetime_budget,
36
- :bid_strategy
36
+ :bid_strategy,
37
+ :asset_feed_id,
38
+ :bid_constraints,
39
+ :daily_min_spend_target,
40
+ :daily_spend_cap,
41
+ :destination_type,
42
+ :is_dynamic_creative,
43
+ :issues_info,
44
+ :lifetime_min_spend_target,
45
+ :lifetime_spend_cap,
46
+ :optimization_sub_event,
47
+ :recommendations,
48
+ :recurring_budget_semantics,
49
+ :review_feedback,
50
+ :source_adset,
51
+ :status,
52
+ :time_based_ad_rotation_id_blocks
37
53
  ]
38
54
 
39
55
  CREATE_FIELDS = [
@@ -90,8 +106,7 @@ module Adparlor
90
106
  :redownload,
91
107
  :rf_prediction_id,
92
108
  :start_time,
93
- :targeting,
94
- :bid_strategy
109
+ :targeting
95
110
  ]
96
111
  end
97
112
  end
@@ -3,13 +3,54 @@ module Adparlor
3
3
  module GraphApi
4
4
  module Fields
5
5
  module Campaign
6
- FIELDS = [:id, :adlabels, :account_id, :buying_type, :can_use_spend_cap,
7
- :configured_status, :created_time, :effective_status, :name,
8
- :objective, :start_time, :stop_time, :updated_time, :spend_cap]
9
- CREATE_FIELDS = [:name, :objective, :status, :buying_type, :promoted_object,
10
- :spend_cap, :execution_options, :adlabels, :budget_rebalance_flag]
11
- UPDATE_FIELDS = [:name, :objective, :status, :spend_cap, :execution_options,
12
- :adlabels, :budget_rebalance_flag]
6
+ FIELDS = [
7
+ :id,
8
+ :adlabels,
9
+ :account_id,
10
+ :buying_type,
11
+ :can_use_spend_cap,
12
+ :configured_status,
13
+ :created_time,
14
+ :effective_status,
15
+ :name,
16
+ :objective,
17
+ :start_time,
18
+ :stop_time,
19
+ :updated_time,
20
+ :spend_cap,
21
+ :budget_rebalance_flag,
22
+ :pacing_type,
23
+ :bid_strategy,
24
+ :special_ad_category,
25
+ :daily_budget,
26
+ :lifetime_budget
27
+ ]
28
+ CREATE_FIELDS = [
29
+ :name,
30
+ :objective,
31
+ :status,
32
+ :buying_type,
33
+ :promoted_object,
34
+ :spend_cap,
35
+ :execution_options,
36
+ :adlabels,
37
+ :budget_rebalance_flag,
38
+ :special_ad_category,
39
+ :daily_budget,
40
+ :lifetime_budget
41
+ ]
42
+ UPDATE_FIELDS = [
43
+ :name,
44
+ :objective,
45
+ :status,
46
+ :spend_cap,
47
+ :execution_options,
48
+ :adlabels,
49
+ :budget_rebalance_flag,
50
+ :special_ad_category,
51
+ :daily_budget,
52
+ :lifetime_budget
53
+ ]
13
54
  end
14
55
  end
15
56
  end
@@ -3,7 +3,7 @@ module Adparlor
3
3
  module GraphApi
4
4
  module Fields
5
5
  module Page
6
- FIELDS = [:id, :access_token, :leadgen_tos_accepted, :name, :name_with_location_descriptor].freeze
6
+ FIELDS = [:id, :access_token, :leadgen_tos_accepted, :name, :name_with_location_descriptor, :new_like_count].freeze
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Adparlor
3
3
  module GraphApi
4
4
  module Fields
5
5
  module PageAndPlace
6
- FIELDS = [:id, :access_token, :leadgen_tos_accepted, :name, :name_with_location_descriptor]
6
+ FIELDS = [:id, :access_token, :leadgen_tos_accepted, :name, :name_with_location_descriptor, :new_like_count]
7
7
  end
8
8
  end
9
9
  end
@@ -6,7 +6,8 @@ module Adparlor
6
6
  FIELDS = [:id, :admin_creator, :application, :child_attachments, :call_to_action, :created_time,
7
7
  :feed_targeting, :from, :icon, :is_instagram_eligible, :is_hidden, :is_published, :message, :message_tags,
8
8
  :picture, :place, :privacy, :properties, :shares, :status_type, :story, :story_tags,
9
- :targeting, :to, :updated_time, :with_tags, :full_picture, :actions, :likes, :attachments
9
+ :targeting, :to, :updated_time, :full_picture, :actions, :likes, :attachments,
10
+ :scheduled_publish_time, :promotable_id, :allowed_advertising_objectives, :is_eligible_for_promotion, :is_expired, :promotion_status
10
11
  ]
11
12
 
12
13
  CREATE_FIELDS = FIELDS + [:scheduled_published_time]
@@ -1,5 +1,5 @@
1
1
  module Adparlor
2
2
  module Facebook
3
- VERSION = '0.6.4'
3
+ VERSION = '0.7.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adparlor-facebook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kel Stopper
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-11-08 00:00:00.000000000 Z
12
+ date: 2020-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler