facebookbusiness 0.3.3.4 → 0.4.0.1
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.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_account.rb +27 -28
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_async_request.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_issues_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_child_attachment.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_creative_photo_data.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_creative_video_data.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_place_page_set_metadata.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_report_spec.rb +4 -6
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +9 -1
- data/lib/facebook_ads/ad_objects/ad_study.rb +0 -15
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_video.rb +12 -1
- data/lib/facebook_ads/ad_objects/adgroup_issues_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +1 -3
- data/lib/facebook_ads/ad_objects/ads_pixel_stats_result.rb +2 -3
- data/lib/facebook_ads/ad_objects/application.rb +17 -1
- data/lib/facebook_ads/ad_objects/brand_audience.rb +44 -0
- data/lib/facebook_ads/ad_objects/business.rb +29 -5
- data/lib/facebook_ads/ad_objects/business_advertisable_applications_result.rb +2 -0
- data/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb +46 -0
- data/lib/facebook_ads/ad_objects/business_creative_folder.rb +1 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +6 -0
- data/lib/facebook_ads/ad_objects/{copyright_attribution_insights.rb → canvas_body_element.rb} +2 -6
- data/lib/facebook_ads/ad_objects/check_batch_request_status.rb +1 -1
- data/lib/facebook_ads/ad_objects/comment.rb +23 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +3 -12
- data/lib/facebook_ads/ad_objects/event.rb +30 -3
- data/lib/facebook_ads/ad_objects/extended_credit.rb +0 -1
- data/lib/facebook_ads/ad_objects/group.rb +1 -2
- data/lib/facebook_ads/ad_objects/ig_user.rb +4 -1
- data/lib/facebook_ads/ad_objects/lead.rb +0 -1
- data/lib/facebook_ads/ad_objects/leadgen_form.rb +3 -0
- data/lib/facebook_ads/ad_objects/link.rb +17 -0
- data/lib/facebook_ads/ad_objects/live_video.rb +10 -0
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -2
- data/lib/facebook_ads/ad_objects/native_offer.rb +4 -0
- data/lib/facebook_ads/ad_objects/open_graph_object.rb +19 -0
- data/lib/facebook_ads/ad_objects/oracle_transaction.rb +5 -0
- data/lib/facebook_ads/ad_objects/page.rb +71 -46
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +0 -2
- data/lib/facebook_ads/ad_objects/page_post.rb +19 -0
- data/lib/facebook_ads/ad_objects/page_upcoming_change.rb +0 -1
- data/lib/facebook_ads/ad_objects/photo.rb +5 -0
- data/lib/facebook_ads/ad_objects/platform_session_key.rb +36 -0
- data/lib/facebook_ads/ad_objects/post.rb +13 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +0 -1
- data/lib/facebook_ads/ad_objects/product_feed.rb +1 -1
- data/lib/facebook_ads/ad_objects/reach_frequency_estimates_curve.rb +0 -1
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +1 -0
- data/lib/facebook_ads/ad_objects/recommendation.rb +44 -0
- data/lib/facebook_ads/ad_objects/rtb_dynamic_post.rb +13 -0
- data/lib/facebook_ads/ad_objects/screen_name.rb +39 -0
- data/lib/facebook_ads/ad_objects/targeting.rb +0 -1
- data/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +0 -10
- data/lib/facebook_ads/ad_objects/user.rb +27 -2
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +1 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_profile.rb +37 -0
- data/lib/facebook_ads/version.rb +2 -2
- metadata +9 -3
@@ -244,6 +244,7 @@ module FacebookAds
|
|
244
244
|
field :dwell_5_sec, 'string'
|
245
245
|
field :dwell_7_sec, 'string'
|
246
246
|
field :dwell_rate, 'string'
|
247
|
+
field :earned_impression, 'string'
|
247
248
|
field :estimated_ad_recall_rate, 'string'
|
248
249
|
field :estimated_ad_recall_rate_lower_bound, 'string'
|
249
250
|
field :estimated_ad_recall_rate_upper_bound, 'string'
|
@@ -264,7 +265,6 @@ module FacebookAds
|
|
264
265
|
field :impression_device, 'string'
|
265
266
|
field :impressions, 'string'
|
266
267
|
field :impressions_auto_refresh, 'string'
|
267
|
-
field :impressions_dummy, 'string'
|
268
268
|
field :impressions_gross, 'string'
|
269
269
|
field :inline_link_click_ctr, 'string'
|
270
270
|
field :inline_link_clicks, 'string'
|
@@ -336,7 +336,6 @@ module FacebookAds
|
|
336
336
|
field :video_15_sec_watched_actions, { list: 'AdsActionStats' }
|
337
337
|
field :video_30_sec_watched_actions, { list: 'AdsActionStats' }
|
338
338
|
field :video_asset, 'object'
|
339
|
-
field :video_avg_percent_watched_actions, { list: 'AdsActionStats' }
|
340
339
|
field :video_avg_time_watched_actions, { list: 'AdsActionStats' }
|
341
340
|
field :video_complete_watched_actions, { list: 'AdsActionStats' }
|
342
341
|
field :video_completed_view_or_15s_passed_actions, { list: 'AdsActionStats' }
|
@@ -345,7 +344,6 @@ module FacebookAds
|
|
345
344
|
field :video_p25_watched_actions, { list: 'AdsActionStats' }
|
346
345
|
field :video_p50_watched_actions, { list: 'AdsActionStats' }
|
347
346
|
field :video_p75_watched_actions, { list: 'AdsActionStats' }
|
348
|
-
field :video_p95_watched_actions, { list: 'AdsActionStats' }
|
349
347
|
field :video_play_actions, { list: 'AdsActionStats' }
|
350
348
|
field :video_play_curve_actions, { list: 'object' }
|
351
349
|
field :video_play_retention_0_to_15s_actions, { list: 'object' }
|
@@ -148,7 +148,6 @@ module FacebookAds
|
|
148
148
|
field :ios_supports_system_auth, 'bool'
|
149
149
|
field :ipad_app_store_id, 'string'
|
150
150
|
field :iphone_app_store_id, 'string'
|
151
|
-
field :is_viewer_admin, 'bool'
|
152
151
|
field :latest_sdk_version, 'object'
|
153
152
|
field :link, 'string'
|
154
153
|
field :logging_token, 'string'
|
@@ -304,6 +303,20 @@ module FacebookAds
|
|
304
303
|
end
|
305
304
|
end
|
306
305
|
|
306
|
+
has_edge :app_insights do |edge|
|
307
|
+
edge.get do |api|
|
308
|
+
api.has_param :aggregateby, { enum: %w{AVERAGE_JOURNEY_LENGTH CONVERTED_JOURNEY_PERCENT COUNT COUNT_IDENTIFIED_USERS COUNT_PER_USER DAU EVENT_SOURCE_IDS JOURNEY_CHANNEL_INCLUSION JOURNEY_INCLUSION MAU MEDIAN_JOURNEY_LENGTH MEDIAN_VALUE MEDIAN_VALUE_PER_USER OVERLAP PERCENTILES_COUNT PERCENTILES_USD_VALUE PERCENTILES_VALUE SCORE SESSIONS_PER_JOURNEY SESSION_BOUNCE_RATE SUM SUM_IDENTIFIED_USERS SUM_PER_EVENT TOPK UNKNOWN_USERS USD_SUM USD_SUM_IDENTIFIED_USERS USD_SUM_PER_EVENT USD_SUM_PER_USER USD_VALUE_PER_USER USERS USER_PROPERTY_USER_COUNT VALUE_PER_USER WAU }}
|
309
|
+
api.has_param :breakdowns, { list: 'string' }
|
310
|
+
api.has_param :ecosystem, { enum: %w{GAME NON_GAME }}
|
311
|
+
api.has_param :event_name, 'string'
|
312
|
+
api.has_param :intervals_to_aggregate, 'int'
|
313
|
+
api.has_param :metric_key, 'string'
|
314
|
+
api.has_param :period, { enum: %w{daily days_28 days_60 days_90 hourly lifetime mins_15 monthly range weekly }}
|
315
|
+
api.has_param :since, 'datetime'
|
316
|
+
api.has_param :until, 'datetime'
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
307
320
|
has_edge :app_installed_groups do |edge|
|
308
321
|
edge.get 'Group' do |api|
|
309
322
|
api.has_param :group_id, 'string'
|
@@ -475,6 +488,9 @@ module FacebookAds
|
|
475
488
|
end
|
476
489
|
|
477
490
|
has_edge :objects do |edge|
|
491
|
+
edge.get 'OpenGraphObject' do |api|
|
492
|
+
api.has_param :type, 'object'
|
493
|
+
end
|
478
494
|
edge.post 'OpenGraphObject' do |api|
|
479
495
|
api.has_param :object, 'object'
|
480
496
|
api.has_param :type, 'string'
|
@@ -0,0 +1,44 @@
|
|
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 BrandAudience < AdObject
|
29
|
+
|
30
|
+
field :account, 'AdAccount'
|
31
|
+
field :delivery_targeting, 'Targeting'
|
32
|
+
field :description, 'string'
|
33
|
+
field :id, 'string'
|
34
|
+
field :name, 'string'
|
35
|
+
field :sentence_lines, { list: 'string' }
|
36
|
+
field :status, 'string'
|
37
|
+
field :targeting, 'Targeting'
|
38
|
+
field :time_created, 'datetime'
|
39
|
+
field :time_updated, 'datetime'
|
40
|
+
has_no_post
|
41
|
+
has_no_delete
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
@@ -61,6 +61,7 @@ module FacebookAds
|
|
61
61
|
"ADVERTISE",
|
62
62
|
"ANALYZE",
|
63
63
|
"CREATIVE",
|
64
|
+
"DRAFT",
|
64
65
|
"FB_EMPLOYEE_DSO_ADVERTISE",
|
65
66
|
"MANAGE",
|
66
67
|
]
|
@@ -83,6 +84,7 @@ module FacebookAds
|
|
83
84
|
"MODERATE_COMMUNITY",
|
84
85
|
"PAGES_MESSAGING",
|
85
86
|
"PAGES_MESSAGING_SUBSCRIPTIONS",
|
87
|
+
"PLATFORM_MANAGE_PAGES",
|
86
88
|
"READ_PAGE_MAILBOXES",
|
87
89
|
"VIEW_MONETIZATION_INSIGHTS",
|
88
90
|
]
|
@@ -254,6 +256,18 @@ module FacebookAds
|
|
254
256
|
end
|
255
257
|
end
|
256
258
|
|
259
|
+
has_edge :business_invoices do |edge|
|
260
|
+
edge.get 'OracleTransaction' do |api|
|
261
|
+
api.has_param :end_date, 'string'
|
262
|
+
api.has_param :invoice_id, 'int'
|
263
|
+
api.has_param :issue_end_date, 'string'
|
264
|
+
api.has_param :issue_start_date, 'string'
|
265
|
+
api.has_param :root_id, 'int'
|
266
|
+
api.has_param :start_date, 'string'
|
267
|
+
api.has_param :type, { enum: -> { OracleTransaction::TYPE }}
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
257
271
|
has_edge :business_users do |edge|
|
258
272
|
edge.get 'BusinessUser'
|
259
273
|
edge.post 'BusinessUser' do |api|
|
@@ -322,6 +336,7 @@ module FacebookAds
|
|
322
336
|
has_edge :creative_folders do |edge|
|
323
337
|
edge.get 'BusinessCreativeFolder'
|
324
338
|
edge.post 'BusinessCreativeFolder' do |api|
|
339
|
+
api.has_param :description, 'string'
|
325
340
|
api.has_param :name, 'string'
|
326
341
|
end
|
327
342
|
end
|
@@ -377,6 +392,13 @@ module FacebookAds
|
|
377
392
|
end
|
378
393
|
end
|
379
394
|
|
395
|
+
has_edge :initiated_audience_sharing_requests do |edge|
|
396
|
+
edge.get 'BusinessAssetSharingAgreement' do |api|
|
397
|
+
api.has_param :recipient_id, 'string'
|
398
|
+
api.has_param :request_status, { enum: -> { BusinessAssetSharingAgreement::REQUEST_STATUS }}
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
380
402
|
has_edge :initiated_sharing_agreements do |edge|
|
381
403
|
edge.get 'BusinessAgreement' do |api|
|
382
404
|
api.has_param :receiving_business_id, 'string'
|
@@ -545,6 +567,13 @@ module FacebookAds
|
|
545
567
|
end
|
546
568
|
end
|
547
569
|
|
570
|
+
has_edge :received_audience_sharing_requests do |edge|
|
571
|
+
edge.get 'BusinessAssetSharingAgreement' do |api|
|
572
|
+
api.has_param :initiator_id, 'string'
|
573
|
+
api.has_param :request_status, { enum: -> { BusinessAssetSharingAgreement::REQUEST_STATUS }}
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
548
577
|
has_edge :received_inprogress_onbehalf_requests do |edge|
|
549
578
|
edge.get 'BusinessOwnedObjectOnBehalfOfRequest'
|
550
579
|
end
|
@@ -581,11 +610,6 @@ module FacebookAds
|
|
581
610
|
|
582
611
|
has_edge :third_party_measurement_report_dataset do |edge|
|
583
612
|
edge.get 'ThirdPartyMeasurementReportDataset'
|
584
|
-
edge.post 'ThirdPartyMeasurementReportDataset' do |api|
|
585
|
-
api.has_param :category, { enum: -> { ThirdPartyMeasurementReportDataset::CATEGORY }}
|
586
|
-
api.has_param :product, { enum: -> { ThirdPartyMeasurementReportDataset::PRODUCT }}
|
587
|
-
api.has_param :schema, { list: 'hash' }
|
588
|
-
end
|
589
613
|
end
|
590
614
|
|
591
615
|
has_edge :upload_event do |edge|
|
@@ -0,0 +1,46 @@
|
|
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 BusinessAssetSharingAgreement < AdObject
|
29
|
+
REQUEST_STATUS = [
|
30
|
+
"APPROVE",
|
31
|
+
"DECLINE",
|
32
|
+
"EXPIRED",
|
33
|
+
"IN_PROGRESS",
|
34
|
+
]
|
35
|
+
|
36
|
+
|
37
|
+
field :id, 'string'
|
38
|
+
field :initiator, 'Business'
|
39
|
+
field :recipient, 'Business'
|
40
|
+
field :relationship_type, { list: 'string' }
|
41
|
+
field :request_status, 'string'
|
42
|
+
field :request_type, 'string'
|
43
|
+
has_no_delete
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
@@ -43,7 +43,9 @@ module FacebookAds
|
|
43
43
|
"ACTIVE",
|
44
44
|
"ARCHIVED",
|
45
45
|
"DELETED",
|
46
|
+
"IN_PROCESS",
|
46
47
|
"PAUSED",
|
48
|
+
"WITH_ISSUES",
|
47
49
|
]
|
48
50
|
|
49
51
|
STATUS = [
|
@@ -145,6 +147,10 @@ module FacebookAds
|
|
145
147
|
field :iterative_split_test_configs, { list: 'object' }
|
146
148
|
field :upstream_events, 'hash'
|
147
149
|
|
150
|
+
has_edge :ad_studies do |edge|
|
151
|
+
edge.get 'AdStudy'
|
152
|
+
end
|
153
|
+
|
148
154
|
has_edge :adlabels do |edge|
|
149
155
|
edge.delete do |api|
|
150
156
|
api.has_param :adlabels, { list: 'object' }
|
data/lib/facebook_ads/ad_objects/{copyright_attribution_insights.rb → canvas_body_element.rb}
RENAMED
@@ -25,13 +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
|
28
|
+
class CanvasBodyElement < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :l7_attribution_page_view_delta, 'double'
|
32
|
-
field :l7_attribution_video_view, 'int'
|
33
|
-
field :l7_attribution_video_view_delta, 'double'
|
34
|
-
field :metrics_ending_date, 'string'
|
30
|
+
field :element, 'object'
|
35
31
|
has_no_id
|
36
32
|
has_no_get
|
37
33
|
has_no_post
|
@@ -30,7 +30,7 @@ module FacebookAds
|
|
30
30
|
field :errors, { list: 'object' }
|
31
31
|
field :errors_total_count, 'int'
|
32
32
|
field :handle, 'string'
|
33
|
-
field :
|
33
|
+
field :ids_of_invalid_requests, { list: 'string' }
|
34
34
|
field :status, 'string'
|
35
35
|
field :warnings, { list: 'object' }
|
36
36
|
field :warnings_total_count, 'int'
|
@@ -59,6 +59,7 @@ module FacebookAds
|
|
59
59
|
field :can_hide, 'bool'
|
60
60
|
field :can_like, 'bool'
|
61
61
|
field :can_remove, 'bool'
|
62
|
+
field :can_reply_privately, 'bool'
|
62
63
|
field :comment_count, 'int'
|
63
64
|
field :created_time, 'datetime'
|
64
65
|
field :from, 'object'
|
@@ -72,6 +73,7 @@ module FacebookAds
|
|
72
73
|
field :object, 'object'
|
73
74
|
field :parent, 'Comment'
|
74
75
|
field :permalink_url, 'string'
|
76
|
+
field :private_reply_conversation, 'object'
|
75
77
|
field :user_likes, 'bool'
|
76
78
|
|
77
79
|
has_edge :comments do |edge|
|
@@ -81,6 +83,21 @@ module FacebookAds
|
|
81
83
|
api.has_param :order, { enum: -> { Comment::ORDER }}
|
82
84
|
api.has_param :since, 'datetime'
|
83
85
|
end
|
86
|
+
edge.post 'Comment' do |api|
|
87
|
+
api.has_param :attachment_id, 'string'
|
88
|
+
api.has_param :attachment_share_url, 'string'
|
89
|
+
api.has_param :attachment_url, 'string'
|
90
|
+
api.has_param :comment_privacy_value, { enum: -> { Comment::COMMENT_PRIVACY_VALUE }}
|
91
|
+
api.has_param :facepile_mentioned_ids, { list: 'string' }
|
92
|
+
api.has_param :feedback_source, 'string'
|
93
|
+
api.has_param :is_offline, 'bool'
|
94
|
+
api.has_param :message, 'string'
|
95
|
+
api.has_param :nectar_module, 'string'
|
96
|
+
api.has_param :object_id, 'string'
|
97
|
+
api.has_param :parent_comment_id, 'object'
|
98
|
+
api.has_param :text, 'string'
|
99
|
+
api.has_param :tracking, 'string'
|
100
|
+
end
|
84
101
|
end
|
85
102
|
|
86
103
|
has_edge :likes do |edge|
|
@@ -97,6 +114,12 @@ module FacebookAds
|
|
97
114
|
end
|
98
115
|
end
|
99
116
|
|
117
|
+
has_edge :private_replies do |edge|
|
118
|
+
edge.post do |api|
|
119
|
+
api.has_param :message, 'string'
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
100
123
|
has_edge :reactions do |edge|
|
101
124
|
edge.get 'Profile' do |api|
|
102
125
|
api.has_param :type, { enum: -> { Profile::TYPE }}
|
@@ -166,24 +166,15 @@ module FacebookAds
|
|
166
166
|
end
|
167
167
|
|
168
168
|
has_edge :capabilities do |edge|
|
169
|
+
edge.delete do |api|
|
170
|
+
api.has_param :adaccounts, { list: 'string' }
|
171
|
+
end
|
169
172
|
edge.post do |api|
|
170
173
|
api.has_param :accounts_capabilities, 'string'
|
171
174
|
api.has_param :relationship_type, { list: 'string' }
|
172
175
|
end
|
173
176
|
end
|
174
177
|
|
175
|
-
has_edge :data do |edge|
|
176
|
-
edge.post do |api|
|
177
|
-
api.has_param :action_type, { enum: %w{add match optout remove }}
|
178
|
-
api.has_param :batch_seq, 'int'
|
179
|
-
api.has_param :encoding, { enum: %w{md5 plain sha256 }}
|
180
|
-
api.has_param :entries, { list: 'string' }
|
181
|
-
api.has_param :entry_type, { enum: %w{0 1 2 3 4 5 6 }}
|
182
|
-
api.has_param :last_batch_flag, 'bool'
|
183
|
-
api.has_param :session_id, 'int'
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
178
|
has_edge :prefills do |edge|
|
188
179
|
edge.get 'CustomAudiencePrefillState'
|
189
180
|
end
|
@@ -26,6 +26,34 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class Event < AdObject
|
29
|
+
CATEGORY = [
|
30
|
+
"ART_EVENT",
|
31
|
+
"BOOK_EVENT",
|
32
|
+
"CLASS_EVENT",
|
33
|
+
"COMEDY_EVENT",
|
34
|
+
"CONFERENCE_EVENT",
|
35
|
+
"DANCE_EVENT",
|
36
|
+
"DINING_EVENT",
|
37
|
+
"FAMILY_EVENT",
|
38
|
+
"FESTIVAL_EVENT",
|
39
|
+
"FITNESS",
|
40
|
+
"FOOD_TASTING",
|
41
|
+
"FUNDRAISER",
|
42
|
+
"LECTURE",
|
43
|
+
"MEETUP",
|
44
|
+
"MOVIE_EVENT",
|
45
|
+
"MUSIC_EVENT",
|
46
|
+
"NEIGHBORHOOD",
|
47
|
+
"NIGHTLIFE",
|
48
|
+
"OTHER",
|
49
|
+
"RELIGIOUS_EVENT",
|
50
|
+
"SHOPPING",
|
51
|
+
"SPORTS_EVENT",
|
52
|
+
"THEATER_EVENT",
|
53
|
+
"VOLUNTEERING",
|
54
|
+
"WORKSHOP",
|
55
|
+
]
|
56
|
+
|
29
57
|
TYPE = [
|
30
58
|
"community",
|
31
59
|
"group",
|
@@ -54,7 +82,7 @@ module FacebookAds
|
|
54
82
|
|
55
83
|
field :attending_count, 'int'
|
56
84
|
field :can_guests_invite, 'bool'
|
57
|
-
field :category,
|
85
|
+
field :category, { enum: -> { CATEGORY }}
|
58
86
|
field :cover, 'CoverPhoto'
|
59
87
|
field :declined_count, 'int'
|
60
88
|
field :description, 'string'
|
@@ -198,7 +226,7 @@ module FacebookAds
|
|
198
226
|
api.has_param :time_since_original_post, 'int'
|
199
227
|
api.has_param :title, 'string'
|
200
228
|
api.has_param :tracking_info, 'string'
|
201
|
-
api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED SCHEDULED }}
|
229
|
+
api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED SCHEDULED SCHEDULED_RECURRING }}
|
202
230
|
api.has_param :user_selected_tags, 'bool'
|
203
231
|
api.has_param :video_start_time_ms, 'int'
|
204
232
|
api.has_param :viewer_coordinates, 'object'
|
@@ -208,7 +236,6 @@ module FacebookAds
|
|
208
236
|
|
209
237
|
has_edge :live_videos do |edge|
|
210
238
|
edge.post 'LiveVideo' do |api|
|
211
|
-
api.has_param :attribution_app_id, 'string'
|
212
239
|
api.has_param :content_tags, { list: 'string' }
|
213
240
|
api.has_param :description, 'string'
|
214
241
|
api.has_param :encoding_settings, 'string'
|