facebookbusiness 18.0.4 → 19.0.0
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 +12 -0
- data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +7 -0
- data/lib/facebook_ads/ad_objects/ad_account_business_constraints.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +2 -1
- data/lib/facebook_ads/ad_objects/ads_action_stats.rb +4 -0
- data/lib/facebook_ads/ad_objects/ads_histogram_stats.rb +4 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +1 -0
- data/lib/facebook_ads/ad_objects/application.rb +1 -0
- data/lib/facebook_ads/ad_objects/business.rb +2 -2
- data/lib/facebook_ads/ad_objects/canvas.rb +4 -0
- data/lib/facebook_ads/ad_objects/{destination_catalog_settings.rb → canvas_preview.rb} +4 -3
- data/lib/facebook_ads/ad_objects/custom_audience.rb +11 -0
- data/lib/facebook_ads/ad_objects/{instant_articles_stats.rb → custom_audience_salts.rb} +3 -6
- data/lib/facebook_ads/ad_objects/group.rb +0 -1
- data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +2 -0
- data/lib/facebook_ads/ad_objects/leadgen_form.rb +1 -1
- data/lib/facebook_ads/ad_objects/page.rb +0 -10
- data/lib/facebook_ads/ad_objects/product_item.rb +3 -0
- data/lib/facebook_ads/ad_objects/profile.rb +0 -1
- data/lib/facebook_ads/ad_objects/profile_picture_source.rb +0 -4
- data/lib/facebook_ads/ad_objects/user.rb +0 -16
- data/lib/facebook_ads/ad_objects/{whitehat_fbdl_run.rb → video_copyright_check_status.rb} +4 -8
- data/lib/facebook_ads/ad_objects/video_status.rb +30 -0
- data/lib/facebook_ads/ad_objects/video_status_error.rb +26 -0
- data/lib/facebook_ads/ad_objects/{game_item.rb → video_status_processing_phase.rb} +4 -14
- data/lib/facebook_ads/ad_objects/video_status_publishing_phase.rb +28 -0
- data/lib/facebook_ads/ad_objects/video_status_uploading_phase.rb +28 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +0 -1
- data/lib/facebook_ads/api_request.rb +2 -2
- data/lib/facebook_ads/field_types/upload_file.rb +3 -3
- data/lib/facebook_ads/version.rb +2 -2
- data/lib/facebook_ads/videos/video_io.rb +1 -1
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3142ea4fb603cf1fd0907f43b79270262f6cea6842c07c8456e4946bc4a8ffb
|
4
|
+
data.tar.gz: 1a09f36ba9f73e4decebcceea88c33d768e07ee64081e005ce7bd4684f3428be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 705598d10524bd493c0f551e200eef2512613cf2b4c0f3a69f79df409244790fa73f8d2e6af86baaae1a19ded436b73147fcfcadc3c47ff45f7f6d7dd9379b66
|
7
|
+
data.tar.gz: 1b1712c783f9d0c323d4b49fd64327fa4155d7e8eb8248418610cba2d95a947c585e8808c84fda51790d476e85f1001005d4adaa829d2711cacea25a4ea11005
|
@@ -72,6 +72,14 @@ module FacebookAds
|
|
72
72
|
"ZAR",
|
73
73
|
]
|
74
74
|
|
75
|
+
PERMITTED_TASKS = [
|
76
|
+
"AA_ANALYZE",
|
77
|
+
"ADVERTISE",
|
78
|
+
"ANALYZE",
|
79
|
+
"DRAFT",
|
80
|
+
"MANAGE",
|
81
|
+
]
|
82
|
+
|
75
83
|
TASKS = [
|
76
84
|
"AA_ANALYZE",
|
77
85
|
"ADVERTISE",
|
@@ -629,6 +637,10 @@ module FacebookAds
|
|
629
637
|
api.has_param :business, 'string'
|
630
638
|
end
|
631
639
|
edge.get 'Business'
|
640
|
+
edge.post 'AdAccount' do |api|
|
641
|
+
api.has_param :business, 'string'
|
642
|
+
api.has_param :permitted_tasks, { list: { enum: -> { AdAccount::PERMITTED_TASKS }} }
|
643
|
+
end
|
632
644
|
end
|
633
645
|
|
634
646
|
has_edge :applications do |edge|
|
@@ -20,7 +20,9 @@ module FacebookAds
|
|
20
20
|
"CHANGED_BUDGET",
|
21
21
|
"EMAIL",
|
22
22
|
"ENABLE_ADVANTAGE_PLUS_CREATIVE",
|
23
|
+
"ENABLE_ADVANTAGE_PLUS_PLACEMENTS",
|
23
24
|
"ENABLE_AUTOFLOW",
|
25
|
+
"ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION",
|
24
26
|
"ENDPOINT_PINGED",
|
25
27
|
"ERROR",
|
26
28
|
"FACEBOOK_NOTIFICATION_SENT",
|
@@ -20,12 +20,17 @@ module FacebookAds
|
|
20
20
|
"ACO_TOGGLE",
|
21
21
|
"ADS_REPORTING",
|
22
22
|
"ADVANCED_CAMPAIGN_BUDGET",
|
23
|
+
"ADVANTAGE_APP_CAMPAIGN",
|
23
24
|
"ADVANTAGE_CUSTOM_AUDIENCE",
|
24
25
|
"ADVANTAGE_CUSTOM_AUDIENCE_UPSELL",
|
26
|
+
"ADVANTAGE_DETAILED_TARGETING",
|
27
|
+
"ADVANTAGE_LOOKALIKE_AUDIENCE",
|
28
|
+
"ADVANTAGE_PLUS_AUDIENCE",
|
25
29
|
"ADVANTAGE_PLUS_AUDIENCE_FRICTION",
|
26
30
|
"ADVANTAGE_PLUS_AUDIENCE_TOGGLE",
|
27
31
|
"ADVANTAGE_PLUS_CREATIVE",
|
28
32
|
"ADVANTAGE_PLUS_CREATIVE_CATALOG",
|
33
|
+
"ADVANTAGE_PLUS_PLACEMENTS_FRICTION",
|
29
34
|
"ADVANTAGE_SHOPPING_CAMPAIGN",
|
30
35
|
"ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION",
|
31
36
|
"AD_OBJECTIVE",
|
@@ -76,6 +81,7 @@ module FacebookAds
|
|
76
81
|
"GUIDANCE_CENTER_CODE_GEN",
|
77
82
|
"HIGH_COST",
|
78
83
|
"HISTORICAL_BENCHMARK",
|
84
|
+
"IG_MULTI_ADS",
|
79
85
|
"LEARNING_LIMITED",
|
80
86
|
"LEARNING_PAUSE_FRICTION",
|
81
87
|
"LEARNING_PHASE_BUDGET_EDITS",
|
@@ -107,6 +113,7 @@ module FacebookAds
|
|
107
113
|
"SIX_PLUS_MANUAL_PLACEMENTS",
|
108
114
|
"SPEND_LIMIT",
|
109
115
|
"SYD_TEST_MODE",
|
116
|
+
"TAILORED_LEAD_AD_CAMPAIGN",
|
110
117
|
"TOP_ADSETS_WITH_ADS_UNDER_CAP",
|
111
118
|
"TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP",
|
112
119
|
"TWO_P_GUIDANCE_CARD_AAA",
|
@@ -16,7 +16,9 @@ module FacebookAds
|
|
16
16
|
class AdAccountBusinessConstraints < AdObject
|
17
17
|
|
18
18
|
field :audience_controls, 'object'
|
19
|
+
field :campaigns_with_error, { list: 'string' }
|
19
20
|
field :placement_controls, 'object'
|
21
|
+
field :status, 'string'
|
20
22
|
has_no_id
|
21
23
|
has_no_get
|
22
24
|
has_no_post
|
@@ -20,6 +20,7 @@ module FacebookAds
|
|
20
20
|
field :instagram_boost_post_access_token, 'string'
|
21
21
|
field :is_mca_internal, 'bool'
|
22
22
|
field :partners, { list: 'AdCreativeBrandedContentAdsPartners' }
|
23
|
+
field :promoted_page_id, 'string'
|
23
24
|
field :ui_version, 'int'
|
24
25
|
has_no_id
|
25
26
|
has_no_get
|
@@ -68,8 +68,10 @@ module FacebookAds
|
|
68
68
|
field :place_page_set_id, 'string'
|
69
69
|
field :product_catalog_id, 'string'
|
70
70
|
field :product_item_id, 'string'
|
71
|
+
field :product_set, 'ProductSet'
|
71
72
|
field :product_set_id, 'string'
|
72
73
|
field :retention_days, 'string'
|
74
|
+
field :whatsapp_phone_number, 'string'
|
73
75
|
has_no_id
|
74
76
|
has_no_get
|
75
77
|
has_no_post
|
@@ -20,7 +20,9 @@ module FacebookAds
|
|
20
20
|
"CHANGED_BUDGET",
|
21
21
|
"EMAIL",
|
22
22
|
"ENABLE_ADVANTAGE_PLUS_CREATIVE",
|
23
|
+
"ENABLE_ADVANTAGE_PLUS_PLACEMENTS",
|
23
24
|
"ENABLE_AUTOFLOW",
|
25
|
+
"ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION",
|
24
26
|
"ENDPOINT_PINGED",
|
25
27
|
"ERROR",
|
26
28
|
"FACEBOOK_NOTIFICATION_SENT",
|
@@ -41,6 +41,7 @@ module FacebookAds
|
|
41
41
|
"CONTAINED_POST_AUDIO_BROADCAST",
|
42
42
|
"CONTAINED_POST_COPYRIGHT_REFERENCE_BROADCAST",
|
43
43
|
"COPYRIGHT_REFERENCE_BROADCAST",
|
44
|
+
"COPYRIGHT_REFERENCE_IG_XPOST_VIDEO",
|
44
45
|
"COPYRIGHT_REFERENCE_VIDEO",
|
45
46
|
"CREATION_ML_PRECREATION",
|
46
47
|
"DCO_AD_ASSET_FEED",
|
@@ -330,7 +331,7 @@ module FacebookAds
|
|
330
331
|
field :scheduled_publish_time, 'datetime'
|
331
332
|
field :source, 'string'
|
332
333
|
field :spherical, 'bool'
|
333
|
-
field :status, '
|
334
|
+
field :status, 'VideoStatus'
|
334
335
|
field :title, 'string'
|
335
336
|
field :universal_video_id, 'string'
|
336
337
|
field :updated_time, 'datetime'
|
@@ -45,7 +45,11 @@ module FacebookAds
|
|
45
45
|
field :interactive_component_sticker_id, 'string'
|
46
46
|
field :interactive_component_sticker_response, 'string'
|
47
47
|
field :skan_click, 'string'
|
48
|
+
field :skan_click_second_postback, 'string'
|
49
|
+
field :skan_click_third_postback, 'string'
|
48
50
|
field :skan_view, 'string'
|
51
|
+
field :skan_view_second_postback, 'string'
|
52
|
+
field :skan_view_third_postback, 'string'
|
49
53
|
field :value, 'string'
|
50
54
|
has_no_id
|
51
55
|
has_no_get
|
@@ -45,7 +45,11 @@ module FacebookAds
|
|
45
45
|
field :interactive_component_sticker_id, 'string'
|
46
46
|
field :interactive_component_sticker_response, 'string'
|
47
47
|
field :skan_click, { list: 'int' }
|
48
|
+
field :skan_click_second_postback, { list: 'int' }
|
49
|
+
field :skan_click_third_postback, { list: 'int' }
|
48
50
|
field :skan_view, { list: 'int' }
|
51
|
+
field :skan_view_second_postback, { list: 'int' }
|
52
|
+
field :skan_view_third_postback, { list: 'int' }
|
49
53
|
field :value, { list: 'int' }
|
50
54
|
has_no_id
|
51
55
|
has_no_get
|
@@ -128,6 +128,7 @@ module FacebookAds
|
|
128
128
|
api.has_param :namespace_id, 'string'
|
129
129
|
api.has_param :partner_agent, 'string'
|
130
130
|
api.has_param :platforms, { list: 'hash' }
|
131
|
+
api.has_param :progress, 'object'
|
131
132
|
api.has_param :test_event_code, 'string'
|
132
133
|
api.has_param :trace, 'int'
|
133
134
|
api.has_param :upload_id, 'string'
|
@@ -458,6 +458,7 @@ module FacebookAds
|
|
458
458
|
api.has_param :click_attr_window, 'int'
|
459
459
|
api.has_param :custom_events, { list: 'object' }
|
460
460
|
api.has_param :decline_reason, 'string'
|
461
|
+
api.has_param :engagement_type, 'string'
|
461
462
|
api.has_param :event, 'string'
|
462
463
|
api.has_param :event_reported_time, 'int'
|
463
464
|
api.has_param :fb_ad_id, 'int'
|
@@ -35,6 +35,7 @@ module FacebookAds
|
|
35
35
|
"LUXURY",
|
36
36
|
"MARKETING",
|
37
37
|
"NON_PROFIT",
|
38
|
+
"NOT_SET",
|
38
39
|
"ORGANIZATIONS_AND_ASSOCIATIONS",
|
39
40
|
"OTHER",
|
40
41
|
"PROFESSIONAL_SERVICES",
|
@@ -720,7 +721,7 @@ module FacebookAds
|
|
720
721
|
api.has_param :survey_num_assets, 'int'
|
721
722
|
api.has_param :survey_num_people, 'int'
|
722
723
|
api.has_param :timezone_id, 'int'
|
723
|
-
api.has_param :vertical, { enum: %w{ADVERTISING AUTOMOTIVE CONSUMER_PACKAGED_GOODS ECOMMERCE EDUCATION ENERGY_AND_UTILITIES ENTERTAINMENT_AND_MEDIA FINANCIAL_SERVICES GAMING GOVERNMENT_AND_POLITICS HEALTH LUXURY MARKETING NON_PROFIT ORGANIZATIONS_AND_ASSOCIATIONS OTHER PROFESSIONAL_SERVICES RESTAURANT RETAIL TECHNOLOGY TELECOM TRAVEL }}
|
724
|
+
api.has_param :vertical, { enum: %w{ADVERTISING AUTOMOTIVE CONSUMER_PACKAGED_GOODS ECOMMERCE EDUCATION ENERGY_AND_UTILITIES ENTERTAINMENT_AND_MEDIA FINANCIAL_SERVICES GAMING GOVERNMENT_AND_POLITICS HEALTH LUXURY MARKETING NON_PROFIT NOT_SET ORGANIZATIONS_AND_ASSOCIATIONS OTHER PROFESSIONAL_SERVICES RESTAURANT RETAIL TECHNOLOGY TELECOM TRAVEL }}
|
724
725
|
end
|
725
726
|
end
|
726
727
|
|
@@ -885,7 +886,6 @@ module FacebookAds
|
|
885
886
|
|
886
887
|
has_edge :picture do |edge|
|
887
888
|
edge.get 'ProfilePictureSource' do |api|
|
888
|
-
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
889
889
|
api.has_param :height, 'int'
|
890
890
|
api.has_param :redirect, 'bool'
|
891
891
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -44,6 +44,10 @@ module FacebookAds
|
|
44
44
|
field :use_retailer_item_ids, 'bool'
|
45
45
|
has_no_delete
|
46
46
|
|
47
|
+
has_edge :preview do |edge|
|
48
|
+
edge.get 'CanvasPreview'
|
49
|
+
end
|
50
|
+
|
47
51
|
has_edge :previews do |edge|
|
48
52
|
edge.get 'TextWithEntities' do |api|
|
49
53
|
api.has_param :user_ids, { list: 'int' }
|
@@ -13,10 +13,11 @@ module FacebookAds
|
|
13
13
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
|
-
class
|
16
|
+
class CanvasPreview < AdObject
|
17
17
|
|
18
|
-
field :
|
19
|
-
|
18
|
+
field :body, 'string'
|
19
|
+
has_no_id
|
20
|
+
has_no_get
|
20
21
|
has_no_post
|
21
22
|
has_no_delete
|
22
23
|
|
@@ -158,6 +158,17 @@ module FacebookAds
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
+
has_edge :salts do |edge|
|
162
|
+
edge.get 'CustomAudienceSalts' do |api|
|
163
|
+
api.has_param :params, { list: 'string' }
|
164
|
+
end
|
165
|
+
edge.post 'CustomAudience' do |api|
|
166
|
+
api.has_param :salt, 'string'
|
167
|
+
api.has_param :valid_from, 'datetime'
|
168
|
+
api.has_param :valid_to, 'datetime'
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
161
172
|
has_edge :sessions do |edge|
|
162
173
|
edge.get 'CustomAudienceSession' do |api|
|
163
174
|
api.has_param :session_id, 'int'
|
@@ -13,13 +13,10 @@ module FacebookAds
|
|
13
13
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
|
-
class
|
16
|
+
class CustomAudienceSalts < AdObject
|
17
17
|
|
18
|
-
field :
|
19
|
-
field :
|
20
|
-
field :metric, 'object'
|
21
|
-
field :totals, { list: 'hash' }
|
22
|
-
field :x_axis_breakdown, { list: { list: 'hash' } }
|
18
|
+
field :app_id, 'int'
|
19
|
+
field :public_key, 'string'
|
23
20
|
has_no_id
|
24
21
|
has_no_get
|
25
22
|
has_no_post
|
@@ -394,7 +394,6 @@ module FacebookAds
|
|
394
394
|
|
395
395
|
has_edge :picture do |edge|
|
396
396
|
edge.get 'ProfilePictureSource' do |api|
|
397
|
-
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
398
397
|
api.has_param :height, 'int'
|
399
398
|
api.has_param :redirect, 'bool'
|
400
399
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -27,10 +27,12 @@ module FacebookAds
|
|
27
27
|
"carousel_album_reach",
|
28
28
|
"carousel_album_saved",
|
29
29
|
"carousel_album_video_views",
|
30
|
+
"clips_replays_count",
|
30
31
|
"comments",
|
31
32
|
"engagement",
|
32
33
|
"exits",
|
33
34
|
"follows",
|
35
|
+
"ig_reels_aggregated_all_plays_count",
|
34
36
|
"ig_reels_avg_watch_time",
|
35
37
|
"ig_reels_video_view_total_time",
|
36
38
|
"impressions",
|
@@ -79,7 +79,7 @@ module FacebookAds
|
|
79
79
|
field :questions, { list: 'LeadGenQuestion' }
|
80
80
|
field :status, 'string'
|
81
81
|
field :thank_you_page, 'LeadGenThankYouPage'
|
82
|
-
field :tracking_parameters, { list: '
|
82
|
+
field :tracking_parameters, { list: 'KeyValue' }
|
83
83
|
has_no_delete
|
84
84
|
|
85
85
|
has_edge :leads do |edge|
|
@@ -955,15 +955,6 @@ module FacebookAds
|
|
955
955
|
edge.get 'InstagramUser'
|
956
956
|
end
|
957
957
|
|
958
|
-
has_edge :instant_articles_stats do |edge|
|
959
|
-
edge.get 'InstantArticlesStats' do |api|
|
960
|
-
api.has_param :metrics_list, { list: 'hash' }
|
961
|
-
api.has_param :page_list, { list: 'string' }
|
962
|
-
api.has_param :since, 'datetime'
|
963
|
-
api.has_param :until, 'datetime'
|
964
|
-
end
|
965
|
-
end
|
966
|
-
|
967
958
|
has_edge :leadgen_forms do |edge|
|
968
959
|
edge.get 'LeadgenForm'
|
969
960
|
edge.post 'LeadgenForm' do |api|
|
@@ -1266,7 +1257,6 @@ module FacebookAds
|
|
1266
1257
|
|
1267
1258
|
has_edge :picture do |edge|
|
1268
1259
|
edge.get 'ProfilePictureSource' do |api|
|
1269
|
-
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
1270
1260
|
api.has_param :height, 'int'
|
1271
1261
|
api.has_param :redirect, 'bool'
|
1272
1262
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -337,6 +337,7 @@ module FacebookAds
|
|
337
337
|
"INVALID_IMAGES",
|
338
338
|
"INVALID_MONETIZER_RETURN_POLICY",
|
339
339
|
"INVALID_PRE_ORDER_PARAMS",
|
340
|
+
"INVALID_SHELTER_PAGE_ID",
|
340
341
|
"INVALID_SHIPPING_PROFILE_PARAMS",
|
341
342
|
"INVALID_SUBSCRIPTION_DISABLE_PARAMS",
|
342
343
|
"INVALID_SUBSCRIPTION_ENABLE_PARAMS",
|
@@ -404,6 +405,8 @@ module FacebookAds
|
|
404
405
|
"VIDEO_FETCH_FAILED_LINK_BROKEN",
|
405
406
|
"VIDEO_FETCH_FAILED_TIMED_OUT",
|
406
407
|
"VIDEO_NOT_DOWNLOADABLE",
|
408
|
+
"WHATSAPP_DISABLED_BY_USER",
|
409
|
+
"WHATSAPP_POLICY_VIOLATION",
|
407
410
|
]
|
408
411
|
|
409
412
|
MARKED_FOR_PRODUCT_LAUNCH = [
|
@@ -54,7 +54,6 @@ module FacebookAds
|
|
54
54
|
|
55
55
|
has_edge :picture do |edge|
|
56
56
|
edge.get 'ProfilePictureSource' do |api|
|
57
|
-
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
58
57
|
api.has_param :height, 'int'
|
59
58
|
api.has_param :redirect, 'bool'
|
60
59
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -228,10 +228,6 @@ module FacebookAds
|
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
231
|
-
has_edge :fbdl_runs do |edge|
|
232
|
-
edge.get 'WhitehatFbdlRun'
|
233
|
-
end
|
234
|
-
|
235
231
|
has_edge :feed do |edge|
|
236
232
|
edge.get 'Post' do |api|
|
237
233
|
api.has_param :include_hidden, 'bool'
|
@@ -381,17 +377,6 @@ module FacebookAds
|
|
381
377
|
end
|
382
378
|
end
|
383
379
|
|
384
|
-
has_edge :game_items do |edge|
|
385
|
-
edge.post 'GameItem' do |api|
|
386
|
-
api.has_param :action, { enum: -> { GameItem::ACTION }}
|
387
|
-
api.has_param :app_id, 'string'
|
388
|
-
api.has_param :drop_table_id, 'string'
|
389
|
-
api.has_param :ext_id, 'string'
|
390
|
-
api.has_param :item_id, 'string'
|
391
|
-
api.has_param :quantity, 'int'
|
392
|
-
end
|
393
|
-
end
|
394
|
-
|
395
380
|
has_edge :game_times do |edge|
|
396
381
|
edge.post do |api|
|
397
382
|
api.has_param :action, { enum: %w{END HEARTBEAT START }}
|
@@ -565,7 +550,6 @@ module FacebookAds
|
|
565
550
|
|
566
551
|
has_edge :picture do |edge|
|
567
552
|
edge.get 'ProfilePictureSource' do |api|
|
568
|
-
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
569
553
|
api.has_param :height, 'int'
|
570
554
|
api.has_param :redirect, 'bool'
|
571
555
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -13,16 +13,12 @@ module FacebookAds
|
|
13
13
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
|
-
class
|
16
|
+
class VideoCopyrightCheckStatus < AdObject
|
17
17
|
|
18
|
-
field :
|
19
|
-
field :id, 'string'
|
20
|
-
field :is_pinned, 'bool'
|
21
|
-
field :note, 'string'
|
22
|
-
field :result, { list: 'hash' }
|
23
|
-
field :run_code, 'string'
|
18
|
+
field :matches_found, 'bool'
|
24
19
|
field :status, 'string'
|
25
|
-
|
20
|
+
has_no_id
|
21
|
+
has_no_get
|
26
22
|
has_no_post
|
27
23
|
has_no_delete
|
28
24
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2
|
+
# All rights reserved.
|
3
|
+
|
4
|
+
# This source code is licensed under the license found in the
|
5
|
+
# LICENSE file in the root directory of this source tree.
|
6
|
+
|
7
|
+
# FB:AUTOGEN
|
8
|
+
|
9
|
+
module FacebookAds
|
10
|
+
# This class is auto-generated.
|
11
|
+
|
12
|
+
# For any issues or feature requests related to this class, please let us know
|
13
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
|
+
# pull request for this class.
|
15
|
+
|
16
|
+
class VideoStatus < AdObject
|
17
|
+
|
18
|
+
field :copyright_check_status, 'VideoCopyrightCheckStatus'
|
19
|
+
field :processing_phase, 'VideoStatusProcessingPhase'
|
20
|
+
field :processing_progress, 'int'
|
21
|
+
field :publishing_phase, 'VideoStatusPublishingPhase'
|
22
|
+
field :uploading_phase, 'VideoStatusUploadingPhase'
|
23
|
+
field :video_status, 'string'
|
24
|
+
has_no_id
|
25
|
+
has_no_get
|
26
|
+
has_no_post
|
27
|
+
has_no_delete
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2
|
+
# All rights reserved.
|
3
|
+
|
4
|
+
# This source code is licensed under the license found in the
|
5
|
+
# LICENSE file in the root directory of this source tree.
|
6
|
+
|
7
|
+
# FB:AUTOGEN
|
8
|
+
|
9
|
+
module FacebookAds
|
10
|
+
# This class is auto-generated.
|
11
|
+
|
12
|
+
# For any issues or feature requests related to this class, please let us know
|
13
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
|
+
# pull request for this class.
|
15
|
+
|
16
|
+
class VideoStatusError < AdObject
|
17
|
+
|
18
|
+
field :code, 'int'
|
19
|
+
field :message, 'string'
|
20
|
+
has_no_id
|
21
|
+
has_no_get
|
22
|
+
has_no_post
|
23
|
+
has_no_delete
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -13,22 +13,12 @@ module FacebookAds
|
|
13
13
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
|
-
class
|
17
|
-
ACTION = [
|
18
|
-
"CONSUME",
|
19
|
-
"DROP",
|
20
|
-
"MARK",
|
21
|
-
]
|
16
|
+
class VideoStatusProcessingPhase < AdObject
|
22
17
|
|
23
|
-
|
24
|
-
field :count, 'int'
|
25
|
-
field :created, 'datetime'
|
26
|
-
field :ext_id, 'string'
|
27
|
-
field :id, 'string'
|
28
|
-
field :item_def, 'string'
|
29
|
-
field :owner, 'User'
|
18
|
+
field :errors, { list: 'VideoStatusError' }
|
30
19
|
field :status, 'string'
|
31
|
-
|
20
|
+
has_no_id
|
21
|
+
has_no_get
|
32
22
|
has_no_post
|
33
23
|
has_no_delete
|
34
24
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2
|
+
# All rights reserved.
|
3
|
+
|
4
|
+
# This source code is licensed under the license found in the
|
5
|
+
# LICENSE file in the root directory of this source tree.
|
6
|
+
|
7
|
+
# FB:AUTOGEN
|
8
|
+
|
9
|
+
module FacebookAds
|
10
|
+
# This class is auto-generated.
|
11
|
+
|
12
|
+
# For any issues or feature requests related to this class, please let us know
|
13
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
|
+
# pull request for this class.
|
15
|
+
|
16
|
+
class VideoStatusPublishingPhase < AdObject
|
17
|
+
|
18
|
+
field :errors, { list: 'VideoStatusError' }
|
19
|
+
field :publish_status, 'string'
|
20
|
+
field :publish_time, 'datetime'
|
21
|
+
field :status, 'string'
|
22
|
+
has_no_id
|
23
|
+
has_no_get
|
24
|
+
has_no_post
|
25
|
+
has_no_delete
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2
|
+
# All rights reserved.
|
3
|
+
|
4
|
+
# This source code is licensed under the license found in the
|
5
|
+
# LICENSE file in the root directory of this source tree.
|
6
|
+
|
7
|
+
# FB:AUTOGEN
|
8
|
+
|
9
|
+
module FacebookAds
|
10
|
+
# This class is auto-generated.
|
11
|
+
|
12
|
+
# For any issues or feature requests related to this class, please let us know
|
13
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
|
+
# pull request for this class.
|
15
|
+
|
16
|
+
class VideoStatusUploadingPhase < AdObject
|
17
|
+
|
18
|
+
field :bytes_transferred, 'int'
|
19
|
+
field :errors, { list: 'VideoStatusError' }
|
20
|
+
field :source_file_size, 'int'
|
21
|
+
field :status, 'string'
|
22
|
+
has_no_id
|
23
|
+
has_no_get
|
24
|
+
has_no_post
|
25
|
+
has_no_delete
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -101,7 +101,6 @@ module FacebookAds
|
|
101
101
|
edge.post do |api|
|
102
102
|
api.has_param :categories, { list: { enum: %w{APPOINTMENT_BOOKING CONTACT_US CUSTOMER_SUPPORT LEAD_GENERATION OTHER SIGN_IN SIGN_UP SURVEY }} }
|
103
103
|
api.has_param :clone_flow_id, 'string'
|
104
|
-
api.has_param :clone_template, 'string'
|
105
104
|
api.has_param :endpoint_uri, 'string'
|
106
105
|
api.has_param :name, 'string'
|
107
106
|
end
|
@@ -97,14 +97,14 @@ module FacebookAds
|
|
97
97
|
# For Batch API
|
98
98
|
def params_without_files
|
99
99
|
params.reject do |_,v|
|
100
|
-
v.is_a?(UploadIO)
|
100
|
+
v.is_a?(Faraday::UploadIO)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
104
|
# For Batch API
|
105
105
|
def files
|
106
106
|
params.select do |_,v|
|
107
|
-
v.is_a?(UploadIO)
|
107
|
+
v.is_a?(Faraday::UploadIO)
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
@@ -77,9 +77,9 @@ module FacebookAds
|
|
77
77
|
if category == :video
|
78
78
|
FacebookAds::VideoIO.new(value, content_type)
|
79
79
|
else
|
80
|
-
::UploadIO.new(value, content_type)
|
80
|
+
Faraday::UploadIO.new(value, content_type)
|
81
81
|
end
|
82
|
-
when UploadIO
|
82
|
+
when Faraday::UploadIO
|
83
83
|
value
|
84
84
|
# when etc etc TODO Rails/Sinatra Upload
|
85
85
|
else
|
@@ -98,7 +98,7 @@ module FacebookAds
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def self.acceptable?(value)
|
101
|
-
[File, Tempfile, UploadIO].each do |type|
|
101
|
+
[File, Tempfile, Faraday::UploadIO].each do |type|
|
102
102
|
return true if value.is_a?(type)
|
103
103
|
end
|
104
104
|
|
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:
|
4
|
+
version: 19.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Facebook
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.0.4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.0.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -426,6 +426,7 @@ files:
|
|
426
426
|
- lib/facebook_ads/ad_objects/canvas_body_element.rb
|
427
427
|
- lib/facebook_ads/ad_objects/canvas_collection_thumbnail.rb
|
428
428
|
- lib/facebook_ads/ad_objects/canvas_dynamic_setting.rb
|
429
|
+
- lib/facebook_ads/ad_objects/canvas_preview.rb
|
429
430
|
- lib/facebook_ads/ad_objects/catalog_based_targeting.rb
|
430
431
|
- lib/facebook_ads/ad_objects/catalog_item_app_links.rb
|
431
432
|
- lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb
|
@@ -466,6 +467,7 @@ files:
|
|
466
467
|
- lib/facebook_ads/ad_objects/custom_audience_ad_account.rb
|
467
468
|
- lib/facebook_ads/ad_objects/custom_audience_data_source.rb
|
468
469
|
- lib/facebook_ads/ad_objects/custom_audience_group.rb
|
470
|
+
- lib/facebook_ads/ad_objects/custom_audience_salts.rb
|
469
471
|
- lib/facebook_ads/ad_objects/custom_audience_session.rb
|
470
472
|
- lib/facebook_ads/ad_objects/custom_audience_sharing_status.rb
|
471
473
|
- lib/facebook_ads/ad_objects/custom_audience_status.rb
|
@@ -481,7 +483,6 @@ files:
|
|
481
483
|
- lib/facebook_ads/ad_objects/delivery_check_extra_info.rb
|
482
484
|
- lib/facebook_ads/ad_objects/delivery_window.rb
|
483
485
|
- lib/facebook_ads/ad_objects/destination.rb
|
484
|
-
- lib/facebook_ads/ad_objects/destination_catalog_settings.rb
|
485
486
|
- lib/facebook_ads/ad_objects/dynamic_post_child_attachment.rb
|
486
487
|
- lib/facebook_ads/ad_objects/dynamic_price_config_by_date.rb
|
487
488
|
- lib/facebook_ads/ad_objects/dynamic_video_metadata.rb
|
@@ -500,7 +501,6 @@ files:
|
|
500
501
|
- lib/facebook_ads/ad_objects/funding_source_details.rb
|
501
502
|
- lib/facebook_ads/ad_objects/funding_source_details_coupon.rb
|
502
503
|
- lib/facebook_ads/ad_objects/fundraiser_person_to_charity.rb
|
503
|
-
- lib/facebook_ads/ad_objects/game_item.rb
|
504
504
|
- lib/facebook_ads/ad_objects/group.rb
|
505
505
|
- lib/facebook_ads/ad_objects/has_lead_access.rb
|
506
506
|
- lib/facebook_ads/ad_objects/helpers/custom_audience_helpers.rb
|
@@ -531,7 +531,6 @@ files:
|
|
531
531
|
- lib/facebook_ads/ad_objects/instagram_shopping_merchant_review_message.rb
|
532
532
|
- lib/facebook_ads/ad_objects/instagram_user.rb
|
533
533
|
- lib/facebook_ads/ad_objects/instagram_video_metadata.rb
|
534
|
-
- lib/facebook_ads/ad_objects/instant_articles_stats.rb
|
535
534
|
- lib/facebook_ads/ad_objects/ios_app_link.rb
|
536
535
|
- lib/facebook_ads/ad_objects/job_opening.rb
|
537
536
|
- lib/facebook_ads/ad_objects/key_value.rb
|
@@ -736,12 +735,18 @@ files:
|
|
736
735
|
- lib/facebook_ads/ad_objects/vehicle.rb
|
737
736
|
- lib/facebook_ads/ad_objects/vehicle_offer.rb
|
738
737
|
- lib/facebook_ads/ad_objects/video_copyright.rb
|
738
|
+
- lib/facebook_ads/ad_objects/video_copyright_check_status.rb
|
739
739
|
- lib/facebook_ads/ad_objects/video_copyright_condition_group.rb
|
740
740
|
- lib/facebook_ads/ad_objects/video_copyright_geo_gate.rb
|
741
741
|
- lib/facebook_ads/ad_objects/video_copyright_rule.rb
|
742
742
|
- lib/facebook_ads/ad_objects/video_copyright_segment.rb
|
743
743
|
- lib/facebook_ads/ad_objects/video_list.rb
|
744
744
|
- lib/facebook_ads/ad_objects/video_poll.rb
|
745
|
+
- lib/facebook_ads/ad_objects/video_status.rb
|
746
|
+
- lib/facebook_ads/ad_objects/video_status_error.rb
|
747
|
+
- lib/facebook_ads/ad_objects/video_status_processing_phase.rb
|
748
|
+
- lib/facebook_ads/ad_objects/video_status_publishing_phase.rb
|
749
|
+
- lib/facebook_ads/ad_objects/video_status_uploading_phase.rb
|
745
750
|
- lib/facebook_ads/ad_objects/video_thumbnail.rb
|
746
751
|
- lib/facebook_ads/ad_objects/video_upload_limits.rb
|
747
752
|
- lib/facebook_ads/ad_objects/voip_info.rb
|
@@ -751,7 +756,6 @@ files:
|
|
751
756
|
- lib/facebook_ads/ad_objects/whats_app_business_health_status_for_message_send.rb
|
752
757
|
- lib/facebook_ads/ad_objects/whats_app_business_pre_verified_phone_number.rb
|
753
758
|
- lib/facebook_ads/ad_objects/whats_app_business_profile.rb
|
754
|
-
- lib/facebook_ads/ad_objects/whitehat_fbdl_run.rb
|
755
759
|
- lib/facebook_ads/ad_objects/windows_app_link.rb
|
756
760
|
- lib/facebook_ads/ad_objects/windows_phone_app_link.rb
|
757
761
|
- lib/facebook_ads/ad_objects/woodhenge_purchased_payg_receipt.rb
|