facebookbusiness 0.5.0.1 → 0.5.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb9e2b22e1f0715b3c27d2f13aeaed0d9a787c12210e01abcd63d49b339d9143
4
- data.tar.gz: 56c4b3b21f56412639003420dca5ca6621d5243643bebe31026d0ef55639002b
3
+ metadata.gz: 48b3249a1551789167ed5ec87d549d0b0f5c253430e29e5aa660648701e13e16
4
+ data.tar.gz: 37080075005d212b39fbf1a127bb6212d819a92d5aee717ae1a8a1b6750aceb5
5
5
  SHA512:
6
- metadata.gz: b54e3a1c32832f891040b9340f6c4cadec0703ceff137d566a3e1694eb4984e7f30d35e40f6d68e73160568d6a3dd23c7121c278f4a76f9b98d8c18fb5a81728
7
- data.tar.gz: 2e802cacade2d1baef21932f8c02fec8b9fc910a6aea7847770b38d1feb74e074cdd1fdebf60f3932d34c570f5344a9f46635bee61dc16ff90d7bdf162c96060
6
+ metadata.gz: 6469aba6159a3dc6293533e0724c2feeccb43ee4019f1387f0fbc45f07d2314224ed1a1f93266a5926a69df4067cf2e05db60f76048cac403af9a62e7343b61c
7
+ data.tar.gz: 341ae793fed9a581766413b73db4b5449ade102220e4fa5278e0b1273989f9c36bad89b09ce4af71a15afe79159564f086e4fd2c735fb80efe82c9bba55dccd2
@@ -59,7 +59,6 @@ module FacebookAds
59
59
  "CREDIT",
60
60
  "EMPLOYMENT",
61
61
  "HOUSING",
62
- "ISSUES_ELECTIONS_POLITICS",
63
62
  "NONE",
64
63
  ]
65
64
 
@@ -169,6 +169,7 @@ module FacebookAds
169
169
  field :instagram_story_id, 'string'
170
170
  field :interactive_components_spec, 'AdCreativeInteractiveComponentsSpec'
171
171
  field :link_deep_link_url, 'string'
172
+ field :link_destination_display_url, 'string'
172
173
  field :link_og_id, 'string'
173
174
  field :link_url, 'string'
174
175
  field :messenger_sponsored_message, 'string'
@@ -156,7 +156,6 @@ module FacebookAds
156
156
  "CREDIT",
157
157
  "EMPLOYMENT",
158
158
  "HOUSING",
159
- "ISSUES_ELECTIONS_POLITICS",
160
159
  "NONE",
161
160
  ]
162
161
 
@@ -27,6 +27,7 @@ module FacebookAds
27
27
 
28
28
  class AdVideo < AdObject
29
29
  CONTAINER_TYPE = [
30
+ "ACO_VIDEO_VARIATION",
30
31
  "AD_BREAK_PREVIEW",
31
32
  "AD_DERIVATIVE",
32
33
  "AGE_UP",
@@ -181,6 +181,7 @@ module FacebookAds
181
181
  field :smart_login_menu_icon_url, 'string'
182
182
  field :social_discovery, 'int'
183
183
  field :subcategory, 'string'
184
+ field :suggested_events_setting, 'string'
184
185
  field :supported_platforms, { list: { enum: -> { SUPPORTED_PLATFORMS }} }
185
186
  field :supports_apprequests_fast_app_switch, 'object'
186
187
  field :supports_attribution, 'bool'
@@ -237,6 +237,10 @@ module FacebookAds
237
237
  end
238
238
  end
239
239
 
240
+ has_edge :business_units do |edge|
241
+ edge.get 'BusinessUnit'
242
+ end
243
+
240
244
  has_edge :business_users do |edge|
241
245
  edge.get 'BusinessUser'
242
246
  edge.post 'BusinessUser' do |api|
@@ -71,6 +71,18 @@ module FacebookAds
71
71
  end
72
72
  end
73
73
 
74
+ has_edge :conversion_paths do |edge|
75
+ edge.get do |api|
76
+ api.has_param :click_lookback_window, 'int'
77
+ api.has_param :date_range, 'object'
78
+ api.has_param :fb_conversion_event_id, 'int'
79
+ api.has_param :limit, 'int'
80
+ api.has_param :metric_context, 'hash'
81
+ api.has_param :time_period, { enum: %w{all_available all_dates custom date_range fifteen_days last_fourteen_days last_hundred_fourty_four_hours last_month last_ninety_days last_quarter last_seven_days last_sixty_days last_thirty_days last_twenty_four_hours last_year month_to_date quarter_to_date seven_days thirty_days this_month_whole_days today week_to_date year_to_date yesterday }}
82
+ api.has_param :view_lookback_window, 'int'
83
+ end
84
+ end
85
+
74
86
  has_edge :custom_breakdowns do |edge|
75
87
  edge.get do |api|
76
88
  api.has_param :filter_by, 'string'
@@ -103,7 +103,6 @@ module FacebookAds
103
103
  "CREDIT",
104
104
  "EMPLOYMENT",
105
105
  "HOUSING",
106
- "ISSUES_ELECTIONS_POLITICS",
107
106
  "NONE",
108
107
  ]
