facebookbusiness 0.5.0.0 → 0.5.0.1

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
  SHA256:
3
- metadata.gz: 0ad7322969397c26892772dbd2033900d1ae9b73795b621e8d925bcc2f36fcca
4
- data.tar.gz: 2c5723885a43abe8b17bd46b883a16278f68e1fc3c3fc7fd16811d9c006db4e9
3
+ metadata.gz: cb9e2b22e1f0715b3c27d2f13aeaed0d9a787c12210e01abcd63d49b339d9143
4
+ data.tar.gz: 56c4b3b21f56412639003420dca5ca6621d5243643bebe31026d0ef55639002b
5
5
  SHA512:
6
- metadata.gz: b045038ee0349ad331a0f6ddf2964135138fb7f4cbaeda0354a19cd65899bed271fe7a61000549409f404bb08b0bea669f02b593493f5a2a9893e2408d6fd3d3
7
- data.tar.gz: 140b49c6c8eec6c0e20ae411938f7354a3da972292f731ff7e3ed4d8f849e05d584b87c995dc3b0d0e3515431d2284c86bcb4dbec1fb9b6fc880d0964bbc0df9
6
+ metadata.gz: b54e3a1c32832f891040b9340f6c4cadec0703ceff137d566a3e1694eb4984e7f30d35e40f6d68e73160568d6a3dd23c7121c278f4a76f9b98d8c18fb5a81728
7
+ data.tar.gz: 2e802cacade2d1baef21932f8c02fec8b9fc910a6aea7847770b38d1feb74e074cdd1fdebf60f3932d34c570f5344a9f46635bee61dc16ff90d7bdf162c96060
@@ -119,6 +119,7 @@ module FacebookAds
119
119
  "HOME_LISTING",
120
120
  "HOTEL",
121
121
  "MEDIA_TITLE",
122
+ "OFFLINE_PRODUCT",
122
123
  "PRODUCT",
123
124
  "VEHICLE",
124
125
  "VEHICLE_OFFER",
@@ -33,8 +33,6 @@ module FacebookAds
33
33
  field :created_time, 'datetime'
34
34
  field :credit_new, 'object'
35
35
  field :credit_old, 'object'
36
- field :credit_status_new, 'string'
37
- field :credit_status_old, 'string'
38
36
  field :currency_new, 'string'
39
37
  field :currency_old, 'string'
40
38
  field :daily_spend_limit_new, 'object'
@@ -59,6 +59,7 @@ module FacebookAds
59
59
  "CREDIT",
60
60
  "EMPLOYMENT",
61
61
  "HOUSING",
62
+ "ISSUES_ELECTIONS_POLITICS",
62
63
  "NONE",
63
64
  ]
64
65
 
@@ -96,6 +96,7 @@ module FacebookAds
96
96
  "OFFER",
97
97
  "PAGE",
98
98
  "PHOTO",
99
+ "POST_DELETED",
99
100
  "SHARE",
100
101
  "STATUS",
101
102
  "STORE_ITEM",
@@ -33,6 +33,8 @@ module FacebookAds
33
33
  "AUDIENCE_NETWORK_REWARDED_VIDEO",
34
34
  "DESKTOP_FEED_STANDARD",
35
35
  "FACEBOOK_STORY_MOBILE",
36
+ "INSTAGRAM_EXPLORE_CONTEXTUAL",
37
+ "INSTAGRAM_EXPLORE_IMMERSIVE",
36
38
  "INSTAGRAM_STANDARD",
37
39
  "INSTAGRAM_STORY",
38
40
  "INSTANT_ARTICLE_RECIRCULATION_AD",
@@ -156,6 +156,7 @@ module FacebookAds
156
156
  "CREDIT",
157
157
  "EMPLOYMENT",
158
158
  "HOUSING",
159
+ "ISSUES_ELECTIONS_POLITICS",
159
160
  "NONE",
160
161
  ]
161
162
 
@@ -254,6 +255,17 @@ module FacebookAds
254
255
  edge.get 'AdCreative'
255
256
  end
256
257
 
258
+ has_edge :adlabels do |edge|
259
+ edge.delete do |api|
260
+ api.has_param :adlabels, { list: 'object' }
261
+ api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
262
+ end
263
+ edge.post 'AdSet' do |api|
264
+ api.has_param :adlabels, { list: 'object' }
265
+ api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
266
+ end
267
+ end
268
+
257
269
  has_edge :adrules_governed do |edge|
258
270
  edge.get 'AdRule' do |api|
259
271
  api.has_param :pass_evaluation, 'bool'
@@ -361,17 +373,6 @@ module FacebookAds
361
373
  end
362
374
  end
363
375
 
364
- has_edge :labels do |edge|
365
- edge.delete do |api|
366
- api.has_param :adlabels, { list: 'object' }
367
- api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
368
- end
369
- edge.post 'AdSet' do |api|
370
- api.has_param :adlabels, { list: 'object' }
371
- api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
372
- end
373
- end
374
-
375
376
  has_edge :targetingsentencelines do |edge|
376
377
  edge.get 'TargetingSentenceLine'
377
378
  end
@@ -91,6 +91,7 @@ module FacebookAds
91
91
  "LIVE_PHOTO",
92
92
  "LOOK_NOW_DEPRECATED",
93
93
  "MOMENTS_VIDEO",
94
+ "NEO_ASYNC_GAME_VIDEO",
94
95
  "NO_STORY",
95
96
  "OCULUS_CREATOR_PORTAL",
96
97
  "OCULUS_VENUES_BROADCAST",
@@ -126,6 +127,7 @@ module FacebookAds
126
127
  "UNLISTED",
127
128
  "VIDEO_COMMENT",
128
129
  "VIDEO_CREATIVE_EDITOR_AUTOGEN_AD_VIDEO",
130
+ "VIDEO_SUPERRES",
129
131
  "WOODHENGE",
130
132
  "YOUR_DAY",
131
133
  ]
@@ -430,7 +430,7 @@ module FacebookAds
430
430
  api.has_param :level, { enum: %w{ACCOUNT AD ADSET CAMPAIGN }}
431
431
  api.has_param :metrics, { list: 'string' }
432
432
  api.has_param :object_id, 'string'
433
- api.has_param :owner_id, 'object'
433
+ api.has_param :owner_id, 'int'
434
434
  api.has_param :schedule, { enum: %w{DAILY FINE_15_MIN FINE_5_MIN MONTHLY WEEKLY }}
435
435
  api.has_param :status, { enum: %w{ACTIVE DISABLED ERROR }}
436
436
  api.has_param :time_increment, 'int'
@@ -29,61 +29,49 @@ module FacebookAds
29
29
 
30
30
  field :ad_platform, 'object'
31
31
  field :alias, 'string'
32
- field :clicks, 'int'
33
32
  field :cost_per_1k_impressions, 'double'
34
33
  field :cost_per_click, 'double'
35
34
  field :cost_per_visit, 'double'
36
35
  field :created_by, 'object'
37
36
  field :created_date, 'datetime'
38
37
  field :data_driven_convs, 'double'
39
- field :data_driven_convs_per_100_clicks, 'double'
40
38
  field :data_driven_convs_per_1k_impress, 'double'
41
39
  field :data_driven_convs_per_click, 'double'
42
40
  field :data_driven_convs_per_visit, 'double'
43
41
  field :data_driven_cpa, 'double'
44
42
  field :data_driven_nullable_convs, 'double'
45
- field :data_driven_nullable_unattributed, 'double'
46
43
  field :data_driven_revenue, 'double'
47
44
  field :data_driven_roas, 'double'
48
- field :data_driven_unattributed, 'double'
49
45
  field :even_credit_convs, 'double'
50
- field :even_credit_convs_per_100_clicks, 'double'
51
46
  field :even_credit_convs_per_1k_impress, 'double'
52
47
  field :even_credit_convs_per_click, 'double'
53
48
  field :even_credit_convs_per_visit, 'double'
54
49
  field :even_credit_cpa, 'double'
55
50
  field :even_credit_revenue, 'double'
56
51
  field :even_credit_roas, 'double'
57
- field :even_credit_unattributed, 'double'
58
52
  field :first_click_convs, 'double'
59
- field :first_click_convs_per_100_clicks, 'double'
60
53
  field :first_click_convs_per_1k_impress, 'double'
61
54
  field :first_click_convs_per_click, 'double'
62
55
  field :first_click_convs_per_visit, 'double'
63
56
  field :first_click_cpa, 'double'
64
57
  field :first_click_revenue, 'double'
65
58
  field :first_click_roas, 'double'
66
- field :first_click_unattributed, 'double'
67
59
  field :first_touch_convs, 'double'
68
- field :first_touch_convs_per_100_clicks, 'double'
69
60
  field :first_touch_convs_per_1k_impress, 'double'
70
61
  field :first_touch_convs_per_click, 'double'
71
62
  field :first_touch_convs_per_visit, 'double'
72
63
  field :first_touch_cpa, 'double'
73
64
  field :first_touch_revenue, 'double'
74
65
  field :first_touch_roas, 'double'
75
- field :first_touch_unattributed, 'double'
76
66
  field :id, 'string'
77
67
  field :is_archived, 'bool'
78
68
  field :last_click_convs, 'double'
79
- field :last_click_convs_per_100_clicks, 'double'
80
69
  field :last_click_convs_per_1k_impress, 'double'
81
70
  field :last_click_convs_per_click, 'double'
82
71
  field :last_click_convs_per_visit, 'double'
83
72
  field :last_click_cpa, 'double'
84
73
  field :last_click_revenue, 'double'
85
74
  field :last_click_roas, 'double'
86
- field :last_click_unattributed, 'double'
87
75
  field :last_click_with_extrapolation_convs, 'double'
88
76
  field :last_click_with_extrapolation_convs_per_100_clicks, 'double'
89
77
  field :last_click_with_extrapolation_convs_per_1k_impress, 'double'
@@ -96,57 +84,46 @@ module FacebookAds
96
84
  field :last_modified_by, 'object'
97
85
  field :last_modified_date, 'datetime'
98
86
  field :last_touch_convs, 'double'
99
- field :last_touch_convs_per_100_clicks, 'double'
100
87
  field :last_touch_convs_per_1k_impress, 'double'
101
88
  field :last_touch_convs_per_click, 'double'
102
89
  field :last_touch_convs_per_visit, 'double'
103
90
  field :last_touch_cpa, 'double'
104
91
  field :last_touch_revenue, 'double'
105
92
  field :last_touch_roas, 'double'
106
- field :last_touch_unattributed, 'double'
107
93
  field :name, 'string'
108
94
  field :net_media_cost, 'double'
109
95
  field :positional_30fl_convs, 'double'
110
- field :positional_30fl_convs_per_100_clicks, 'double'
111
96
  field :positional_30fl_convs_per_1k_impress, 'double'
112
97
  field :positional_30fl_convs_per_click, 'double'
113
98
  field :positional_30fl_convs_per_visit, 'double'
114
99
  field :positional_30fl_cpa, 'double'
115
100
  field :positional_30fl_revenue, 'double'
116
101
  field :positional_30fl_roas, 'double'
117
- field :positional_30fl_unattributed, 'double'
118
102
  field :positional_40fl_convs, 'double'
119
- field :positional_40fl_convs_per_100_clicks, 'double'
120
103
  field :positional_40fl_convs_per_1k_impress, 'double'
121
104
  field :positional_40fl_convs_per_click, 'double'
122
105
  field :positional_40fl_convs_per_visit, 'double'
123
106
  field :positional_40fl_cpa, 'double'
124
107
  field :positional_40fl_revenue, 'double'
125
108
  field :positional_40fl_roas, 'double'
126
- field :positional_40fl_unattributed, 'double'
127
109
  field :report_click_through_rate, 'double'
128
110
  field :report_clicks, 'int'
129
111
  field :report_impressions, 'int'
130
112
  field :report_visits, 'int'
131
- field :search_clicks, 'int'
132
113
  field :time_decay_1day_convs, 'double'
133
- field :time_decay_1day_convs_per_100_clicks, 'double'
134
114
  field :time_decay_1day_convs_per_1k_impress, 'double'
135
115
  field :time_decay_1day_convs_per_click, 'double'
136
116
  field :time_decay_1day_convs_per_visit, 'double'
137
117
  field :time_decay_1day_cpa, 'double'
138
118
  field :time_decay_1day_revenue, 'double'
139
119
  field :time_decay_1day_roas, 'double'
140
- field :time_decay_1day_unattributed, 'double'
141
120
  field :time_decay_7day_convs, 'double'
142
- field :time_decay_7day_convs_per_100_clicks, 'double'
143
121
  field :time_decay_7day_convs_per_1k_impress, 'double'
144
122
  field :time_decay_7day_convs_per_click, 'double'
145
123
  field :time_decay_7day_convs_per_visit, 'double'
146
124
  field :time_decay_7day_cpa, 'double'
147
125
  field :time_decay_7day_revenue, 'double'
148
126
  field :time_decay_7day_roas, 'double'
149
- field :time_decay_7day_unattributed, 'double'
150
127
  field :type, 'string'
151
128
  has_no_post
152
129
  has_no_delete
@@ -181,5 +158,13 @@ module FacebookAds
181
158
  end
182
159
  end
183
160
 
161
+ has_edge :sources do |edge|
162
+ edge.get do |api|
163
+ api.has_param :filter_by, 'string'
164
+ api.has_param :metric_scope, 'hash'
165
+ api.has_param :order_by, 'string'
166
+ end
167
+ end
168
+
184
169
  end
185
170
  end
@@ -252,12 +252,6 @@ module FacebookAds
252
252
  end
253
253
  end
254
254
 
255
- has_edge :catalog_segment_producer_tos do |edge|
256
- edge.post 'Business' do |api|
257
- api.has_param :catalog_segment_id, 'string'
258
- end
259
- end
260
-
261
255
  has_edge :claim_custom_conversions do |edge|
262
256
  edge.post 'CustomConversion' do |api|
263
257
  api.has_param :custom_conversion_id, 'string'
@@ -448,7 +442,7 @@ module FacebookAds
448
442
  api.has_param :client_id, 'string'
449
443
  end
450
444
  edge.get 'Business' do |api|
451
- api.has_param :client_user_id, 'object'
445
+ api.has_param :client_user_id, 'int'
452
446
  end
453
447
  edge.post 'Business' do |api|
454
448
  api.has_param :name, 'string'
@@ -546,6 +540,7 @@ module FacebookAds
546
540
 
547
541
  has_edge :pixel_tos do |edge|
548
542
  edge.get 'BusinessPixelTos'
543
+ edge.post 'BusinessPixelTos'
549
544
  end
550
545
 
551
546
  has_edge :received_audience_permissions do |edge|
@@ -70,7 +70,7 @@ module FacebookAds
70
70
 
71
71
  has_edge :insights do |edge|
72
72
  edge.get do |api|
73
- api.has_param :breakdowns, { list: { enum: %w{age country gender }} }
73
+ api.has_param :breakdowns, { list: { enum: %w{age country device_platform gender platform_position publisher_platform }} }
74
74
  api.has_param :time_range, 'object'
75
75
  end
76
76
  end
@@ -55,6 +55,22 @@ module FacebookAds
55
55
  end
56
56
  end
57
57
 
58
+ has_edge :campaigns do |edge|
59
+ edge.get 'AtlasCampaign' do |api|
60
+ api.has_param :filter_by, 'string'
61
+ api.has_param :metric_scope, 'hash'
62
+ api.has_param :order_by, 'string'
63
+ end
64
+ end
65
+
66
+ has_edge :conversion_events do |edge|
67
+ edge.get do |api|
68
+ api.has_param :filter_by, 'string'
69
+ api.has_param :metric_scope, 'hash'
70
+ api.has_param :order_by, 'string'
71
+ end
72
+ end
73
+
58
74
  has_edge :custom_breakdowns do |edge|
59
75
  edge.get do |api|
60
76
  api.has_param :filter_by, 'string'
@@ -76,5 +92,21 @@ module FacebookAds
76
92
  end
77
93
  end
78
94
 
95
+ has_edge :fb_conversion_events do |edge|
96
+ edge.get do |api|
97
+ api.has_param :filter_by, 'string'
98
+ api.has_param :metric_scope, 'hash'
99
+ api.has_param :order_by, 'string'
100
+ end
101
+ end
102
+
103
+ has_edge :sources do |edge|
104
+ edge.get do |api|
105
+ api.has_param :filter_by, 'string'
106
+ api.has_param :metric_scope, 'hash'
107
+ api.has_param :order_by, 'string'
108
+ end
109
+ end
110
+
79
111
  end
80
112
  end
@@ -103,6 +103,7 @@ module FacebookAds
103
103
  "CREDIT",
104
104
  "EMPLOYMENT",
105
105
  "HOUSING",
106
+ "ISSUES_ELECTIONS_POLITICS",
106
107
  "NONE",
107
108
  ]
108
109
 
@@ -45,6 +45,7 @@ module FacebookAds
45
45
  "HOME_LISTING",
46
46
  "HOTEL",
47
47
  "MEDIA_TITLE",
48
+ "OFFLINE_PRODUCT",
48
49
  "PRODUCT",
49
50
  "VEHICLE",
50
51
  "VEHICLE_OFFER",
@@ -165,16 +166,6 @@ module FacebookAds
165
166
  end
166
167
  end
167
168
 
168
- has_edge :capabilities do |edge|
169
- edge.delete do |api|
170
- api.has_param :adaccounts, { list: 'string' }
171
- end
172
- edge.post do |api|
173
- api.has_param :accounts_capabilities, 'string'
174
- api.has_param :relationship_type, { list: 'string' }
175
- end
176
- end
177
-
178
169
  has_edge :prefills do |edge|
179
170
  edge.get 'CustomAudiencePrefillState'
180
171
  end
@@ -27,7 +27,6 @@ module FacebookAds
27
27
 
28
28
  class LifeEvent < AdObject
29
29
 
30
- field :created_time, 'datetime'
31
30
  field :description, 'string'
32
31
  field :end_time, 'datetime'
33
32
  field :from, 'Page'
@@ -209,6 +209,7 @@ module FacebookAds
209
209
  "leadgen_fat",
210
210
  "live_videos",
211
211
  "location",
212
+ "mcom_invoice_change",
212
213
  "members",
213
214
  "mention",
214
215
  "merchant_review",
@@ -474,9 +475,9 @@ module FacebookAds
474
475
  has_edge :blocked do |edge|
475
476
  edge.delete do |api|
476
477
  api.has_param :asid, 'string'
477
- api.has_param :psid, 'object'
478
- api.has_param :uid, 'object'
479
- api.has_param :user, 'object'
478
+ api.has_param :psid, 'int'
479
+ api.has_param :uid, 'int'
480
+ api.has_param :user, 'int'
480
481
  end
481
482
  edge.get 'Profile' do |api|
482
483
  api.has_param :uid, 'int'
@@ -484,7 +485,7 @@ module FacebookAds
484
485
  end
485
486
  edge.post do |api|
486
487
  api.has_param :asid, { list: 'string' }
487
- api.has_param :psid, { list: 'object' }
488
+ api.has_param :psid, { list: 'int' }
488
489
  api.has_param :uid, { list: 'string' }
489
490
  api.has_param :user, { list: 'string' }
490
491
  end
@@ -1176,7 +1177,7 @@ module FacebookAds
1176
1177
  has_edge :roles do |edge|
1177
1178
  edge.get 'User' do |api|
1178
1179
  api.has_param :include_deactivated, 'bool'
1179
- api.has_param :uid, 'object'
1180
+ api.has_param :uid, 'int'
1180
1181
  end
1181
1182
  end
1182
1183
 
@@ -1188,10 +1189,6 @@ module FacebookAds
1188
1189
  edge.get 'PagePost'
1189
1190
  end
1190
1191
 
1191
- has_edge :screennames do |edge|
1192
- edge.get 'ScreenName'
1193
- end
1194
-
1195
1192
  has_edge :secondary_receivers do |edge|
1196
1193
  edge.get 'Application'
1197
1194
  end
@@ -26,6 +26,26 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class Post < AdObject
29
+ BACKDATED_TIME_GRANULARITY = [
30
+ "day",
31
+ "hour",
32
+ "min",
33
+ "month",
34
+ "none",
35
+ "year",
36
+ ]
37
+
38
+ FEED_STORY_VISIBILITY = [
39
+ "hidden",
40
+ "visible",
41
+ ]
42
+
43
+ TIMELINE_VISIBILITY = [
44
+ "forced_allow",
45
+ "hidden",
46
+ "normal",
47
+ ]
48
+
29
49
  WITH = [
30
50
  "LOCATION",
31
51
  ]
@@ -92,9 +112,103 @@ module FacebookAds
92
112
  field :via, 'object'
93
113
  field :video_buying_eligibility, { list: 'string' }
94
114
  field :width, 'int'
95
- has_no_get
96
- has_no_post
97
- has_no_delete
115
+
116
+ has_edge :attachments do |edge|
117
+ edge.get
118
+ end
119
+
120
+ has_edge :comments do |edge|
121
+ edge.get 'Comment' do |api|
122
+ api.has_param :filter, { enum: -> { Comment::FILTER }}
123
+ api.has_param :live_filter, { enum: -> { Comment::LIVE_FILTER }}
124
+ api.has_param :order, { enum: -> { Comment::ORDER }}
125
+ api.has_param :since, 'datetime'
126
+ end
127
+ edge.post 'Comment' do |api|
128
+ api.has_param :attachment_id, 'string'
129
+ api.has_param :attachment_share_url, 'string'
130
+ api.has_param :attachment_url, 'string'
131
+ api.has_param :comment, 'string'
132
+ api.has_param :comment_privacy_value, { enum: -> { Comment::COMMENT_PRIVACY_VALUE }}
133
+ api.has_param :feedback_source, 'string'
134
+ api.has_param :message, 'string'
135
+ api.has_param :nectar_module, 'string'
136
+ api.has_param :parent_comment_id, 'object'
137
+ api.has_param :post_id, 'string'
138
+ api.has_param :tracking, 'string'
139
+ end
140
+ end
141
+
142
+ has_edge :dynamic_posts do |edge|
143
+ edge.get 'RtbDynamicPost'
144
+ end
145
+
146
+ has_edge :edit_actions do |edge|
147
+ edge.get
148
+ end
149
+
150
+ has_edge :insights do |edge|
151
+ edge.get 'InsightsResult' do |api|
152
+ api.has_param :date_preset, { enum: -> { InsightsResult::DATE_PRESET }}
153
+ api.has_param :metric, { list: 'object' }
154
+ api.has_param :period, { enum: -> { InsightsResult::PERIOD }}
155
+ api.has_param :since, 'datetime'
156
+ api.has_param :until, 'datetime'
157
+ end
158
+ end
159
+
160
+ has_edge :likes do |edge|
161
+ edge.delete do |api|
162
+ api.has_param :nectar_module, 'string'
163
+ api.has_param :tracking, 'string'
164
+ end
165
+ edge.get 'Profile'
166
+ edge.post 'Post' do |api|
167
+ api.has_param :feedback_source, 'string'
168
+ api.has_param :nectar_module, 'string'
169
+ api.has_param :tracking, 'string'
170
+ end
171
+ end
172
+
173
+ has_edge :promotions do |edge|
174
+ edge.post do |api|
175
+ api.has_param :ad_account_id, 'string'
176
+ api.has_param :ad_conversion_pixel_id, 'int'
177
+ api.has_param :audience, { enum: %w{AUTO_LOOKALIKE AUTO_PAGE_LOOKALIKE AUTO_TARGETING CREATE_NEW CUSTOM_AUDIENCE DISTRICT EVENT_CUSTOM_AUDIENCES EVENT_ENGAGEMENT FANS GROUPER HEC_AUDIENCE IG_PROMOTED_POST_AUTO LOCAL LOOKALIKE MULT_CUSTOM_AUDIENCES NCPP SAVED_AUDIENCE SMART_AUDIENCE }}
178
+ api.has_param :audience_id, 'string'
179
+ api.has_param :bid_amount, 'int'
180
+ api.has_param :budget, 'int'
181
+ api.has_param :cta_type, { enum: %w{ADD_TO_CART APPLY_NOW BOOK_TRAVEL BUY BUY_NOW BUY_TICKETS CALL CALL_ME CONTACT CONTACT_US DONATE DONATE_NOW DOWNLOAD EVENT_RSVP FIND_A_GROUP FIND_YOUR_GROUPS FOLLOW_NEWS_STORYLINE GET_DIRECTIONS GET_OFFER GET_OFFER_VIEW GET_QUOTE GET_SHOWTIMES INSTALL_APP INSTALL_MOBILE_APP LEARN_MORE LIKE_PAGE LISTEN_MUSIC LISTEN_NOW MESSAGE_PAGE MOBILE_DOWNLOAD MOMENTS NO_BUTTON OPEN_LINK ORDER_NOW PLAY_GAME RECORD_NOW SAY_THANKS SEE_MORE SELL_NOW SHARE SHOP_NOW SIGN_UP SOTTO_SUBSCRIBE SUBSCRIBE UPDATE_APP USE_APP USE_MOBILE_APP VIDEO_ANNOTATION VISIT_PAGES_FEED WATCH_MORE WATCH_VIDEO WHATSAPP_MESSAGE WOODHENGE_SUPPORT }}
182
+ api.has_param :currency, 'string'
183
+ api.has_param :flow_id, 'string'
184
+ api.has_param :placement, 'string'
185
+ api.has_param :start_time, 'int'
186
+ api.has_param :stop_time, 'int'
187
+ api.has_param :targeting, 'Targeting'
188
+ end
189
+ end
190
+
191
+ has_edge :reactions do |edge|
192
+ edge.get 'Profile' do |api|
193
+ api.has_param :type, { enum: -> { Profile::TYPE }}
194
+ end
195
+ end
196
+
197
+ has_edge :sharedposts do |edge|
198
+ edge.get 'Post'
199
+ end
200
+
201
+ has_edge :sponsor_tags do |edge|
202
+ edge.get 'Page'
203
+ end
204
+
205
+ has_edge :to do |edge|
206
+ edge.get 'Profile'
207
+ end
208
+
209
+ has_edge :with_tags do |edge|
210
+ edge.get 'Profile'
211
+ end
98
212
 
99
213
  end
100
214
  end
