facebookbusiness 0.4.0.2 → 0.4.0.3

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: 4e723c8810da7cb0edb71876e75a13b752ef05637504ab8fe5669957db5d3a68
4
- data.tar.gz: 1826620984cf05152967de820dbcda7ace71b11ca9f67529a976449367255383
3
+ metadata.gz: a5748cc422d52836c83041d83a4a7228523102b11a8ecf3e137e0834885e75d1
4
+ data.tar.gz: 74117a3c77ef1eacc01588c82510322496ea76c84bf8933faf04024cfb442e30
5
5
  SHA512:
6
- metadata.gz: de1937e4a5cde09cc1f62b58983d7e33b5206f360bfdba84974609d98d4472a6cda93977ca8fa67e3817022ec06bfc629468e40dc1162596aaa425c4bb66cbb3
7
- data.tar.gz: 167c4f946008d051686d86195c2a024370edd13b1205be7ea4775c0d82a6c7ce3f93c2db0f27e093c855107e7f4ad98abd91ef2d1f81adf4708c8c31379e2dda
6
+ metadata.gz: 2bf265f416c40cf9e1e97c53474c751fe149e2020aec1f2058306ae82f8769e00c72384abbef4d1a3ee90f4fca060d98cfdee4d3570a047ccf839c4c123c2605
7
+ data.tar.gz: fb5bf35775044bf7829e1c8f13a0e3ccc079621ff0b5ebff4281f793a53793abc4d98955205db7186708a8f61883d034ac77ddbceb734ae4ecfc5953bfb0815e
@@ -55,6 +55,7 @@ module FacebookAds
55
55
  EFFECTIVE_STATUS = [
56
56
  "ACTIVE",
57
57
  "ARCHIVED",
58
+ "CAMPAIGN_PAUSED",
58
59
  "DELETED",
59
60
  "IN_PROCESS",
60
61
  "PAUSED",
@@ -350,6 +350,9 @@ module FacebookAds
350
350
  end
351
351
 
352
352
  has_edge :banned do |edge|
353
+ edge.delete do |api|
354
+ api.has_param :uids, { list: 'int' }
355
+ end
353
356
  edge.get 'User' do |api|
354
357
  api.has_param :uid, 'int'
355
358
  end
@@ -417,6 +420,28 @@ module FacebookAds
417
420
  end
418
421
  end
419
422
 
423
+ has_edge :insights_push_schedule do |edge|
424
+ edge.post do |api|
425
+ api.has_param :ad_account_ids, { list: 'string' }
426
+ api.has_param :breakdowns, { list: 'string' }
427
+ api.has_param :date_preset, 'string'
428
+ api.has_param :level, { enum: %w{ACCOUNT AD ADSET CAMPAIGN }}
429
+ api.has_param :metrics, { list: 'string' }
430
+ api.has_param :object_id, 'string'
431
+ api.has_param :owner_id, 'object'
432
+ api.has_param :schedule, { enum: %w{DAILY FINE_15_MIN FINE_5_MIN MONTHLY WEEKLY }}
433
+ api.has_param :status, { enum: %w{ACTIVE DISABLED ERROR }}
434
+ api.has_param :time_created, 'datetime'
435
+ api.has_param :time_increment, 'int'
436
+ api.has_param :time_last_fail, 'datetime'
437
+ api.has_param :time_last_run, 'datetime'
438
+ api.has_param :time_last_success, 'datetime'
439
+ api.has_param :time_start, 'datetime'
440
+ api.has_param :time_stop, 'datetime'
441
+ api.has_param :time_updated, 'datetime'
442
+ end
443
+ end
444
+
420
445
  has_edge :ios_dialog_configs do |edge|
421
446
  edge.get
422
447
  end
@@ -144,7 +144,6 @@ module FacebookAds
144
144
 
145
145
  has_edge :adaccount do |edge|
146
146
  edge.post 'AdAccount' do |api|
147
- api.has_param :billing_address_id, 'string'
148
147
  api.has_param :currency, 'string'
149
148
  api.has_param :end_advertiser, 'object'
150
149
  api.has_param :funding_id, 'string'
@@ -152,12 +151,10 @@ module FacebookAds
152
151
  api.has_param :invoice_group_id, 'string'
153
152
  api.has_param :invoicing_emails, { list: 'string' }
154
153
  api.has_param :io, 'bool'
155
- api.has_param :liable_address_id, 'string'
156
154
  api.has_param :media_agency, 'string'
157
155
  api.has_param :name, 'string'
158
156
  api.has_param :partner, 'string'
159
157
  api.has_param :po_number, 'string'
160
- api.has_param :sold_to_address_id, 'string'
161
158
  api.has_param :timezone_id, 'int'
162
159
  end
163
160
  end
@@ -39,7 +39,9 @@ module FacebookAds
39
39
  has_no_post
40
40
 
41
41
  has_edge :insights do |edge|
42
- edge.get
42
+ edge.get do |api|
43
+ api.has_param :time_range, 'object'
44
+ end
43
45
  end
44
46
 
45
47
  end
@@ -35,5 +35,13 @@ module FacebookAds
35
35
  field :mentioned_instagram_users, { list: 'InstagramUser' }
36
36
  field :message, 'string'
37
37
 
38
+ has_edge :replies do |edge|
39
+ edge.get 'InstagramComment'
40
+ edge.post 'InstagramComment' do |api|
41
+ api.has_param :ad_id, 'object'
42
+ api.has_param :message, 'string'
43
+ end
44
+ end
45
+
38
46
  end
39
47
  end
@@ -26,6 +26,10 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class Url < AdObject
29
+ SCOPES = [
30
+ "NEWS_TAB",
31
+ ]
32
+
29
33
 
30
34
  field :app_links, 'AppLinks'
31
35
  field :development_instant_article, 'InstantArticle'
@@ -34,6 +38,7 @@ module FacebookAds
34
38
  field :instant_article, 'InstantArticle'
35
39
  field :og_object, 'object'
36
40
  field :ownership_permissions, 'object'
41
+ field :scopes, 'object'
37
42
  has_no_delete
38
43
 
39
44
  end
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.4.0.2'
22
+ VERSION = '0.4.0.3'
23
23
  API_VERSION = '4.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.4.0.2
4
+ version: 0.4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-15 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday