facebookbusiness 0.7.0.2 → 0.7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +5 -6
  3. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +1 -0
  5. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
  6. data/lib/facebook_ads/ad_objects/ad_activity.rb +7 -0
  7. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -2
  9. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_preview.rb +0 -1
  13. data/lib/facebook_ads/ad_objects/ad_set.rb +2 -0
  14. data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
  15. data/lib/facebook_ads/ad_objects/ad_video.rb +5 -27
  16. data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +4 -0
  17. data/lib/facebook_ads/ad_objects/{ads_interest.rb → adoptable_pet.rb} +18 -5
  18. data/lib/facebook_ads/ad_objects/ads_insights.rb +4 -0
  19. data/lib/facebook_ads/ad_objects/application.rb +4 -0
  20. data/lib/facebook_ads/ad_objects/atlas_campaign.rb +2 -2
  21. data/lib/facebook_ads/ad_objects/business.rb +1 -121
  22. data/lib/facebook_ads/ad_objects/business_asset_group.rb +0 -3
  23. data/lib/facebook_ads/ad_objects/business_role_request.rb +5 -0
  24. data/lib/facebook_ads/ad_objects/business_user.rb +5 -0
  25. data/lib/facebook_ads/ad_objects/campaign.rb +257 -0
  26. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +8 -0
  27. data/lib/facebook_ads/ad_objects/event.rb +11 -0
  28. data/lib/facebook_ads/ad_objects/external_event_source.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/group.rb +5 -0
  30. data/lib/facebook_ads/ad_objects/ig_media.rb +1 -0
  31. data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -1
  32. data/lib/facebook_ads/ad_objects/page.rb +5 -2
  33. data/lib/facebook_ads/ad_objects/page_admin_note.rb +1 -0
  34. data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
  35. data/lib/facebook_ads/ad_objects/page_change_proposal.rb +2 -0
  36. data/lib/facebook_ads/ad_objects/{brand_audience.rb → payment_subscription.rb} +23 -9
  37. data/lib/facebook_ads/ad_objects/post.rb +1 -1
  38. data/lib/facebook_ads/ad_objects/product_catalog.rb +2 -0
  39. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
  40. data/lib/facebook_ads/ad_objects/product_set.rb +3 -0
  41. data/lib/facebook_ads/ad_objects/{user_influence.rb → product_set_metadata.rb} +4 -4
  42. data/lib/facebook_ads/ad_objects/profile.rb +1 -0
  43. data/lib/facebook_ads/ad_objects/profile_picture_source.rb +4 -0
  44. data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
  45. data/lib/facebook_ads/ad_objects/server_side/content.rb +75 -13
  46. data/lib/facebook_ads/ad_objects/server_side/custom_data.rb +24 -6
  47. data/lib/facebook_ads/ad_objects/server_side/event_request.rb +80 -6
  48. data/lib/facebook_ads/ad_objects/server_side/user_data.rb +126 -17
  49. data/lib/facebook_ads/ad_objects/server_side/util.rb +204 -150
  50. data/lib/facebook_ads/ad_objects/system_user.rb +5 -0
  51. data/lib/facebook_ads/ad_objects/targeting.rb +1 -0
  52. data/lib/facebook_ads/ad_objects/{creative_asset_tag.rb → targeting_relaxation.rb} +2 -2
  53. data/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +1 -0
  54. data/lib/facebook_ads/ad_objects/user.rb +8 -4
  55. data/lib/facebook_ads/ad_objects/user_taggable_friend.rb +1 -0
  56. data/lib/facebook_ads/ad_objects/{whats_app_business_profile.rb → work_meeting_link.rb} +3 -3
  57. data/lib/facebook_ads/version.rb +1 -1
  58. metadata +36 -16
  59. data/lib/facebook_ads/ad_objects/business_creative.rb +0 -50
  60. data/lib/facebook_ads/ad_objects/business_creative_folder.rb +0 -79
  61. data/lib/facebook_ads/ad_objects/business_creative_folder_sharing_agreement.rb +0 -46
  62. data/lib/facebook_ads/ad_objects/business_image.rb +0 -95
  63. data/lib/facebook_ads/ad_objects/client_transparency_status.rb +0 -40
  64. data/lib/facebook_ads/ad_objects/messenger_platform_referral.rb +0 -39
  65. data/lib/facebook_ads/ad_objects/streaming_reaction.rb +0 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3df9cd39855bc510fb0ea8c7f52392c31b6dd1a642cff27866aaa912e78c4345
4
- data.tar.gz: a16ec088adcd6b0c94d24cf2ce8d0de17c801ba5cb8e0e6ca1f78956e8764295
3
+ metadata.gz: 21427a72a89e5b69fcd40fcf556030df9c45494dd4256e7182b654ba4953771e
4
+ data.tar.gz: d031189ae8b805d79df679a06dfd9dbb418cd523143f0617998934bdce4ea5e7
5
5
  SHA512:
6
- metadata.gz: e36b83fd9b3698090b8f42ae7c69c9018b912dd4e30a34304187540af54d05fbe5a30cce8baadcd62e36ef0aa40625b7e1505747a9676ee34651dffd45803e6d
7
- data.tar.gz: 454b2eece60dd33a1c8e1602f207a291d259e2dff9b646a4eaaf630e571c1b603e0dbc3e27bad448063c878cd561adf5d8ead6df2b11e17853a1e287dd15bde5
6
+ metadata.gz: ba42f3cf881a1c1546b115389c241dc085b32877ec7b8259602d25fa6087cd1bec4afe2d546c982b87fc65f74c4a0ee62f4d634eb79d010c88d9698ccb9e6f07
7
+ data.tar.gz: 0dba0ce20bf17ef53da7214d0a9452ee7273321de7553d9b7c37cc35546c08caa245bad54542068a8003a2dbd8d316e552263d4220e3a1f9794aa8f444dec89f
@@ -77,6 +77,7 @@ module FacebookAds
77
77
  "THB",
78
78
  "TRY",
79
79
  "TWD",
80
+ "UAH",
80
81
  "USD",
81
82
  "UYU",
82
83
  "VND",
@@ -86,18 +87,12 @@ module FacebookAds
86
87
  PERMITTED_TASKS = [
87
88
  "ADVERTISE",
88
89
  "ANALYZE",
89
- "CREATIVE",
90
- "DRAFT",
91
- "FB_EMPLOYEE_DSO_ADVERTISE",
92
90
  "MANAGE",
93
91
  ]
94
92
 
95
93
  TASKS = [
96
94
  "ADVERTISE",
97
95
  "ANALYZE",
98
- "CREATIVE",
99
- "DRAFT",
100
- "FB_EMPLOYEE_DSO_ADVERTISE",
101
96
  "MANAGE",
102
97
  ]
103
98
 
@@ -215,6 +210,7 @@ module FacebookAds
215
210
  api.has_param :after, 'string'
216
211
  api.has_param :business_id, 'string'
217
212
  api.has_param :category, { enum: -> { AdActivity::CATEGORY }}
213
+ api.has_param :data_source, { enum: -> { AdActivity::DATA_SOURCE }}
218
214
  api.has_param :extra_oids, { list: 'string' }
219
215
  api.has_param :limit, 'int'
220
216
  api.has_param :oid, 'string'
@@ -529,6 +525,7 @@ module FacebookAds
529
525
  api.has_param :composer_type, 'string'
530
526
  api.has_param :container_type, { enum: -> { AdVideo::CONTAINER_TYPE }}
531
527
  api.has_param :content_category, { enum: -> { AdVideo::CONTENT_CATEGORY }}
528
+ api.has_param :creative_tools, 'string'
532
529
  api.has_param :description, 'string'
533
530
  api.has_param :embeddable, 'bool'
534
531
  api.has_param :end_offset, 'int'
@@ -582,6 +579,7 @@ module FacebookAds
582
579
  api.has_param :upload_session_id, 'string'
583
580
  api.has_param :upload_setting_properties, 'string'
584
581
  api.has_param :video_file_chunk, 'file'
582
+ api.has_param :video_id_original, 'string'
585
583
  api.has_param :video_start_time_ms, 'int'
586
584
  api.has_param :waterfall_id, 'string'
587
585
  api.accepts_files!
@@ -692,6 +690,7 @@ module FacebookAds
692
690
  api.has_param :promoted_object, 'object'
693
691
  api.has_param :source_campaign_id, 'string'
694
692
  api.has_param :special_ad_categories, { list: { enum: -> { Campaign::SPECIAL_AD_CATEGORIES }} }
693
+ api.has_param :special_ad_category_country, { list: { enum: -> { Campaign::SPECIAL_AD_CATEGORY_COUNTRY }} }
695
694
  api.has_param :spend_cap, 'int'
696
695
  api.has_param :status, { enum: -> { Campaign::STATUS }}
697
696
  api.has_param :topline_id, 'string'
@@ -45,6 +45,7 @@ module FacebookAds
45
45
  "PAGE_ENGAGEMENT",
46
46
  "PAGE_LIKES",
47
47
  "POST_ENGAGEMENT",
48
+ "QUALITY_LEAD",
48
49
  "REACH",
49
50
  "REPLIES",
50
51
  "SOCIAL_IMPRESSIONS",
@@ -36,6 +36,7 @@ module FacebookAds
36
36
  "INSTANT_GAME",
37
37
  "ITUNES",
38
38
  "ITUNES_IPAD",
39
+ "OCULUS_APP_STORE",
39
40
  "ROKU_STORE",
40
41
  "WINDOWS_10_STORE",
41
42
  "WINDOWS_STORE",
@@ -59,6 +59,7 @@ module FacebookAds
59
59
  "CREDIT",
60
60
  "EMPLOYMENT",
61
61
  "HOUSING",
62
+ "ISSUES_ELECTIONS_POLITICS",
62
63
  "NONE",
63
64
  ]
64
65
 
@@ -82,6 +82,7 @@ module FacebookAds
82
82
  "update_ad_set_bidding",
83
83
  "update_ad_set_budget",
84
84
  "update_ad_set_duration",
85
+ "update_ad_set_learning_stage_status",
85
86
  "update_ad_set_min_spend_target",
86
87
  "update_ad_set_name",
87
88
  "update_ad_set_optimization_goal",
@@ -102,6 +103,7 @@ module FacebookAds
102
103
  "update_campaign_name",
103
104
  "update_campaign_run_status",
104
105
  "update_campaign_schedule",
106
+ "update_delivery_type_cross_level_shift",
105
107
  ]
106
108
 
107
109
  CATEGORY = [
@@ -118,6 +120,11 @@ module FacebookAds
118
120
  "TARGETING",
119
121
  ]
120
122
 
123
+ DATA_SOURCE = [
124
+ "CALYPSO",
125
+ "TAO",
126
+ ]
127
+
121
128
 
122
129
  field :actor_id, 'string'
123
130
  field :actor_name, 'string'
@@ -71,6 +71,7 @@ module FacebookAds
71
71
  "SAY_THANKS",
72
72
  "SEE_MORE",
73
73
  "SELL_NOW",
74
+ "SEND_A_GIFT",
74
75
  "SHARE",
75
76
  "SHOP_NOW",
76
77
  "SIGN_UP",
@@ -83,6 +83,7 @@ module FacebookAds
83
83
  "PAGE_ENGAGEMENT",
84
84
  "PAGE_LIKES",
85
85
  "POST_ENGAGEMENT",
86
+ "QUALITY_LEAD",
86
87
  "REACH",
87
88
  "REPLIES",
88
89
  "SOCIAL_IMPRESSIONS",
@@ -111,6 +112,7 @@ module FacebookAds
111
112
  "PAGE_ENGAGEMENT",
112
113
  "PAGE_LIKES",
113
114
  "POST_ENGAGEMENT",
115
+ "QUALITY_LEAD",
114
116
  "REACH",
115
117
  "REPLIES",
116
118
  "SOCIAL_IMPRESSIONS",
@@ -137,8 +139,6 @@ module FacebookAds
137
139
  field :bid_type_old, 'string'
138
140
  field :billing_event_new, { enum: -> { BILLING_EVENT_NEW }}
139
141
  field :billing_event_old, { enum: -> { BILLING_EVENT_OLD }}
140
- field :brande_audience_id_new, 'BrandAudience'
141
- field :brande_audience_id_old, 'BrandAudience'
142
142
  field :budget_limit_new, 'object'
143
143
  field :budget_limit_old, 'object'
144
144
  field :created_time, 'datetime'
@@ -45,6 +45,7 @@ module FacebookAds
45
45
  "PAGE_ENGAGEMENT",
46
46
  "PAGE_LIKES",
47
47
  "POST_ENGAGEMENT",
48
+ "QUALITY_LEAD",
48
49
  "REACH",
49
50
  "REPLIES",
50
51
  "SOCIAL_IMPRESSIONS",
@@ -77,6 +77,7 @@ module FacebookAds
77
77
  "SAY_THANKS",
78
78
  "SEE_MORE",
79
79
  "SELL_NOW",
80
+ "SEND_A_GIFT",
80
81
  "SHARE",
81
82
  "SHOP_NOW",
82
83
  "SIGN_UP",
@@ -71,6 +71,7 @@ module FacebookAds
71
71
  "SAY_THANKS",
72
72
  "SEE_MORE",
73
73
  "SELL_NOW",
74
+ "SEND_A_GIFT",
74
75
  "SHARE",
75
76
  "SHOP_NOW",
76
77
  "SIGN_UP",
@@ -57,7 +57,6 @@ module FacebookAds
57
57
  "RIGHT_COLUMN_STANDARD",
58
58
  "SUGGESTED_VIDEO_DESKTOP",
59
59
  "SUGGESTED_VIDEO_MOBILE",
60
- "WATCH_FEED_HOME",
61
60
  "WATCH_FEED_MOBILE",
62
61
  ]
63
62
 
@@ -81,6 +81,7 @@ module FacebookAds
81
81
  "PAGE_ENGAGEMENT",
82
82
  "PAGE_LIKES",
83
83
  "POST_ENGAGEMENT",
84
+ "QUALITY_LEAD",
84
85
  "REACH",
85
86
  "REPLIES",
86
87
  "SOCIAL_IMPRESSIONS",
@@ -163,6 +164,7 @@ module FacebookAds
163
164
  "CREDIT",
164
165
  "EMPLOYMENT",
165
166
  "HOUSING",
167
+ "ISSUES_ELECTIONS_POLITICS",
166
168
  "NONE",
167
169
  ]
168
170
 
@@ -69,6 +69,7 @@ module FacebookAds
69
69
  api.has_param :name, 'string'
70
70
  api.has_param :offline_conversion_data_sets, { list: 'object' }
71
71
  api.has_param :offsitepixels, { list: 'object' }
72
+ api.has_param :product_catalogs, { list: 'object' }
72
73
  api.has_param :product_sets, { list: 'object' }
73
74
  api.has_param :type, { enum: -> { AdStudyObjective::TYPE }}
74
75
  end
@@ -77,6 +77,7 @@ module FacebookAds
77
77
  "HEURISTIC_CLUSTER_VIDEO",
78
78
  "HEURISTIC_PREVIEW",
79
79
  "HIGHLIGHT_CLIP_VIDEO",
80
+ "IG_STORIES_READER",
80
81
  "INSPIRATION_VIDEO",
81
82
  "INSTAGRAM_VIDEO_COPY",
82
83
  "INSTANT_APPLICATION_PREVIEW",
@@ -97,6 +98,7 @@ module FacebookAds
97
98
  "MOMENTS_VIDEO",
98
99
  "NEO_ASYNC_GAME_VIDEO",
99
100
  "NO_STORY",
101
+ "NO_STORY_WITH_ENTPOST",
100
102
  "OCULUS_CREATOR_PORTAL",
101
103
  "OCULUS_VENUES_BROADCAST",
102
104
  "OFFERS_VIDEO",
@@ -134,6 +136,7 @@ module FacebookAds
134
136
  "VIDEO_CREATIVE_EDITOR_AUTOGEN_AD_VIDEO",
135
137
  "VIDEO_SUPERRES",
136
138
  "WOODHENGE",
139
+ "WORK_KNOWLEDGE_VIDEO",
137
140
  "YOUR_DAY",
138
141
  ]
139
142
 
@@ -165,7 +168,6 @@ module FacebookAds
165
168
 
166
169
  ORIGINAL_PROJECTION_TYPE = [
167
170
  "cubemap",
168
- "equiangular_cubemap",
169
171
  "equirectangular",
170
172
  "half_equirectangular",
171
173
  ]
@@ -191,29 +193,6 @@ module FacebookAds
191
193
  "transfer",
192
194
  ]
193
195
 
194
- VALIDATION_AD_PLACEMENTS = [
195
- "AUDIENCE_NETWORK_INSTREAM_VIDEO",
196
- "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE",
197
- "AUDIENCE_NETWORK_REWARDED_VIDEO",
198
- "DESKTOP_FEED_STANDARD",
199
- "FACEBOOK_STORY_MOBILE",
200
- "INSTAGRAM_STANDARD",
201
- "INSTAGRAM_STORY",
202
- "INSTANT_ARTICLE_STANDARD",
203
- "INSTREAM_VIDEO_DESKTOP",
204
- "INSTREAM_VIDEO_IMAGE",
205
- "INSTREAM_VIDEO_MOBILE",
206
- "MESSENGER_MOBILE_INBOX_MEDIA",
207
- "MESSENGER_MOBILE_STORY_MEDIA",
208
- "MOBILE_FEED_STANDARD",
209
- "MOBILE_FULLWIDTH",
210
- "MOBILE_INTERSTITIAL",
211
- "MOBILE_MEDIUM_RECTANGLE",
212
- "MOBILE_NATIVE",
213
- "RIGHT_COLUMN_STANDARD",
214
- "SUGGESTED_VIDEO_MOBILE",
215
- ]
216
-
217
196
  TYPE = [
218
197
  "tagged",
219
198
  "uploaded",
@@ -284,6 +263,7 @@ module FacebookAds
284
263
  field :composer_source_surface, 'string'
285
264
  field :composer_type, 'string'
286
265
  field :container_type, { enum: -> { CONTAINER_TYPE }}
266
+ field :creative_tools, 'string'
287
267
  field :end_offset, 'int'
288
268
  field :fbuploader_video_file_chunk, 'string'
289
269
  field :file_size, 'int'
@@ -332,11 +312,9 @@ module FacebookAds
332
312
  field :upload_session_id, 'string'
333
313
  field :upload_setting_properties, 'string'
334
314
  field :video_file_chunk, 'string'
315
+ field :video_id_original, 'string'
335
316
  field :video_start_time_ms, 'int'
336
317
  field :waterfall_id, 'string'
337
- field :ad_placements_validation_only, 'bool'
338
- field :creative_folder_id, 'string'
339
- field :validation_ad_placements, { list: { enum: -> { VALIDATION_AD_PLACEMENTS }} }
340
318
 
341
319
  has_edge :captions do |edge|
342
320
  edge.get
@@ -29,12 +29,16 @@ module FacebookAds
29
29
 
30
30
  field :account_admin, 'hash'
31
31
  field :ad, 'hash'
32
+ field :ads_conversion_experiences, 'hash'
32
33
  field :b2c, 'hash'
34
+ field :b2c_commerce_unified, 'hash'
33
35
  field :bsg, 'hash'
34
36
  field :city_community, 'hash'
37
+ field :commerce, 'hash'
35
38
  field :daily_deals, 'hash'
36
39
  field :daily_deals_legacy, 'hash'
37
40
  field :dpa, 'hash'
41
+ field :dri_copyright, 'hash'
38
42
  field :dri_counterfeit, 'hash'
39
43
  field :facebook, 'hash'
40
44
  field :facebook_pages_live_shopping, 'hash'
@@ -25,15 +25,28 @@ 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 AdsInterest < AdObject
28
+ class AdoptablePet < AdObject
29
29
 
30
- field :audience_size, 'int'
30
+ field :address, 'object'
31
+ field :adoptable_pet_id, 'string'
32
+ field :adoption_application_form_url, 'string'
33
+ field :age_bucket, 'string'
34
+ field :animal_type, 'string'
35
+ field :applinks, 'CatalogItemAppLinks'
36
+ field :availability, 'string'
37
+ field :breed, 'string'
38
+ field :currency, 'string'
31
39
  field :description, 'string'
32
- field :disambiguation_category, 'string'
40
+ field :gender, 'string'
33
41
  field :id, 'string'
42
+ field :images, { list: 'string' }
34
43
  field :name, 'string'
35
- field :path, { list: 'string' }
36
- field :topic, 'string'
44
+ field :price, 'string'
45
+ field :sanitized_images, { list: 'string' }
46
+ field :shelter_name, 'string'
47
+ field :shelter_page_id, 'Page'
48
+ field :size, 'string'
49
+ field :url, 'string'
37
50
  has_no_post
38
51
  has_no_delete
39
52
 
@@ -153,6 +153,7 @@ module FacebookAds
153
153
  field :campaign_name, 'string'
154
154
  field :canvas_avg_view_percent, 'string'
155
155
  field :canvas_avg_view_time, 'string'
156
+ field :catalog_segment_actions, { list: 'AdsActionStats' }
156
157
  field :catalog_segment_value, { list: 'AdsActionStats' }
157
158
  field :catalog_segment_value_mobile_purchase_roas, { list: 'AdsActionStats' }
158
159
  field :catalog_segment_value_omni_purchase_roas, { list: 'AdsActionStats' }
@@ -161,6 +162,8 @@ module FacebookAds
161
162
  field :conversion_rate_ranking, 'string'
162
163
  field :conversion_values, { list: 'AdsActionStats' }
163
164
  field :conversions, { list: 'AdsActionStats' }
165
+ field :converted_product_quantity, { list: 'AdsActionStats' }
166
+ field :converted_product_value, { list: 'AdsActionStats' }
164
167
  field :cost_per_15_sec_video_view, { list: 'AdsActionStats' }
165
168
  field :cost_per_2_sec_continuous_video_view, { list: 'AdsActionStats' }
166
169
  field :cost_per_action_type, { list: 'AdsActionStats' }
@@ -205,6 +208,7 @@ module FacebookAds
205
208
  field :instant_experience_clicks_to_open, 'string'
206
209
  field :instant_experience_clicks_to_start, 'string'
207
210
  field :instant_experience_outbound_clicks, 'string'
211
+ field :interactive_component_tap, { list: 'AdsActionStats' }
208
212
  field :labels, 'string'
209
213
  field :location, 'string'
210
214
  field :mobile_app_purchase_roas, { list: 'AdsActionStats' }
@@ -35,6 +35,7 @@ module FacebookAds
35
35
  "IPAD",
36
36
  "IPHONE",
37
37
  "MOBILE_WEB",
38
+ "OCULUS",
38
39
  "SUPPLEMENTARY_IMAGES",
39
40
  "WEB",
40
41
  "WINDOWS",
@@ -229,6 +230,9 @@ module FacebookAds
229
230
  api.has_param :consider_views, 'bool'
230
231
  api.has_param :custom_events, { list: 'object' }
231
232
  api.has_param :custom_events_file, 'file'
233
+ api.has_param :data_processing_options, { list: 'string' }
234
+ api.has_param :data_processing_options_country, 'int'
235
+ api.has_param :data_processing_options_state, 'int'
232
236
  api.has_param :device_token, 'string'
233
237
  api.has_param :event, { enum: %w{CUSTOM_APP_EVENTS DEFERRED_APP_LINK MOBILE_APP_INSTALL }}
234
238
  api.has_param :extinfo, 'object'
@@ -142,8 +142,8 @@ module FacebookAds
142
142
 
143
143
  has_edge :metrics_breakdown do |edge|
144
144
  edge.get do |api|
145
- api.has_param :dimensions, { list: { enum: %w{DEVICE_TYPE SOURCE_CHANNEL }} }
146
- api.has_param :granularity, { enum: %w{DAY HOUR MONTH WEEK YEAR }}
145
+ api.has_param :dimensions, { list: { enum: %w{AD_ID AD_SET_ID CAMPAIGN_ID DEVICE_TYPE SOURCE_CHANNEL }} }
146
+ api.has_param :granularity, { enum: %w{DAY HOUR MONTH WEEK_SUNDAY YEAR }}
147
147
  api.has_param :metric_scope, 'hash'
148
148
  api.has_param :order_by, { list: 'string' }
149
149
  end
@@ -60,9 +60,6 @@ module FacebookAds
60
60
  PERMITTED_TASKS = [
61
61
  "ADVERTISE",
62
62
  "ANALYZE",
63
- "CREATIVE",
64
- "DRAFT",
65
- "FB_EMPLOYEE_DSO_ADVERTISE",
66
63
  "MANAGE",
67
64
  ]
68
65
 
@@ -214,13 +211,6 @@ module FacebookAds
214
211
  edge.get 'AdPlacement'
215
212
  end
216
213
 
217
- has_edge :attempted_sharing_agreements do |edge|
218
- edge.get 'BusinessCreativeFolderSharingAgreement' do |api|
219
- api.has_param :request_status, { enum: -> { BusinessCreativeFolderSharingAgreement::REQUEST_STATUS }}
220
- api.has_param :requesting_business_id, 'string'
221
- end
222
- end
223
-
224
214
  has_edge :block_list_drafts do |edge|
225
215
  edge.post 'Business' do |api|
226
216
  api.has_param :publisher_urls_file, 'file'
@@ -317,25 +307,6 @@ module FacebookAds
317
307
  end
318
308
  end
319
309
 
320
- has_edge :creative_asset_tags do |edge|
321
- edge.get 'CreativeAssetTag'
322
- end
323
-
324
- has_edge :creative_folders do |edge|
325
- edge.get 'BusinessCreativeFolder'
326
- edge.post 'BusinessCreativeFolder' do |api|
327
- api.has_param :description, 'string'
328
- api.has_param :name, 'string'
329
- api.has_param :parent_folder_id, 'string'
330
- end
331
- end
332
-
333
- has_edge :creatives do |edge|
334
- edge.get 'BusinessCreative' do |api|
335
- api.has_param :creative_folder_id, 'string'
336
- end
337
- end
338
-
339
310
  has_edge :customconversions do |edge|
340
311
  edge.post 'CustomConversion' do |api|
341
312
  api.has_param :advanced_rule, 'string'
@@ -362,16 +333,6 @@ module FacebookAds
362
333
  end
363
334
  end
364
335
 
365
- has_edge :images do |edge|
366
- edge.post 'BusinessImage' do |api|
367
- api.has_param :ad_placements_validation_only, 'bool'
368
- api.has_param :bytes, 'object'
369
- api.has_param :creative_folder_id, 'string'
370
- api.has_param :name, 'string'
371
- api.has_param :validation_ad_placements, { list: { enum: -> { BusinessImage::VALIDATION_AD_PLACEMENTS }} }
372
- end
373
- end
374
-
375
336
  has_edge :initiated_audience_sharing_requests do |edge|
376
337
  edge.get 'BusinessAssetSharingAgreement' do |api|
377
338
  api.has_param :recipient_id, 'string'
@@ -517,10 +478,6 @@ module FacebookAds
517
478
  edge.get 'BusinessPageRequest'
518
479
  end
519
480
 
520
- has_edge :pending_shared_creative_folders do |edge|
521
- edge.get 'BusinessCreativeFolder'
522
- end
523
-
524
481
  has_edge :pending_users do |edge|
525
482
  edge.get 'BusinessRoleRequest' do |api|
526
483
  api.has_param :email, 'string'
@@ -529,6 +486,7 @@ module FacebookAds
529
486
 
530
487
  has_edge :picture do |edge|
531
488
  edge.get 'ProfilePictureSource' do |api|
489
+ api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
532
490
  api.has_param :height, 'int'
533
491
  api.has_param :redirect, 'bool'
534
492
  api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
@@ -580,83 +538,5 @@ module FacebookAds
580
538
  end
581
539
  end
582
540
 
583
- has_edge :videos do |edge|
584
- edge.post 'AdVideo' do |api|
585
- api.has_param :ad_placements_validation_only, 'bool'
586
- api.has_param :adaptive_type, 'string'
587
- api.has_param :animated_effect_id, 'int'
588
- api.has_param :application_id, 'string'
589
- api.has_param :asked_fun_fact_prompt_id, 'int'
590
- api.has_param :attribution_app_id, 'string'
591
- api.has_param :audio_story_wave_animation_handle, 'string'
592
- api.has_param :chunk_session_id, 'string'
593
- api.has_param :composer_entry_picker, 'string'
594
- api.has_param :composer_entry_point, 'string'
595
- api.has_param :composer_entry_time, 'int'
596
- api.has_param :composer_session_events_log, 'string'
597
- api.has_param :composer_session_id, 'string'
598
- api.has_param :composer_source_surface, 'string'
599
- api.has_param :composer_type, 'string'
600
- api.has_param :container_type, { enum: -> { AdVideo::CONTAINER_TYPE }}
601
- api.has_param :content_category, { enum: -> { AdVideo::CONTENT_CATEGORY }}
602
- api.has_param :creative_folder_id, 'string'
603
- api.has_param :description, 'string'
604
- api.has_param :embeddable, 'bool'
605
- api.has_param :end_offset, 'int'
606
- api.has_param :fbuploader_video_file_chunk, 'string'
607
- api.has_param :file_size, 'int'
608
- api.has_param :file_url, 'string'
609
- api.has_param :fisheye_video_cropped, 'bool'
610
- api.has_param :formatting, { enum: -> { AdVideo::FORMATTING }}
611
- api.has_param :fov, 'int'
612
- api.has_param :front_z_rotation, 'double'
613
- api.has_param :fun_fact_prompt_id, 'int'
614
- api.has_param :fun_fact_toastee_id, 'int'
615
- api.has_param :guide, { list: { list: 'int' } }
616
- api.has_param :guide_enabled, 'bool'
617
- api.has_param :has_nickname, 'bool'
618
- api.has_param :holiday_card, 'string'
619
- api.has_param :initial_heading, 'int'
620
- api.has_param :initial_pitch, 'int'
621
- api.has_param :instant_game_entry_point_data, 'string'
622
- api.has_param :is_boost_intended, 'bool'
623
- api.has_param :is_group_linking_post, 'bool'
624
- api.has_param :is_voice_clip, 'bool'
625
- api.has_param :location_source_id, 'string'
626
- api.has_param :offer_like_post_id, 'int'
627
- api.has_param :og_action_type_id, 'string'
628
- api.has_param :og_icon_id, 'string'
629
- api.has_param :og_object_id, 'string'
630
- api.has_param :og_phrase, 'string'
631
- api.has_param :og_suggestion_mechanism, 'string'
632
- api.has_param :original_fov, 'int'
633
- api.has_param :original_projection_type, { enum: -> { AdVideo::ORIGINAL_PROJECTION_TYPE }}
634
- api.has_param :publish_event_id, 'int'
635
- api.has_param :react_mode_metadata, 'string'
636
- api.has_param :referenced_sticker_id, 'string'
637
- api.has_param :replace_video_id, 'string'
638
- api.has_param :sales_promo_id, 'int'
639
- api.has_param :slideshow_spec, 'hash'
640
- api.has_param :source, 'string'
641
- api.has_param :spherical, 'bool'
642
- api.has_param :start_offset, 'int'
643
- api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }}
644
- api.has_param :text_format_metadata, 'string'
645
- api.has_param :throwback_camera_roll_media, 'string'
646
- api.has_param :thumb, 'file'
647
- api.has_param :time_since_original_post, 'int'
648
- api.has_param :title, 'string'
649
- api.has_param :transcode_setting_properties, 'string'
650
- api.has_param :unpublished_content_type, { enum: -> { AdVideo::UNPUBLISHED_CONTENT_TYPE }}
651
- api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }}
652
- api.has_param :upload_session_id, 'string'
653
- api.has_param :upload_setting_properties, 'string'
654
- api.has_param :validation_ad_placements, { list: { enum: -> { AdVideo::VALIDATION_AD_PLACEMENTS }} }
655
- api.has_param :video_file_chunk, 'string'
656
- api.has_param :video_start_time_ms, 'int'
657
- api.has_param :waterfall_id, 'string'
658
- end
659
- end
660
-
661
541
  end
662
542
  end