@@ -128,7 +128,6 @@ module FacebookAds
128
128
  field :is_famedeeplinkinguser, 'bool'
129
129
  field :is_shared_login, 'bool'
130
130
  field :is_verified, 'bool'
131
- field :labels, { list: 'PageLabel' }
132
131
  field :languages, { list: 'Experience' }
133
132
  field :last_name, 'string'
134
133
  field :link, 'string'
@@ -25,11 +25,9 @@ module FacebookAds
25
25
  # on github and we'll fix in our codegen framework. We'll not be able to accept
26
26
  # pull request for this class.
27
27
 
28
- class ScreenName < AdObject
28
+ class WorkUserFrontline < AdObject
29
29
 
30
- field :service_name, 'string'
31
- field :service_type, 'string'
32
- field :value, 'string'
30
+ field :is_frontline, 'bool'
33
31
  has_no_id
34
32
  has_no_get
35
33
  has_no_post
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.5.0.0'
22
+ VERSION = '0.5.0.1'
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.0
4
+ version: 0.5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -491,7 +491,6 @@ files:
491
491
  - lib/facebook_ads/ad_objects/page_thread_owner.rb
492
492
  - lib/facebook_ads/ad_objects/page_upcoming_change.rb
493
493
  - lib/facebook_ads/ad_objects/page_user_message_thread_label.rb
494
- - lib/facebook_ads/ad_objects/partner_coupon_offer.rb
495
494
  - lib/facebook_ads/ad_objects/partner_study.rb
496
495
  - lib/facebook_ads/ad_objects/payment_pricepoints.rb
497
496
  - lib/facebook_ads/ad_objects/permission.rb
@@ -549,7 +548,6 @@ files:
549
548
  - lib/facebook_ads/ad_objects/rtb_dynamic_post.rb
550
549
  - lib/facebook_ads/ad_objects/saved_audience.rb
551
550
  - lib/facebook_ads/ad_objects/saved_message_response.rb
552
- - lib/facebook_ads/ad_objects/screen_name.rb
553
551
  - lib/facebook_ads/ad_objects/security_settings.rb
554
552
  - lib/facebook_ads/ad_objects/split_test_config.rb
555
553
  - lib/facebook_ads/ad_objects/split_test_winner.rb
@@ -612,6 +610,7 @@ files:
612
610
  - lib/facebook_ads/ad_objects/whats_app_business_profile.rb
613
611
  - lib/facebook_ads/ad_objects/windows_app_link.rb
614
612
  - lib/facebook_ads/ad_objects/windows_phone_app_link.rb
613
+ - lib/facebook_ads/ad_objects/work_user_frontline.rb
615
614
  - lib/facebook_ads/api_request.rb
616
615
  - lib/facebook_ads/api_response.rb
617
616
  - lib/facebook_ads/batch_api/batch.rb
@@ -1,40 +0,0 @@
1
- # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
- #
3
- # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
- # copy, modify, and distribute this software in source code or binary form for use
5
- # in connection with the web services and APIs provided by Facebook.
6
- #
7
- # As with any software that integrates with the Facebook platform, your use of
8
- # this software is subject to the Facebook Platform Policy
9
- # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
- # included in all copies or substantial portions of the software.
11
- #
12
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
- # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
- # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
- # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
- # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
-
19
- # FB:AUTOGEN
20
-
21
- module FacebookAds
22
- # This class is auto-generated.
23
-
24
- # For any issues or feature requests related to this class, please let us know
25
- # on github and we'll fix in our codegen framework. We'll not be able to accept
26
- # pull request for this class.
27
-
28
- class PartnerCouponOffer < AdObject
29
-
30
- field :claim_by, 'datetime'
31
- field :currency, 'string'
32
- field :expiration_days, 'int'
33
- field :id, 'string'
34
- field :minimum_spend, 'int'
35
- field :offer_amount, 'int'
36
- has_no_post
37
- has_no_delete
38
-
39
- end
40
- end