facebookbusiness 0.3.3.2 → 0.3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad_account.rb +55 -48
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +7 -0
- data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +22 -22
- data/lib/facebook_ads/ad_objects/ad_study.rb +5 -5
- data/lib/facebook_ads/ad_objects/ad_video.rb +0 -1
- data/lib/facebook_ads/ad_objects/application.rb +9 -3
- data/lib/facebook_ads/ad_objects/business.rb +7 -40
- data/lib/facebook_ads/ad_objects/{recommendation.rb → invoice_campaign.rb} +9 -9
- data/lib/facebook_ads/ad_objects/live_video.rb +0 -6
- data/lib/facebook_ads/ad_objects/open_graph_object.rb +0 -1
- data/lib/facebook_ads/ad_objects/oracle_transaction.rb +4 -5
- data/lib/facebook_ads/ad_objects/page.rb +4 -34
- data/lib/facebook_ads/ad_objects/permission.rb +1 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_spec.rb +0 -1
- data/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +0 -1
- data/lib/facebook_ads/ad_objects/user.rb +1 -12
- data/lib/facebook_ads/ad_objects/video_copyright_rule.rb +0 -6
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +85 -0
- data/lib/facebook_ads/version.rb +1 -1
- metadata +4 -4
- data/lib/facebook_ads/ad_objects/measurement_report.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1235152cf3411a27f1680a83d12d8d8b911240d1540156bfdfc53ea2f1596909
|
4
|
+
data.tar.gz: 7eae3dde8fb347531132d0e6fe9a5df8f4f92b45e983e7653c07e1d409549aa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05100fdd628eccf186497086156fa0c4ad25e9f459e3625191da15c0f98a637a50276c585e6f494e15178f22b789a9ebdc2a7887c73b316993ce7c11bf6a3815
|
7
|
+
data.tar.gz: 18f40ccf9400ebfa9a29b441291371c5eba34590004f6cfbfa600dcd9844603d3af198061c4fe15010ec9be04f39a0aa5e585597a70091ca8bd17d3d4f2f782a
|
@@ -224,6 +224,56 @@ module FacebookAds
|
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
227
|
+
has_edge :ad_sets do |edge|
|
228
|
+
edge.post 'AdSet' do |api|
|
229
|
+
api.has_param :ad_keywords, 'object'
|
230
|
+
api.has_param :adlabels, { list: 'object' }
|
231
|
+
api.has_param :adset_schedule, { list: 'object' }
|
232
|
+
api.has_param :attribution_spec, { list: 'hash' }
|
233
|
+
api.has_param :bid_adjustments, 'object'
|
234
|
+
api.has_param :bid_amount, 'int'
|
235
|
+
api.has_param :bid_constraints, 'hash'
|
236
|
+
api.has_param :bid_strategy, { enum: -> { AdSet::BID_STRATEGY }}
|
237
|
+
api.has_param :billing_event, { enum: -> { AdSet::BILLING_EVENT }}
|
238
|
+
api.has_param :campaign_id, 'string'
|
239
|
+
api.has_param :campaign_spec, 'object'
|
240
|
+
api.has_param :creative_sequence, { list: 'string' }
|
241
|
+
api.has_param :daily_budget, 'int'
|
242
|
+
api.has_param :daily_imps, 'int'
|
243
|
+
api.has_param :daily_min_spend_target, 'int'
|
244
|
+
api.has_param :daily_spend_cap, 'int'
|
245
|
+
api.has_param :date_format, 'string'
|
246
|
+
api.has_param :destination_type, { enum: -> { AdSet::DESTINATION_TYPE }}
|
247
|
+
api.has_param :end_time, 'datetime'
|
248
|
+
api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
|
249
|
+
api.has_param :frequency_control_specs, { list: 'object' }
|
250
|
+
api.has_param :full_funnel_exploration_mode, { enum: -> { AdSet::FULL_FUNNEL_EXPLORATION_MODE }}
|
251
|
+
api.has_param :is_dynamic_creative, 'bool'
|
252
|
+
api.has_param :lifetime_budget, 'int'
|
253
|
+
api.has_param :lifetime_imps, 'int'
|
254
|
+
api.has_param :lifetime_min_spend_target, 'int'
|
255
|
+
api.has_param :lifetime_spend_cap, 'int'
|
256
|
+
api.has_param :line_number, 'int'
|
257
|
+
api.has_param :name, 'string'
|
258
|
+
api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }}
|
259
|
+
api.has_param :optimization_sub_event, { enum: -> { AdSet::OPTIMIZATION_SUB_EVENT }}
|
260
|
+
api.has_param :pacing_type, { list: 'string' }
|
261
|
+
api.has_param :promoted_object, 'object'
|
262
|
+
api.has_param :rb_prediction_id, 'string'
|
263
|
+
api.has_param :rf_prediction_id, 'string'
|
264
|
+
api.has_param :source_adset_id, 'string'
|
265
|
+
api.has_param :start_time, 'datetime'
|
266
|
+
api.has_param :status, { enum: -> { AdSet::STATUS }}
|
267
|
+
api.has_param :targeting, 'Targeting'
|
268
|
+
api.has_param :time_based_ad_rotation_id_blocks, { list: { list: 'int' } }
|
269
|
+
api.has_param :time_based_ad_rotation_intervals, { list: 'int' }
|
270
|
+
api.has_param :time_start, 'datetime'
|
271
|
+
api.has_param :time_stop, 'datetime'
|
272
|
+
api.has_param :topline_id, 'string'
|
273
|
+
api.has_param :upstream_events, 'hash'
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
227
277
|
has_edge :ad_studies do |edge|
|
228
278
|
edge.get 'AdStudy'
|
229
279
|
end
|
@@ -326,7 +376,6 @@ module FacebookAds
|
|
326
376
|
|
327
377
|
has_edge :adreportruns do |edge|
|
328
378
|
edge.delete
|
329
|
-
edge.get 'AdReportRun'
|
330
379
|
end
|
331
380
|
|
332
381
|
has_edge :adreportschedules do |edge|
|
@@ -424,6 +473,7 @@ module FacebookAds
|
|
424
473
|
api.has_param :include_drafts, 'bool'
|
425
474
|
api.has_param :time_range, 'object'
|
426
475
|
api.has_param :updated_since, 'int'
|
476
|
+
api.has_param :use_employee_draft, 'bool'
|
427
477
|
end
|
428
478
|
edge.post 'Ad' do |api|
|
429
479
|
api.has_param :adlabels, { list: 'object' }
|
@@ -469,53 +519,7 @@ module FacebookAds
|
|
469
519
|
api.has_param :include_drafts, 'bool'
|
470
520
|
api.has_param :is_completed, 'bool'
|
471
521
|
api.has_param :time_range, 'object'
|
472
|
-
|
473
|
-
edge.post 'AdSet' do |api|
|
474
|
-
api.has_param :ad_keywords, 'object'
|
475
|
-
api.has_param :adlabels, { list: 'object' }
|
476
|
-
api.has_param :adset_schedule, { list: 'object' }
|
477
|
-
api.has_param :attribution_spec, { list: 'hash' }
|
478
|
-
api.has_param :bid_adjustments, 'object'
|
479
|
-
api.has_param :bid_amount, 'int'
|
480
|
-
api.has_param :bid_constraints, 'hash'
|
481
|
-
api.has_param :bid_strategy, { enum: -> { AdSet::BID_STRATEGY }}
|
482
|
-
api.has_param :billing_event, { enum: -> { AdSet::BILLING_EVENT }}
|
483
|
-
api.has_param :campaign_id, 'string'
|
484
|
-
api.has_param :campaign_spec, 'object'
|
485
|
-
api.has_param :creative_sequence, { list: 'string' }
|
486
|
-
api.has_param :daily_budget, 'int'
|
487
|
-
api.has_param :daily_imps, 'int'
|
488
|
-
api.has_param :daily_min_spend_target, 'int'
|
489
|
-
api.has_param :daily_spend_cap, 'int'
|
490
|
-
api.has_param :date_format, 'string'
|
491
|
-
api.has_param :destination_type, { enum: -> { AdSet::DESTINATION_TYPE }}
|
492
|
-
api.has_param :end_time, 'datetime'
|
493
|
-
api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
|
494
|
-
api.has_param :frequency_control_specs, { list: 'object' }
|
495
|
-
api.has_param :full_funnel_exploration_mode, { enum: -> { AdSet::FULL_FUNNEL_EXPLORATION_MODE }}
|
496
|
-
api.has_param :is_dynamic_creative, 'bool'
|
497
|
-
api.has_param :lifetime_budget, 'int'
|
498
|
-
api.has_param :lifetime_imps, 'int'
|
499
|
-
api.has_param :lifetime_min_spend_target, 'int'
|
500
|
-
api.has_param :lifetime_spend_cap, 'int'
|
501
|
-
api.has_param :line_number, 'int'
|
502
|
-
api.has_param :name, 'string'
|
503
|
-
api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }}
|
504
|
-
api.has_param :optimization_sub_event, { enum: -> { AdSet::OPTIMIZATION_SUB_EVENT }}
|
505
|
-
api.has_param :pacing_type, { list: 'string' }
|
506
|
-
api.has_param :promoted_object, 'object'
|
507
|
-
api.has_param :rb_prediction_id, 'string'
|
508
|
-
api.has_param :rf_prediction_id, 'string'
|
509
|
-
api.has_param :source_adset_id, 'string'
|
510
|
-
api.has_param :start_time, 'datetime'
|
511
|
-
api.has_param :status, { enum: -> { AdSet::STATUS }}
|
512
|
-
api.has_param :targeting, 'Targeting'
|
513
|
-
api.has_param :time_based_ad_rotation_id_blocks, { list: { list: 'int' } }
|
514
|
-
api.has_param :time_based_ad_rotation_intervals, { list: 'int' }
|
515
|
-
api.has_param :time_start, 'datetime'
|
516
|
-
api.has_param :time_stop, 'datetime'
|
517
|
-
api.has_param :topline_id, 'string'
|
518
|
-
api.has_param :upstream_events, 'hash'
|
522
|
+
api.has_param :use_employee_draft, 'bool'
|
519
523
|
end
|
520
524
|
end
|
521
525
|
|
@@ -1127,6 +1131,7 @@ module FacebookAds
|
|
1127
1131
|
api.has_param :include_nodes, 'bool'
|
1128
1132
|
api.has_param :is_exclusion, 'bool'
|
1129
1133
|
api.has_param :limit_type, { enum: -> { AdAccountTargetingUnified::LIMIT_TYPE }}
|
1134
|
+
api.has_param :regulated_categories, { list: { enum: -> { AdAccountTargetingUnified::REGULATED_CATEGORIES }} }
|
1130
1135
|
api.has_param :whitelisted_types, { list: { enum: -> { AdAccountTargetingUnified::WHITELISTED_TYPES }} }
|
1131
1136
|
end
|
1132
1137
|
end
|
@@ -1138,6 +1143,7 @@ module FacebookAds
|
|
1138
1143
|
api.has_param :is_exclusion, 'bool'
|
1139
1144
|
api.has_param :limit_type, { enum: -> { AdAccountTargetingUnified::LIMIT_TYPE }}
|
1140
1145
|
api.has_param :q, 'string'
|
1146
|
+
api.has_param :regulated_categories, { list: { enum: -> { AdAccountTargetingUnified::REGULATED_CATEGORIES }} }
|
1141
1147
|
api.has_param :session_id, 'int'
|
1142
1148
|
api.has_param :targeting_list, { list: 'object' }
|
1143
1149
|
api.has_param :whitelisted_types, { list: { enum: -> { AdAccountTargetingUnified::WHITELISTED_TYPES }} }
|
@@ -1160,6 +1166,7 @@ module FacebookAds
|
|
1160
1166
|
api.has_param :mode, { enum: -> { AdAccountTargetingUnified::MODE }}
|
1161
1167
|
api.has_param :objective, { enum: -> { AdAccountTargetingUnified::OBJECTIVE }}
|
1162
1168
|
api.has_param :objects, 'object'
|
1169
|
+
api.has_param :regulated_categories, { list: { enum: -> { AdAccountTargetingUnified::REGULATED_CATEGORIES }} }
|
1163
1170
|
api.has_param :session_id, 'int'
|
1164
1171
|
api.has_param :targeting_list, { list: 'object' }
|
1165
1172
|
api.has_param :whitelisted_types, { list: { enum: -> { AdAccountTargetingUnified::WHITELISTED_TYPES }} }
|
@@ -94,28 +94,6 @@ module FacebookAds
|
|
94
94
|
"PAUSED",
|
95
95
|
]
|
96
96
|
|
97
|
-
DATE_PRESET = [
|
98
|
-
"last_14d",
|
99
|
-
"last_28d",
|
100
|
-
"last_30d",
|
101
|
-
"last_3d",
|
102
|
-
"last_7d",
|
103
|
-
"last_90d",
|
104
|
-
"last_month",
|
105
|
-
"last_quarter",
|
106
|
-
"last_week_mon_sun",
|
107
|
-
"last_week_sun_sat",
|
108
|
-
"last_year",
|
109
|
-
"lifetime",
|
110
|
-
"this_month",
|
111
|
-
"this_quarter",
|
112
|
-
"this_week_mon_today",
|
113
|
-
"this_week_sun_today",
|
114
|
-
"this_year",
|
115
|
-
"today",
|
116
|
-
"yesterday",
|
117
|
-
]
|
118
|
-
|
119
97
|
DESTINATION_TYPE = [
|
120
98
|
"APP",
|
121
99
|
"APPLINKS_AUTOMATIC",
|
@@ -148,6 +126,28 @@ module FacebookAds
|
|
148
126
|
"VIDEO_SOUND_ON",
|
149
127
|
]
|
150
128
|
|
129
|
+
DATE_PRESET = [
|
130
|
+
"LAST_14D",
|
131
|
+
"LAST_28D",
|
132
|
+
"LAST_30D",
|
133
|
+
"LAST_3D",
|
134
|
+
"LAST_7D",
|
135
|
+
"LAST_90D",
|
136
|
+
"LAST_MONTH",
|
137
|
+
"LAST_QUARTER",
|
138
|
+
"LAST_WEEK_MON_SUN",
|
139
|
+
"LAST_WEEK_SUN_SAT",
|
140
|
+
"LAST_YEAR",
|
141
|
+
"LIFETIME",
|
142
|
+
"THIS_MONTH",
|
143
|
+
"THIS_QUARTER",
|
144
|
+
"THIS_WEEK_MON_TODAY",
|
145
|
+
"THIS_WEEK_SUN_TODAY",
|
146
|
+
"THIS_YEAR",
|
147
|
+
"TODAY",
|
148
|
+
"YESTERDAY",
|
149
|
+
]
|
150
|
+
|
151
151
|
OPERATOR = [
|
152
152
|
"ALL",
|
153
153
|
"ANY",
|
@@ -26,17 +26,17 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class AdStudy < AdObject
|
29
|
-
AUDIENCE_TYPE = [
|
30
|
-
"MOST_RESPONSIVE",
|
31
|
-
"NOT_MOST_RESPONSIVE",
|
32
|
-
]
|
33
|
-
|
34
29
|
TYPE = [
|
35
30
|
"CONTINUOUS_LIFT_CONFIG",
|
36
31
|
"LIFT",
|
37
32
|
"SPLIT_TEST",
|
38
33
|
]
|
39
34
|
|
35
|
+
AUDIENCE_TYPE = [
|
36
|
+
"MOST_RESPONSIVE",
|
37
|
+
"NOT_MOST_RESPONSIVE",
|
38
|
+
]
|
39
|
+
|
40
40
|
|
41
41
|
field :business, 'Business'
|
42
42
|
field :canceled_time, 'datetime'
|
@@ -470,9 +470,6 @@ module FacebookAds
|
|
470
470
|
end
|
471
471
|
|
472
472
|
has_edge :objects do |edge|
|
473
|
-
edge.get 'OpenGraphObject' do |api|
|
474
|
-
api.has_param :type, 'object'
|
475
|
-
end
|
476
473
|
edge.post 'OpenGraphObject' do |api|
|
477
474
|
api.has_param :object, 'object'
|
478
475
|
api.has_param :type, 'string'
|
@@ -589,6 +586,15 @@ module FacebookAds
|
|
589
586
|
end
|
590
587
|
end
|
591
588
|
|
589
|
+
has_edge :uploads do |edge|
|
590
|
+
edge.post do |api|
|
591
|
+
api.has_param :file_length, 'int'
|
592
|
+
api.has_param :file_name, 'string'
|
593
|
+
api.has_param :file_type, 'string'
|
594
|
+
api.has_param :session_type, { enum: %w{attachment }}
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
592
598
|
has_edge :user_properties do |edge|
|
593
599
|
edge.post do |api|
|
594
600
|
api.has_param :data, { list: 'object' }
|
@@ -76,6 +76,7 @@ module FacebookAds
|
|
76
76
|
"CREATE_CONTENT",
|
77
77
|
"MANAGE",
|
78
78
|
"MANAGE_JOBS",
|
79
|
+
"MANAGE_LEADS",
|
79
80
|
"MODERATE",
|
80
81
|
"MODERATE_COMMUNITY",
|
81
82
|
"PAGES_MESSAGING",
|
@@ -113,6 +114,12 @@ module FacebookAds
|
|
113
114
|
end
|
114
115
|
end
|
115
116
|
|
117
|
+
has_edge :ad_accounts do |edge|
|
118
|
+
edge.delete do |api|
|
119
|
+
api.has_param :adaccount_id, 'string'
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
116
123
|
has_edge :ad_studies do |edge|
|
117
124
|
edge.get 'AdStudy'
|
118
125
|
edge.post 'AdStudy' do |api|
|
@@ -179,12 +186,6 @@ module FacebookAds
|
|
179
186
|
end
|
180
187
|
end
|
181
188
|
|
182
|
-
has_edge :adaccounts do |edge|
|
183
|
-
edge.delete do |api|
|
184
|
-
api.has_param :adaccount_id, 'string'
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
189
|
has_edge :adnetworkanalytics do |edge|
|
189
190
|
edge.get 'AdNetworkAnalyticsSyncQueryResult' do |api|
|
190
191
|
api.has_param :aggregation_period, { enum: -> { AdNetworkAnalyticsSyncQueryResult::AGGREGATION_PERIOD }}
|
@@ -251,18 +252,6 @@ module FacebookAds
|
|
251
252
|
end
|
252
253
|
end
|
253
254
|
|
254
|
-
has_edge :business_invoices do |edge|
|
255
|
-
edge.get 'OracleTransaction' do |api|
|
256
|
-
api.has_param :end_date, 'string'
|
257
|
-
api.has_param :invoice_id, 'int'
|
258
|
-
api.has_param :issue_end_date, 'string'
|
259
|
-
api.has_param :issue_start_date, 'string'
|
260
|
-
api.has_param :root_id, 'int'
|
261
|
-
api.has_param :start_date, 'string'
|
262
|
-
api.has_param :type, { enum: -> { OracleTransaction::TYPE }}
|
263
|
-
end
|
264
|
-
end
|
265
|
-
|
266
255
|
has_edge :business_users do |edge|
|
267
256
|
edge.get 'BusinessUser'
|
268
257
|
edge.post 'BusinessUser' do |api|
|
@@ -365,13 +354,6 @@ module FacebookAds
|
|
365
354
|
edge.get 'ExtendedCredit'
|
366
355
|
end
|
367
356
|
|
368
|
-
has_edge :initiated_audience_sharing_requests do |edge|
|
369
|
-
edge.get do |api|
|
370
|
-
api.has_param :recipient_id, 'string'
|
371
|
-
api.has_param :request_status, { enum: %w{APPROVE DECLINE EXPIRED IN_PROGRESS }}
|
372
|
-
end
|
373
|
-
end
|
374
|
-
|
375
357
|
has_edge :initiated_sharing_agreements do |edge|
|
376
358
|
edge.get 'BusinessAgreement' do |api|
|
377
359
|
api.has_param :receiving_business_id, 'string'
|
@@ -399,13 +381,6 @@ module FacebookAds
|
|
399
381
|
end
|
400
382
|
end
|
401
383
|
|
402
|
-
has_edge :measurement_reports do |edge|
|
403
|
-
edge.get 'MeasurementReport' do |api|
|
404
|
-
api.has_param :filters, { list: 'object' }
|
405
|
-
api.has_param :report_type, { enum: -> { MeasurementReport::REPORT_TYPE }}
|
406
|
-
end
|
407
|
-
end
|
408
|
-
|
409
384
|
has_edge :offline_conversion_data_sets do |edge|
|
410
385
|
edge.get 'OfflineConversionDataSet'
|
411
386
|
edge.post 'OfflineConversionDataSet' do |api|
|
@@ -456,7 +431,6 @@ module FacebookAds
|
|
456
431
|
end
|
457
432
|
|
458
433
|
has_edge :owned_domains do |edge|
|
459
|
-
edge.get
|
460
434
|
edge.post do |api|
|
461
435
|
api.has_param :domain_name, 'string'
|
462
436
|
end
|
@@ -548,13 +522,6 @@ module FacebookAds
|
|
548
522
|
end
|
549
523
|
end
|
550
524
|
|
551
|
-
has_edge :received_audience_sharing_requests do |edge|
|
552
|
-
edge.get do |api|
|
553
|
-
api.has_param :initiator_id, 'string'
|
554
|
-
api.has_param :request_status, { enum: %w{APPROVE DECLINE EXPIRED IN_PROGRESS }}
|
555
|
-
end
|
556
|
-
end
|
557
|
-
|
558
525
|
has_edge :received_inprogress_onbehalf_requests do |edge|
|
559
526
|
edge.get 'BusinessOwnedObjectOnBehalfOfRequest'
|
560
527
|
end
|
@@ -25,16 +25,16 @@ 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
|
28
|
+
class InvoiceCampaign < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :
|
32
|
-
field :
|
33
|
-
field :
|
34
|
-
field :
|
35
|
-
field :
|
36
|
-
field :
|
37
|
-
field :
|
30
|
+
field :ad_account_id, 'string'
|
31
|
+
field :billed_amount_details, 'BilledAmountDetails'
|
32
|
+
field :campaign_id, 'string'
|
33
|
+
field :campaign_name, 'string'
|
34
|
+
field :clicks, 'int'
|
35
|
+
field :conversions, 'int'
|
36
|
+
field :impressions, 'int'
|
37
|
+
field :tags, { list: 'string' }
|
38
38
|
has_no_id
|
39
39
|
has_no_get
|
40
40
|
has_no_post
|
@@ -109,12 +109,6 @@ module FacebookAds
|
|
109
109
|
field :total_views, 'string'
|
110
110
|
field :video, 'AdVideo'
|
111
111
|
|
112
|
-
has_edge :blocked_users do |edge|
|
113
|
-
edge.get 'User' do |api|
|
114
|
-
api.has_param :uid, 'object'
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
112
|
has_edge :comments do |edge|
|
119
113
|
edge.get 'Comment' do |api|
|
120
114
|
api.has_param :filter, { enum: -> { Comment::FILTER }}
|
@@ -26,11 +26,6 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class OracleTransaction < AdObject
|
29
|
-
TYPE = [
|
30
|
-
"CM",
|
31
|
-
"INV",
|
32
|
-
]
|
33
|
-
|
34
29
|
|
35
30
|
field :ad_account_ids, { list: 'string' }
|
36
31
|
field :amount, 'string'
|
@@ -52,6 +47,10 @@ module FacebookAds
|
|
52
47
|
has_no_post
|
53
48
|
has_no_delete
|
54
49
|
|
50
|
+
has_edge :campaigns do |edge|
|
51
|
+
edge.get 'InvoiceCampaign'
|
52
|
+
end
|
53
|
+
|
55
54
|
has_edge :data do |edge|
|
56
55
|
edge.get 'AtlasUrl' do |api|
|
57
56
|
api.has_param :redirect, 'bool'
|
@@ -104,6 +104,7 @@ module FacebookAds
|
|
104
104
|
"CREATE_CONTENT",
|
105
105
|
"MANAGE",
|
106
106
|
"MANAGE_JOBS",
|
107
|
+
"MANAGE_LEADS",
|
107
108
|
"MODERATE",
|
108
109
|
"MODERATE_COMMUNITY",
|
109
110
|
"PAGES_MESSAGING",
|
@@ -118,6 +119,7 @@ module FacebookAds
|
|
118
119
|
"CREATE_CONTENT",
|
119
120
|
"MANAGE",
|
120
121
|
"MANAGE_JOBS",
|
122
|
+
"MANAGE_LEADS",
|
121
123
|
"MODERATE",
|
122
124
|
"MODERATE_COMMUNITY",
|
123
125
|
"PAGES_MESSAGING",
|
@@ -418,10 +420,6 @@ module FacebookAds
|
|
418
420
|
field :written_by, 'string'
|
419
421
|
has_no_delete
|
420
422
|
|
421
|
-
has_edge :admin_notes do |edge|
|
422
|
-
edge.get 'PageAdminNote'
|
423
|
-
end
|
424
|
-
|
425
423
|
has_edge :admin_settings do |edge|
|
426
424
|
edge.post 'Page' do |api|
|
427
425
|
api.has_param :setting, { enum: -> { Page::SETTING }}
|
@@ -575,6 +573,7 @@ module FacebookAds
|
|
575
573
|
|
576
574
|
has_edge :canvases do |edge|
|
577
575
|
edge.get 'Canvas' do |api|
|
576
|
+
api.has_param :is_hidden, 'bool'
|
578
577
|
api.has_param :is_published, 'bool'
|
579
578
|
end
|
580
579
|
edge.post 'Canvas' do |api|
|
@@ -630,6 +629,7 @@ module FacebookAds
|
|
630
629
|
end
|
631
630
|
|
632
631
|
has_edge :custom_labels do |edge|
|
632
|
+
edge.get 'PageUserMessageThreadLabel'
|
633
633
|
edge.post 'PageUserMessageThreadLabel' do |api|
|
634
634
|
api.has_param :name, 'string'
|
635
635
|
end
|
@@ -906,24 +906,6 @@ module FacebookAds
|
|
906
906
|
api.has_param :store_number, 'int'
|
907
907
|
end
|
908
908
|
edge.get 'Page'
|
909
|
-
edge.post 'Page' do |api|
|
910
|
-
api.has_param :always_open, 'bool'
|
911
|
-
api.has_param :hours, 'hash'
|
912
|
-
api.has_param :ignore_warnings, 'bool'
|
913
|
-
api.has_param :location, 'object'
|
914
|
-
api.has_param :location_page_id, 'string'
|
915
|
-
api.has_param :old_store_number, 'int'
|
916
|
-
api.has_param :page_username, 'string'
|
917
|
-
api.has_param :permanently_closed, 'bool'
|
918
|
-
api.has_param :phone, 'string'
|
919
|
-
api.has_param :place_topics, { list: 'string' }
|
920
|
-
api.has_param :price_range, 'string'
|
921
|
-
api.has_param :store_code, 'string'
|
922
|
-
api.has_param :store_location_descriptor, 'string'
|
923
|
-
api.has_param :store_name, 'string'
|
924
|
-
api.has_param :store_number, 'int'
|
925
|
-
api.has_param :website, 'string'
|
926
|
-
end
|
927
909
|
end
|
928
910
|
|
929
911
|
has_edge :media_fingerprints do |edge|
|
@@ -1188,10 +1170,6 @@ module FacebookAds
|
|
1188
1170
|
end
|
1189
1171
|
end
|
1190
1172
|
|
1191
|
-
has_edge :ratings do |edge|
|
1192
|
-
edge.get 'Recommendation'
|
1193
|
-
end
|
1194
|
-
|
1195
1173
|
has_edge :request_thread_control do |edge|
|
1196
1174
|
edge.post 'Page' do |api|
|
1197
1175
|
api.has_param :metadata, 'string'
|
@@ -1257,7 +1235,6 @@ module FacebookAds
|
|
1257
1235
|
api.has_param :setting_type, { enum: -> { Page::SETTING_TYPE }}
|
1258
1236
|
api.has_param :thread_state, { enum: -> { Page::THREAD_STATE }}
|
1259
1237
|
end
|
1260
|
-
edge.get
|
1261
1238
|
edge.post 'Page' do |api|
|
1262
1239
|
api.has_param :account_linking_url, 'string'
|
1263
1240
|
api.has_param :call_to_actions, { list: 'object' }
|
@@ -1291,13 +1268,6 @@ module FacebookAds
|
|
1291
1268
|
end
|
1292
1269
|
end
|
1293
1270
|
|
1294
|
-
has_edge :video_copyright_rules do |edge|
|
1295
|
-
edge.get 'VideoCopyrightRule' do |api|
|
1296
|
-
api.has_param :selected_rule_id, 'string'
|
1297
|
-
api.has_param :source, { enum: -> { VideoCopyrightRule::SOURCE }}
|
1298
|
-
end
|
1299
|
-
end
|
1300
|
-
|
1301
1271
|
has_edge :video_copyrights do |edge|
|
1302
1272
|
edge.post 'VideoCopyright' do |api|
|
1303
1273
|
api.has_param :attribution_id, 'string'
|
@@ -32,6 +32,7 @@ module FacebookAds
|
|
32
32
|
"CREATE_CONTENT",
|
33
33
|
"MANAGE",
|
34
34
|
"MANAGE_JOBS",
|
35
|
+
"MANAGE_LEADS",
|
35
36
|
"MODERATE",
|
36
37
|
"MODERATE_COMMUNITY",
|
37
38
|
"PAGES_MESSAGING",
|
@@ -307,14 +308,6 @@ module FacebookAds
|
|
307
308
|
edge.get 'Business'
|
308
309
|
end
|
309
310
|
|
310
|
-
has_edge :conversations do |edge|
|
311
|
-
edge.get 'UnifiedThread' do |api|
|
312
|
-
api.has_param :folder, 'string'
|
313
|
-
api.has_param :tags, { list: 'string' }
|
314
|
-
api.has_param :user_id, 'string'
|
315
|
-
end
|
316
|
-
end
|
317
|
-
|
318
311
|
has_edge :events do |edge|
|
319
312
|
edge.get 'Event' do |api|
|
320
313
|
api.has_param :include_canceled, 'bool'
|
@@ -326,10 +319,6 @@ module FacebookAds
|
|
326
319
|
edge.get 'User'
|
327
320
|
end
|
328
321
|
|
329
|
-
has_edge :favorite_requests do |edge|
|
330
|
-
edge.get
|
331
|
-
end
|
332
|
-
|
333
322
|
has_edge :feed do |edge|
|
334
323
|
edge.post do |api|
|
335
324
|
api.has_param :actions, 'object'
|
@@ -26,12 +26,6 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class VideoCopyrightRule < AdObject
|
29
|
-
SOURCE = [
|
30
|
-
"MATCH_SETTINGS_DIALOG",
|
31
|
-
"RULES_SELECTOR",
|
32
|
-
"RULES_TAB",
|
33
|
-
]
|
34
|
-
|
35
29
|
|
36
30
|
field :condition_groups, { list: 'VideoCopyrightConditionGroup' }
|
37
31
|
field :copyrights, { list: 'string' }
|
@@ -0,0 +1,85 @@
|
|
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 WhatsAppBusinessAccount < AdObject
|
29
|
+
CATEGORY = [
|
30
|
+
"ACCOUNT_UPDATE",
|
31
|
+
"ALERT_UPDATE",
|
32
|
+
"APPOINTMENT_UPDATE",
|
33
|
+
"ISSUE_RESOLUTION",
|
34
|
+
"PAYMENT_UPDATE",
|
35
|
+
"PERSONAL_FINANCE_UPDATE",
|
36
|
+
"RESERVATION_UPDATE",
|
37
|
+
"SHIPPING_UPDATE",
|
38
|
+
"TICKET_UPDATE",
|
39
|
+
"TRANSPORTATION_UPDATE",
|
40
|
+
]
|
41
|
+
|
42
|
+
|
43
|
+
field :analytics, 'object'
|
44
|
+
field :currency, 'string'
|
45
|
+
field :eligible_for_sending_notifications, 'bool'
|
46
|
+
field :id, 'string'
|
47
|
+
field :ineligible_for_sending_notifications_reason, 'string'
|
48
|
+
field :message_template_namespace, 'string'
|
49
|
+
field :name, 'string'
|
50
|
+
field :on_behalf_of_business_info, 'object'
|
51
|
+
field :status, 'string'
|
52
|
+
field :timezone_id, 'string'
|
53
|
+
has_no_post
|
54
|
+
has_no_delete
|
55
|
+
|
56
|
+
has_edge :assigned_users do |edge|
|
57
|
+
edge.get 'AssignedUser'
|
58
|
+
end
|
59
|
+
|
60
|
+
has_edge :message_templates do |edge|
|
61
|
+
edge.delete do |api|
|
62
|
+
api.has_param :name, 'string'
|
63
|
+
end
|
64
|
+
edge.get do |api|
|
65
|
+
api.has_param :category, { list: { enum: -> { WhatsAppBusinessAccount::CATEGORY }} }
|
66
|
+
api.has_param :content, 'string'
|
67
|
+
api.has_param :language, { list: 'string' }
|
68
|
+
api.has_param :name, 'string'
|
69
|
+
api.has_param :name_or_content, 'string'
|
70
|
+
api.has_param :status, { list: { enum: %w{APPROVED DELETED PENDING PENDING_DELETION REJECTED }} }
|
71
|
+
end
|
72
|
+
edge.post 'WhatsAppBusinessAccount' do |api|
|
73
|
+
api.has_param :category, { enum: -> { WhatsAppBusinessAccount::CATEGORY }}
|
74
|
+
api.has_param :components, { list: 'hash' }
|
75
|
+
api.has_param :language, 'string'
|
76
|
+
api.has_param :name, 'string'
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
has_edge :phone_numbers do |edge|
|
81
|
+
edge.get
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
data/lib/facebook_ads/version.rb
CHANGED
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.3.3.
|
4
|
+
version: 0.3.3.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-05-
|
11
|
+
date: 2019-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -419,6 +419,7 @@ files:
|
|
419
419
|
- lib/facebook_ads/ad_objects/instagram_user.rb
|
420
420
|
- lib/facebook_ads/ad_objects/instant_article.rb
|
421
421
|
- lib/facebook_ads/ad_objects/instant_article_insights_query_result.rb
|
422
|
+
- lib/facebook_ads/ad_objects/invoice_campaign.rb
|
422
423
|
- lib/facebook_ads/ad_objects/ios_app_link.rb
|
423
424
|
- lib/facebook_ads/ad_objects/iterative_split_test_config.rb
|
424
425
|
- lib/facebook_ads/ad_objects/key_value.rb
|
@@ -442,7 +443,6 @@ files:
|
|
442
443
|
- lib/facebook_ads/ad_objects/location.rb
|
443
444
|
- lib/facebook_ads/ad_objects/lookalike_spec.rb
|
444
445
|
- lib/facebook_ads/ad_objects/mailing_address.rb
|
445
|
-
- lib/facebook_ads/ad_objects/measurement_report.rb
|
446
446
|
- lib/facebook_ads/ad_objects/measurement_upload_event.rb
|
447
447
|
- lib/facebook_ads/ad_objects/media_fingerprint.rb
|
448
448
|
- lib/facebook_ads/ad_objects/messaging_feature_review.rb
|
@@ -530,7 +530,6 @@ files:
|
|
530
530
|
- lib/facebook_ads/ad_objects/reach_frequency_prediction.rb
|
531
531
|
- lib/facebook_ads/ad_objects/reach_frequency_spec.rb
|
532
532
|
- lib/facebook_ads/ad_objects/read_only_analytics_user_property_config.rb
|
533
|
-
- lib/facebook_ads/ad_objects/recommendation.rb
|
534
533
|
- lib/facebook_ads/ad_objects/referral.rb
|
535
534
|
- lib/facebook_ads/ad_objects/request_history.rb
|
536
535
|
- lib/facebook_ads/ad_objects/rev_share_policy.rb
|
@@ -593,6 +592,7 @@ files:
|
|
593
592
|
- lib/facebook_ads/ad_objects/video_upload_limits.rb
|
594
593
|
- lib/facebook_ads/ad_objects/voip_info.rb
|
595
594
|
- lib/facebook_ads/ad_objects/web_app_link.rb
|
595
|
+
- lib/facebook_ads/ad_objects/whats_app_business_account.rb
|
596
596
|
- lib/facebook_ads/ad_objects/windows_app_link.rb
|
597
597
|
- lib/facebook_ads/ad_objects/windows_phone_app_link.rb
|
598
598
|
- lib/facebook_ads/api_request.rb
|
@@ -1,48 +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 MeasurementReport < AdObject
|
29
|
-
REPORT_TYPE = [
|
30
|
-
"fruit_rollup_report",
|
31
|
-
"mmm_report",
|
32
|
-
"multi_channel_report",
|
33
|
-
"partner_lift_study_report",
|
34
|
-
"third_party_mta_report",
|
35
|
-
"video_metrics_report",
|
36
|
-
]
|
37
|
-
|
38
|
-
|
39
|
-
field :download_urls, { list: 'string' }
|
40
|
-
field :id, 'string'
|
41
|
-
field :metadata, 'hash'
|
42
|
-
field :report_type, 'string'
|
43
|
-
field :status, 'string'
|
44
|
-
field :upload_urls, { list: 'string' }
|
45
|
-
has_no_delete
|
46
|
-
|
47
|
-
end
|
48
|
-
end
|