109
108
 
@@ -205,11 +205,11 @@ module FacebookAds
205
205
  "general_manager",
206
206
  "hometown",
207
207
  "hours",
208
+ "invoice_access_invoice_change",
208
209
  "leadgen",
209
210
  "leadgen_fat",
210
211
  "live_videos",
211
212
  "location",
212
- "mcom_invoice_change",
213
213
  "members",
214
214
  "mention",
215
215
  "merchant_review",
@@ -278,7 +278,6 @@ module FacebookAds
278
278
  api.has_param :rules, { list: 'string' }
279
279
  api.has_param :schedule, 'string'
280
280
  api.has_param :update_schedule, 'string'
281
- api.has_param :upload_schedule, 'string'
282
281
  end
283
282
  end
284
283
 
@@ -92,7 +92,6 @@ module FacebookAds
92
92
  field :update_schedule, 'ProductFeedSchedule'
93
93
  field :feed_type, { enum: -> { FEED_TYPE }}
94
94
  field :rules, { list: 'string' }
95
- field :upload_schedule, 'string'
96
95
 
97
96
  has_edge :automotive_models do |edge|
98
97
  edge.get 'AutomotiveModel' do |api|
@@ -36,7 +36,6 @@ module FacebookAds
36
36
  field :large_geo_areas, { list: 'TargetingGeoLocationGeoEntities' }
37
37
  field :location_cluster_ids, { list: 'TargetingGeoLocationLocationCluster' }
38
38
  field :location_expansion, 'TargetingGeoLocationLocationExpansion'
39
- field :location_set_ids, { list: 'string' }
40
39
  field :location_types, { list: 'string' }
41
40
  field :medium_geo_areas, { list: 'TargetingGeoLocationGeoEntities' }
42
41
  field :metro_areas, { list: 'TargetingGeoLocationGeoEntities' }
@@ -30,7 +30,6 @@ module FacebookAds
30
30
  field :id, 'string'
31
31
  field :name_verification, 'object'
32
32
  field :verified_name, 'string'
33
- has_no_post
34
33
  has_no_delete
35
34
 
36
35
  end
@@ -27,6 +27,7 @@ module FacebookAds
27
27
 
28
28
  class WorkUserFrontline < AdObject
29
29
 
30
+ field :has_access, 'bool'
30
31
  field :is_frontline, 'bool'
31
32
  has_no_id
32
33
  has_no_get
@@ -33,8 +33,7 @@ module FacebookAds
33
33
  setting :api_version, FacebookAds::DEFAULT_API_VERSION
34
34
  setting :access_token, ENV['FB_ACCESS_TOKEN']
35
35
  setting :app_secret, ENV['FB_APP_SECRET']
36
- setting :crash_logging_enabled, false
37
-
36
+ setting :crash_logging_enabled, true
38
37
  setting :log_api_bodies, false
39
38
 
40
39
  def logger=(logger)
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.5.0.1'
22
+ VERSION = '0.5.0.2'
23
23
  API_VERSION = '5.0'
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebookbusiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.1
4
+ version: 0.5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday