facebookbusiness 0.9.0.1 → 0.9.0.2
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 +3 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +8 -10
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -2
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/{friend_list.rb → ad_creative_omnichannel_link_spec.rb} +5 -5
- data/lib/facebook_ads/ad_objects/ad_report_run.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +3 -1
- data/lib/facebook_ads/ad_objects/ad_video.rb +1 -10
- data/lib/facebook_ads/ad_objects/album.rb +0 -10
- data/lib/facebook_ads/ad_objects/application.rb +1 -10
- data/lib/facebook_ads/ad_objects/business.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +4 -2
- data/lib/facebook_ads/ad_objects/{user_payment_modules_options.rb → catalog_item_channels_to_integrity_status.rb} +3 -5
- data/lib/facebook_ads/ad_objects/custom_audience.rb +8 -0
- data/lib/facebook_ads/ad_objects/group.rb +23 -10
- data/lib/facebook_ads/ad_objects/ig_media.rb +0 -1
- data/lib/facebook_ads/ad_objects/ig_user.rb +0 -1
- data/lib/facebook_ads/ad_objects/link.rb +0 -10
- data/lib/facebook_ads/ad_objects/live_video.rb +12 -12
- data/lib/facebook_ads/ad_objects/messenger_profile.rb +1 -0
- data/lib/facebook_ads/ad_objects/page.rb +2 -6
- data/lib/facebook_ads/ad_objects/page_post.rb +0 -10
- data/lib/facebook_ads/ad_objects/{event_tour.rb → payment_engine_payment.rb} +35 -18
- data/lib/facebook_ads/ad_objects/payment_subscription.rb +3 -3
- data/lib/facebook_ads/ad_objects/photo.rb +0 -10
- data/lib/facebook_ads/ad_objects/post.rb +12 -40
- data/lib/facebook_ads/ad_objects/product_feed_schedule.rb +2 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +8 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +13 -0
- data/lib/facebook_ads/ad_objects/targeting.rb +0 -2
- data/lib/facebook_ads/ad_objects/unified_thread.rb +0 -1
- data/lib/facebook_ads/ad_objects/user.rb +13 -16
- data/lib/facebook_ads/ad_objects/{offline_terms_of_service.rb → whats_app_business_profile.rb} +2 -4
- data/lib/facebook_ads/version.rb +1 -1
- metadata +6 -8
- data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +0 -71
- data/lib/facebook_ads/ad_objects/user_payment_methods_info.rb +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fd22a17329e6b3c20ef229d04ffcef080235cdeafe35da6661877b974719c68
|
4
|
+
data.tar.gz: d901390a83098518726253aaec0150a662ce17522a3d42cdfccbeb0fb36908a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf716267589a5408942d880784f0e3a2eebee80b9fa2d196fd86d0801ef4a123a65bf6f997a261d8298cc02c4d39c72fa3a14107f10c672ef5cb6e86dab88e92
|
7
|
+
data.tar.gz: 3347ce546aaf245df5cd4df41cb2302d4f8744eb54af196d02dbfa35f53e648e57541b345635457d1c99ded56e828bf45877776dcba39297bc51c822c5a48421
|
@@ -114,6 +114,7 @@ module FacebookAds
|
|
114
114
|
field :campaign, 'Campaign'
|
115
115
|
field :campaign_id, 'string'
|
116
116
|
field :configured_status, { enum: -> { CONFIGURED_STATUS }}
|
117
|
+
field :conversion_domain, 'string'
|
117
118
|
field :conversion_specs, { list: 'ConversionActionQuery' }
|
118
119
|
field :created_time, 'datetime'
|
119
120
|
field :creative, 'AdCreative'
|
@@ -196,6 +197,7 @@ module FacebookAds
|
|
196
197
|
api.has_param :time_range, 'object'
|
197
198
|
api.has_param :time_ranges, { list: 'object' }
|
198
199
|
api.has_param :use_account_attribution_setting, 'bool'
|
200
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
199
201
|
end
|
200
202
|
edge.post 'AdReportRun' do |api|
|
201
203
|
api.has_param :action_attribution_windows, { list: { enum: -> { AdsInsights::ACTION_ATTRIBUTION_WINDOWS }} }
|
@@ -218,6 +220,7 @@ module FacebookAds
|
|
218
220
|
api.has_param :time_range, 'object'
|
219
221
|
api.has_param :time_ranges, { list: 'object' }
|
220
222
|
api.has_param :use_account_attribution_setting, 'bool'
|
223
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
221
224
|
end
|
222
225
|
end
|
223
226
|
|
@@ -87,12 +87,14 @@ module FacebookAds
|
|
87
87
|
PERMITTED_TASKS = [
|
88
88
|
"ADVERTISE",
|
89
89
|
"ANALYZE",
|
90
|
+
"DRAFT",
|
90
91
|
"MANAGE",
|
91
92
|
]
|
92
93
|
|
93
94
|
TASKS = [
|
94
95
|
"ADVERTISE",
|
95
96
|
"ANALYZE",
|
97
|
+
"DRAFT",
|
96
98
|
"MANAGE",
|
97
99
|
]
|
98
100
|
|
@@ -143,7 +145,6 @@ module FacebookAds
|
|
143
145
|
|
144
146
|
field :account_id, 'string'
|
145
147
|
field :account_status, 'int'
|
146
|
-
field :ad_account_creation_request, 'AdAccountCreationRequest'
|
147
148
|
field :ad_account_promotable_objects, 'AdAccountPromotableObjects'
|
148
149
|
field :age, 'double'
|
149
150
|
field :agency_client_declaration, 'AgencyClientDeclaration'
|
@@ -375,6 +376,7 @@ module FacebookAds
|
|
375
376
|
api.has_param :adset_spec, 'AdSet'
|
376
377
|
api.has_param :audience_id, 'string'
|
377
378
|
api.has_param :bid_amount, 'int'
|
379
|
+
api.has_param :conversion_domain, 'string'
|
378
380
|
api.has_param :creative, 'AdCreative'
|
379
381
|
api.has_param :date_format, 'string'
|
380
382
|
api.has_param :display_sequence, 'int'
|
@@ -676,6 +678,7 @@ module FacebookAds
|
|
676
678
|
api.has_param :buying_type, 'string'
|
677
679
|
api.has_param :daily_budget, 'int'
|
678
680
|
api.has_param :execution_options, { list: { enum: -> { Campaign::EXECUTION_OPTIONS }} }
|
681
|
+
api.has_param :is_skadnetwork_attribution, 'bool'
|
679
682
|
api.has_param :iterative_split_test_configs, { list: 'object' }
|
680
683
|
api.has_param :lifetime_budget, 'int'
|
681
684
|
api.has_param :name, 'string'
|
@@ -861,6 +864,7 @@ module FacebookAds
|
|
861
864
|
api.has_param :time_range, 'object'
|
862
865
|
api.has_param :time_ranges, { list: 'object' }
|
863
866
|
api.has_param :use_account_attribution_setting, 'bool'
|
867
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
864
868
|
end
|
865
869
|
edge.post 'AdReportRun' do |api|
|
866
870
|
api.has_param :action_attribution_windows, { list: { enum: -> { AdsInsights::ACTION_ATTRIBUTION_WINDOWS }} }
|
@@ -883,6 +887,7 @@ module FacebookAds
|
|
883
887
|
api.has_param :time_range, 'object'
|
884
888
|
api.has_param :time_ranges, { list: 'object' }
|
885
889
|
api.has_param :use_account_attribution_setting, 'bool'
|
890
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
886
891
|
end
|
887
892
|
end
|
888
893
|
|
@@ -896,6 +901,8 @@ module FacebookAds
|
|
896
901
|
api.has_param :app_store, { enum: -> { AdAccountMatchedSearchApplicationsEdgeData::APP_STORE }}
|
897
902
|
api.has_param :app_store_country, 'string'
|
898
903
|
api.has_param :business_id, 'string'
|
904
|
+
api.has_param :is_skadnetwork_search, 'bool'
|
905
|
+
api.has_param :only_apps_with_permission, 'bool'
|
899
906
|
api.has_param :query_term, 'string'
|
900
907
|
end
|
901
908
|
end
|
@@ -1032,15 +1039,6 @@ module FacebookAds
|
|
1032
1039
|
end
|
1033
1040
|
end
|
1034
1041
|
|
1035
|
-
has_edge :sponsored_message_ads do |edge|
|
1036
|
-
edge.post do |api|
|
1037
|
-
api.has_param :bid_amount, 'int'
|
1038
|
-
api.has_param :daily_budget, 'int'
|
1039
|
-
api.has_param :message_creative_id, 'string'
|
1040
|
-
api.has_param :targeting, 'Targeting'
|
1041
|
-
end
|
1042
|
-
end
|
1043
|
-
|
1044
1042
|
has_edge :subscribed_apps do |edge|
|
1045
1043
|
edge.delete do |api|
|
1046
1044
|
api.has_param :app_id, 'string'
|
@@ -30,14 +30,12 @@ module FacebookAds
|
|
30
30
|
"COST_CAP",
|
31
31
|
"LOWEST_COST_WITHOUT_CAP",
|
32
32
|
"LOWEST_COST_WITH_BID_CAP",
|
33
|
-
"TARGET_COST",
|
34
33
|
]
|
35
34
|
|
36
35
|
BID_STRATEGY_OLD = [
|
37
36
|
"COST_CAP",
|
38
37
|
"LOWEST_COST_WITHOUT_CAP",
|
39
38
|
"LOWEST_COST_WITH_BID_CAP",
|
40
|
-
"TARGET_COST",
|
41
39
|
]
|
42
40
|
|
43
41
|
BILLING_EVENT_NEW = [
|
@@ -83,6 +81,7 @@ module FacebookAds
|
|
83
81
|
"PAGE_ENGAGEMENT",
|
84
82
|
"PAGE_LIKES",
|
85
83
|
"POST_ENGAGEMENT",
|
84
|
+
"QUALITY_CALL",
|
86
85
|
"QUALITY_LEAD",
|
87
86
|
"REACH",
|
88
87
|
"REPLIES",
|
@@ -112,6 +111,7 @@ module FacebookAds
|
|
112
111
|
"PAGE_ENGAGEMENT",
|
113
112
|
"PAGE_LIKES",
|
114
113
|
"POST_ENGAGEMENT",
|
114
|
+
"QUALITY_CALL",
|
115
115
|
"QUALITY_LEAD",
|
116
116
|
"REACH",
|
117
117
|
"REPLIES",
|
@@ -25,12 +25,12 @@ 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 AdCreativeOmnichannelLinkSpec < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :
|
32
|
-
|
33
|
-
|
30
|
+
field :app, 'object'
|
31
|
+
field :web, 'object'
|
32
|
+
has_no_id
|
33
|
+
has_no_get
|
34
34
|
has_no_post
|
35
35
|
has_no_delete
|
36
36
|
|
@@ -30,7 +30,6 @@ module FacebookAds
|
|
30
30
|
"COST_CAP",
|
31
31
|
"LOWEST_COST_WITHOUT_CAP",
|
32
32
|
"LOWEST_COST_WITH_BID_CAP",
|
33
|
-
"TARGET_COST",
|
34
33
|
]
|
35
34
|
|
36
35
|
BILLING_EVENT = [
|
@@ -81,6 +80,7 @@ module FacebookAds
|
|
81
80
|
"PAGE_ENGAGEMENT",
|
82
81
|
"PAGE_LIKES",
|
83
82
|
"POST_ENGAGEMENT",
|
83
|
+
"QUALITY_CALL",
|
84
84
|
"QUALITY_LEAD",
|
85
85
|
"REACH",
|
86
86
|
"REPLIES",
|
@@ -355,6 +355,7 @@ module FacebookAds
|
|
355
355
|
api.has_param :time_range, 'object'
|
356
356
|
api.has_param :time_ranges, { list: 'object' }
|
357
357
|
api.has_param :use_account_attribution_setting, 'bool'
|
358
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
358
359
|
end
|
359
360
|
edge.post 'AdReportRun' do |api|
|
360
361
|
api.has_param :action_attribution_windows, { list: { enum: -> { AdsInsights::ACTION_ATTRIBUTION_WINDOWS }} }
|
@@ -377,6 +378,7 @@ module FacebookAds
|
|
377
378
|
api.has_param :time_range, 'object'
|
378
379
|
api.has_param :time_ranges, { list: 'object' }
|
379
380
|
api.has_param :use_account_attribution_setting, 'bool'
|
381
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
380
382
|
end
|
381
383
|
end
|
382
384
|
|
@@ -64,6 +64,7 @@ module FacebookAds
|
|
64
64
|
"EVENT_TOUR",
|
65
65
|
"FACECAST_DVR",
|
66
66
|
"FB_SHORTS",
|
67
|
+
"FB_SHORTS_POST",
|
67
68
|
"FUNDRAISER_COVER_VIDEO",
|
68
69
|
"GAME_CLIP",
|
69
70
|
"GAMING_UPDATE_VIDEO",
|
@@ -385,16 +386,6 @@ module FacebookAds
|
|
385
386
|
end
|
386
387
|
end
|
387
388
|
|
388
|
-
has_edge :reactions do |edge|
|
389
|
-
edge.get 'Profile' do |api|
|
390
|
-
api.has_param :type, { enum: -> { Profile::TYPE }}
|
391
|
-
end
|
392
|
-
end
|
393
|
-
|
394
|
-
has_edge :sharedposts do |edge|
|
395
|
-
edge.get 'Post'
|
396
|
-
end
|
397
|
-
|
398
389
|
has_edge :sponsor_tags do |edge|
|
399
390
|
edge.get 'Page'
|
400
391
|
end
|
@@ -152,15 +152,5 @@ module FacebookAds
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
-
has_edge :reactions do |edge|
|
156
|
-
edge.get 'Profile' do |api|
|
157
|
-
api.has_param :type, { enum: -> { Profile::TYPE }}
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
has_edge :sharedposts do |edge|
|
162
|
-
edge.get 'Post'
|
163
|
-
end
|
164
|
-
|
165
155
|
end
|
166
156
|
end
|
@@ -36,6 +36,7 @@ module FacebookAds
|
|
36
36
|
"IPHONE",
|
37
37
|
"MOBILE_WEB",
|
38
38
|
"OCULUS",
|
39
|
+
"SAMSUNG",
|
39
40
|
"SUPPLEMENTARY_IMAGES",
|
40
41
|
"WEB",
|
41
42
|
"WINDOWS",
|
@@ -471,12 +472,6 @@ module FacebookAds
|
|
471
472
|
end
|
472
473
|
end
|
473
474
|
|
474
|
-
has_edge :live_videos do |edge|
|
475
|
-
edge.get 'LiveVideo' do |api|
|
476
|
-
api.has_param :broadcast_status, { enum: -> { LiveVideo::BROADCAST_STATUS }}
|
477
|
-
end
|
478
|
-
end
|
479
|
-
|
480
475
|
has_edge :mmp_auditing do |edge|
|
481
476
|
edge.post do |api|
|
482
477
|
api.has_param :advertiser_id, 'string'
|
@@ -513,10 +508,6 @@ module FacebookAds
|
|
513
508
|
end
|
514
509
|
end
|
515
510
|
|
516
|
-
has_edge :ozone_release do |edge|
|
517
|
-
edge.get
|
518
|
-
end
|
519
|
-
|
520
511
|
has_edge :page_activities do |edge|
|
521
512
|
edge.post 'Application' do |api|
|
522
513
|
api.has_param :advertiser_tracking_enabled, 'bool'
|
@@ -30,7 +30,6 @@ module FacebookAds
|
|
30
30
|
"COST_CAP",
|
31
31
|
"LOWEST_COST_WITHOUT_CAP",
|
32
32
|
"LOWEST_COST_WITH_BID_CAP",
|
33
|
-
"TARGET_COST",
|
34
33
|
]
|
35
34
|
|
36
35
|
CONFIGURED_STATUS = [
|
@@ -405,6 +404,7 @@ module FacebookAds
|
|
405
404
|
field :daily_budget, 'string'
|
406
405
|
field :effective_status, { enum: -> { EFFECTIVE_STATUS }}
|
407
406
|
field :id, 'string'
|
407
|
+
field :is_skadnetwork_attribution, 'bool'
|
408
408
|
field :issues_info, { list: 'AdCampaignIssuesInfo' }
|
409
409
|
field :last_budget_toggling_time, 'datetime'
|
410
410
|
field :lifetime_budget, 'string'
|
@@ -413,6 +413,7 @@ module FacebookAds
|
|
413
413
|
field :pacing_type, { list: 'string' }
|
414
414
|
field :promoted_object, 'AdPromotedObject'
|
415
415
|
field :recommendations, { list: 'AdRecommendation' }
|
416
|
+
field :smart_promotion_type, 'string'
|
416
417
|
field :source_campaign, 'Campaign'
|
417
418
|
field :source_campaign_id, 'string'
|
418
419
|
field :special_ad_categories, { list: 'string' }
|
@@ -427,7 +428,6 @@ module FacebookAds
|
|
427
428
|
field :adbatch, { list: 'object' }
|
428
429
|
field :execution_options, { list: { enum: -> { EXECUTION_OPTIONS }} }
|
429
430
|
field :iterative_split_test_configs, { list: 'object' }
|
430
|
-
field :smart_promotion_type, { enum: -> { SMART_PROMOTION_TYPE }}
|
431
431
|
field :upstream_events, 'hash'
|
432
432
|
|
433
433
|
has_edge :ad_studies do |edge|
|
@@ -514,6 +514,7 @@ module FacebookAds
|
|
514
514
|
api.has_param :time_range, 'object'
|
515
515
|
api.has_param :time_ranges, { list: 'object' }
|
516
516
|
api.has_param :use_account_attribution_setting, 'bool'
|
517
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
517
518
|
end
|
518
519
|
edge.post 'AdReportRun' do |api|
|
519
520
|
api.has_param :action_attribution_windows, { list: { enum: -> { AdsInsights::ACTION_ATTRIBUTION_WINDOWS }} }
|
@@ -536,6 +537,7 @@ module FacebookAds
|
|
536
537
|
api.has_param :time_range, 'object'
|
537
538
|
api.has_param :time_ranges, { list: 'object' }
|
538
539
|
api.has_param :use_account_attribution_setting, 'bool'
|
540
|
+
api.has_param :use_unified_attribution_setting, 'bool'
|
539
541
|
end
|
540
542
|
end
|
541
543
|
|
@@ -25,12 +25,10 @@ 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 CatalogItemChannelsToIntegrityStatus < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :
|
32
|
-
field :country, 'string'
|
33
|
-
field :currency, 'string'
|
30
|
+
field :channels, { list: 'string' }
|
31
|
+
field :rejection_information, 'object'
|
34
32
|
has_no_id
|
35
33
|
has_no_get
|
36
34
|
has_no_post
|
@@ -190,5 +190,13 @@ module FacebookAds
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
|
+
has_edge :usersreplace do |edge|
|
194
|
+
edge.post 'CustomAudience' do |api|
|
195
|
+
api.has_param :namespace, 'string'
|
196
|
+
api.has_param :payload, 'object'
|
197
|
+
api.has_param :session, 'object'
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
193
201
|
end
|
194
202
|
end
|
@@ -48,6 +48,7 @@ module FacebookAds
|
|
48
48
|
"DEALS",
|
49
49
|
"EPHEMERAL",
|
50
50
|
"EVENT_PLANNING",
|
51
|
+
"FAITH",
|
51
52
|
"FAMILY",
|
52
53
|
"FITNESS",
|
53
54
|
"FOR_SALE",
|
@@ -104,6 +105,7 @@ module FacebookAds
|
|
104
105
|
"DEALS",
|
105
106
|
"EPHEMERAL",
|
106
107
|
"EVENT_PLANNING",
|
108
|
+
"FAITH",
|
107
109
|
"FAMILY",
|
108
110
|
"FITNESS",
|
109
111
|
"FOR_SALE",
|
@@ -171,7 +173,6 @@ module FacebookAds
|
|
171
173
|
field :member_count, 'int'
|
172
174
|
field :member_request_count, 'int'
|
173
175
|
field :name, 'string'
|
174
|
-
field :owner, 'object'
|
175
176
|
field :parent, 'object'
|
176
177
|
field :permissions, { list: 'string' }
|
177
178
|
field :privacy, 'string'
|
@@ -216,7 +217,15 @@ module FacebookAds
|
|
216
217
|
end
|
217
218
|
|
218
219
|
has_edge :feed do |edge|
|
219
|
-
edge.
|
220
|
+
edge.get 'Post' do |api|
|
221
|
+
api.has_param :include_hidden, 'bool'
|
222
|
+
api.has_param :q, 'string'
|
223
|
+
api.has_param :show_expired, 'bool'
|
224
|
+
api.has_param :since, 'datetime'
|
225
|
+
api.has_param :until, 'datetime'
|
226
|
+
api.has_param :with, 'string'
|
227
|
+
end
|
228
|
+
edge.post 'Post' do |api|
|
220
229
|
api.has_param :actions, 'object'
|
221
230
|
api.has_param :adaptive_type, 'string'
|
222
231
|
api.has_param :album_id, 'string'
|
@@ -230,10 +239,10 @@ module FacebookAds
|
|
230
239
|
api.has_param :attached_media, { list: 'object' }
|
231
240
|
api.has_param :audience_exp, 'bool'
|
232
241
|
api.has_param :backdated_time, 'datetime'
|
233
|
-
api.has_param :backdated_time_granularity, { enum:
|
242
|
+
api.has_param :backdated_time_granularity, { enum: -> { Post::BACKDATED_TIME_GRANULARITY }}
|
234
243
|
api.has_param :call_to_action, 'object'
|
235
244
|
api.has_param :caption, 'string'
|
236
|
-
api.has_param :checkin_entry_point, { enum:
|
245
|
+
api.has_param :checkin_entry_point, { enum: -> { Post::CHECKIN_ENTRY_POINT }}
|
237
246
|
api.has_param :child_attachments, { list: 'object' }
|
238
247
|
api.has_param :client_mutation_id, 'string'
|
239
248
|
api.has_param :composer_entry_picker, 'string'
|
@@ -253,7 +262,7 @@ module FacebookAds
|
|
253
262
|
api.has_param :expanded_height, 'int'
|
254
263
|
api.has_param :expanded_width, 'int'
|
255
264
|
api.has_param :feed_targeting, 'object'
|
256
|
-
api.has_param :formatting, { enum:
|
265
|
+
api.has_param :formatting, { enum: -> { Post::FORMATTING }}
|
257
266
|
api.has_param :fun_fact_prompt_id, 'int'
|
258
267
|
api.has_param :fun_fact_toastee_id, 'int'
|
259
268
|
api.has_param :has_nickname, 'bool'
|
@@ -290,11 +299,11 @@ module FacebookAds
|
|
290
299
|
api.has_param :page_recommendation, 'string'
|
291
300
|
api.has_param :picture, 'string'
|
292
301
|
api.has_param :place, 'object'
|
293
|
-
api.has_param :place_attachment_setting, { enum:
|
302
|
+
api.has_param :place_attachment_setting, { enum: -> { Post::PLACE_ATTACHMENT_SETTING }}
|
294
303
|
api.has_param :place_list, 'string'
|
295
304
|
api.has_param :place_list_data, { list: 'string' }
|
296
|
-
api.has_param :post_surfaces_blacklist, { list: { enum:
|
297
|
-
api.has_param :posting_to_redspace, { enum:
|
305
|
+
api.has_param :post_surfaces_blacklist, { list: { enum: -> { Post::POST_SURFACES_BLACKLIST }} }
|
306
|
+
api.has_param :posting_to_redspace, { enum: -> { Post::POSTING_TO_REDSPACE }}
|
298
307
|
api.has_param :privacy, 'string'
|
299
308
|
api.has_param :prompt_id, 'string'
|
300
309
|
api.has_param :prompt_tracking_string, 'string'
|
@@ -314,7 +323,7 @@ module FacebookAds
|
|
314
323
|
api.has_param :sponsor_relationship, 'int'
|
315
324
|
api.has_param :suggested_place_id, 'object'
|
316
325
|
api.has_param :tags, { list: 'int' }
|
317
|
-
api.has_param :target_surface, { enum:
|
326
|
+
api.has_param :target_surface, { enum: -> { Post::TARGET_SURFACE }}
|
318
327
|
api.has_param :targeting, 'object'
|
319
328
|
api.has_param :text_format_metadata, 'string'
|
320
329
|
api.has_param :text_format_preset_id, 'string'
|
@@ -324,7 +333,7 @@ module FacebookAds
|
|
324
333
|
api.has_param :time_since_original_post, 'int'
|
325
334
|
api.has_param :title, 'string'
|
326
335
|
api.has_param :tracking_info, 'string'
|
327
|
-
api.has_param :unpublished_content_type, { enum:
|
336
|
+
api.has_param :unpublished_content_type, { enum: -> { Post::UNPUBLISHED_CONTENT_TYPE }}
|
328
337
|
api.has_param :user_selected_tags, 'bool'
|
329
338
|
api.has_param :video_start_time_ms, 'int'
|
330
339
|
api.has_param :viewer_coordinates, 'object'
|
@@ -332,6 +341,10 @@ module FacebookAds
|
|
332
341
|
end
|
333
342
|
end
|
334
343
|
|
344
|
+
has_edge :files do |edge|
|
345
|
+
edge.get
|
346
|
+
end
|
347
|
+
|
335
348
|
has_edge :groups do |edge|
|
336
349
|
edge.get 'Group'
|
337
350
|
edge.post 'Group' do |api|
|