facebookbusiness 0.14.0.0 → 0.15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +14 -20
  3. data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +1 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +8 -0
  5. data/lib/facebook_ads/ad_objects/{content_delivery_report.rb → ad_account_custom_audience.rb} +4 -58
  6. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
  7. data/lib/facebook_ads/ad_objects/ad_activity.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +2 -0
  9. data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -6
  11. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +2 -0
  12. data/lib/facebook_ads/ad_objects/ad_image.rb +1 -0
  13. data/lib/facebook_ads/ad_objects/ad_monetization_property.rb +1 -0
  14. data/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb +1 -0
  15. data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +1 -0
  16. data/lib/facebook_ads/ad_objects/ad_preview.rb +4 -0
  17. data/lib/facebook_ads/ad_objects/ad_rule.rb +1 -1
  18. data/lib/facebook_ads/ad_objects/ad_rule_history.rb +1 -0
  19. data/lib/facebook_ads/ad_objects/ad_set.rb +0 -10
  20. data/lib/facebook_ads/ad_objects/ad_study.rb +14 -1
  21. data/lib/facebook_ads/ad_objects/ad_video.rb +12 -0
  22. data/lib/facebook_ads/ad_objects/adgroup_metadata.rb +41 -0
  23. data/lib/facebook_ads/ad_objects/ads_insights.rb +4 -0
  24. data/lib/facebook_ads/ad_objects/ads_pixel.rb +5 -1
  25. data/lib/facebook_ads/ad_objects/application.rb +10 -0
  26. data/lib/facebook_ads/ad_objects/business.rb +27 -25
  27. data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
  28. data/lib/facebook_ads/ad_objects/business_partner_premium_options.rb +39 -0
  29. data/lib/facebook_ads/ad_objects/business_user.rb +1 -0
  30. data/lib/facebook_ads/ad_objects/campaign.rb +3 -11
  31. data/lib/facebook_ads/ad_objects/canvas.rb +2 -1
  32. data/lib/facebook_ads/ad_objects/{third_party_measurement_report_dataset.rb → canvas_dynamic_setting.rb} +4 -5
  33. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +11 -0
  34. data/lib/facebook_ads/ad_objects/crm_address.rb +48 -0
  35. data/lib/facebook_ads/ad_objects/custom_audience.rb +1 -0
  36. data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
  37. data/lib/facebook_ads/ad_objects/event.rb +22 -26
  38. data/lib/facebook_ads/ad_objects/event_source_group.rb +1 -0
  39. data/lib/facebook_ads/ad_objects/experience.rb +1 -1
  40. data/lib/facebook_ads/ad_objects/extended_credit.rb +3 -0
  41. data/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb +3 -0
  42. data/lib/facebook_ads/ad_objects/group.rb +0 -70
  43. data/lib/facebook_ads/ad_objects/ig_user.rb +1 -0
  44. data/lib/facebook_ads/ad_objects/{canvas_template.rb → igbc_ads_permission.rb} +2 -13
  45. data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +3 -3
  46. data/lib/facebook_ads/ad_objects/instagram_user.rb +1 -0
  47. data/lib/facebook_ads/ad_objects/leadgen_form.rb +1 -0
  48. data/lib/facebook_ads/ad_objects/media_title.rb +79 -0
  49. data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +2 -0
  50. data/lib/facebook_ads/ad_objects/page.rb +39 -12
  51. data/lib/facebook_ads/ad_objects/private_lift_study_instance.rb +2 -0
  52. data/lib/facebook_ads/ad_objects/product_catalog.rb +9 -3
  53. data/lib/facebook_ads/ad_objects/product_feed.rb +8 -2
  54. data/lib/facebook_ads/ad_objects/product_item.rb +10 -0
  55. data/lib/facebook_ads/ad_objects/product_set.rb +7 -0
  56. data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
  57. data/lib/facebook_ads/ad_objects/shop.rb +1 -0
  58. data/lib/facebook_ads/ad_objects/user.rb +9 -9
  59. data/lib/facebook_ads/ad_objects/user_page_one_time_opt_in_token_settings.rb +44 -0
  60. data/lib/facebook_ads/ad_objects/vehicle.rb +1 -0
  61. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +11 -2
  62. data/lib/facebook_ads/ad_objects/whats_app_business_pre_verified_phone_number.rb +37 -0
  63. data/lib/facebook_ads/version.rb +2 -2
  64. metadata +11 -5
@@ -72,6 +72,7 @@ module FacebookAds
72
72
  field :block_display_for_non_targeted_viewer, 'bool'
73
73
  field :context_card, 'object'
74
74
  field :created_time, 'datetime'
75
+ field :creator, 'User'
75
76
  field :expired_leads_count, 'int'
76
77
  field :follow_up_action_text, 'string'
77
78
  field :follow_up_action_url, 'string'
@@ -0,0 +1,79 @@
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 MediaTitle < AdObject
29
+ IMAGE_FETCH_STATUS = [
30
+ "DIRECT_UPLOAD",
31
+ "FETCHED",
32
+ "FETCH_FAILED",
33
+ "NO_STATUS",
34
+ "OUTDATED",
35
+ "PARTIAL_FETCH",
36
+ ]
37
+
38
+ CONTENT_CATEGORY = [
39
+ "MOVIE",
40
+ "MUSIC",
41
+ "TV_SHOW",
42
+ ]
43
+
44
+
45
+ field :applinks, 'CatalogItemAppLinks'
46
+ field :category_specific_fields, 'CatalogSubVerticalList'
47
+ field :content_category, 'string'
48
+ field :currency, 'string'
49
+ field :description, 'string'
50
+ field :fb_page_alias, 'string'
51
+ field :fb_page_id, 'Page'
52
+ field :genres, { list: 'string' }
53
+ field :id, 'string'
54
+ field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
55
+ field :images, { list: 'string' }
56
+ field :kg_fb_id, 'string'
57
+ field :media_title_id, 'string'
58
+ field :price, 'string'
59
+ field :sanitized_images, { list: 'string' }
60
+ field :title, 'string'
61
+ field :title_display_name, 'string'
62
+ field :unit_price, 'object'
63
+ field :url, 'string'
64
+ field :wiki_data_item, 'string'
65
+
66
+ has_edge :augmented_realities_metadata do |edge|
67
+ edge.get
68
+ end
69
+
70
+ has_edge :channels_to_integrity_status do |edge|
71
+ edge.get 'CatalogItemChannelsToIntegrityStatus'
72
+ end
73
+
74
+ has_edge :videos_metadata do |edge|
75
+ edge.get
76
+ end
77
+
78
+ end
79
+ end
@@ -44,6 +44,7 @@ module FacebookAds
44
44
  field :business, 'Business'
45
45
  field :config, 'string'
46
46
  field :creation_time, 'datetime'
47
+ field :creator, 'User'
47
48
  field :description, 'string'
48
49
  field :duplicate_entries, 'int'
49
50
  field :enable_auto_assign_to_accounts, 'bool'
@@ -59,6 +60,7 @@ module FacebookAds
59
60
  field :match_rate_approx, 'int'
60
61
  field :matched_entries, 'int'
61
62
  field :name, 'string'
63
+ field :owner_business, 'Business'
62
64
  field :usage, 'OfflineConversionDataSetUsage'
63
65
  field :valid_entries, 'int'
64
66
  field :auto_assign_to_new_accounts_only, 'bool'
@@ -487,6 +487,7 @@ module FacebookAds
487
487
  field :new_like_count, 'int'
488
488
  field :offer_eligible, 'bool'
489
489
  field :overall_star_rating, 'double'
490
+ field :owner_business, 'Business'
490
491
  field :page_token, 'string'
491
492
  field :parent_page, 'Page'
492
493
  field :parking, 'PageParking'
@@ -570,6 +571,10 @@ module FacebookAds
570
571
  edge.get 'Album'
571
572
  end
572
573
 
574
+ has_edge :ar_experience do |edge|
575
+ edge.get
576
+ end
577
+
573
578
  has_edge :assigned_users do |edge|
574
579
  edge.delete do |api|
575
580
  api.has_param :user, 'int'
@@ -767,6 +772,10 @@ module FacebookAds
767
772
  end
768
773
  end
769
774
 
775
+ has_edge :fantasy_games do |edge|
776
+ edge.get
777
+ end
778
+
770
779
  has_edge :feed do |edge|
771
780
  edge.get 'PagePost' do |api|
772
781
  api.has_param :include_hidden, 'bool'
@@ -977,6 +986,17 @@ module FacebookAds
977
986
  edge.get
978
987
  end
979
988
 
989
+ has_edge :invoice_access_invoice_edit do |edge|
990
+ edge.post do |api|
991
+ api.has_param :additional_amounts, { list: 'hash' }
992
+ api.has_param :invoice_id, 'string'
993
+ api.has_param :notes, 'string'
994
+ api.has_param :paid_amount, 'hash'
995
+ api.has_param :product_items, { list: 'hash' }
996
+ api.has_param :shipping_address, 'hash'
997
+ end
998
+ end
999
+
980
1000
  has_edge :leadgen_forms do |edge|
981
1001
  edge.get 'LeadgenForm'
982
1002
  edge.post 'LeadgenForm' do |api|
@@ -1023,7 +1043,6 @@ module FacebookAds
1023
1043
  api.has_param :is_audio_only, 'bool'
1024
1044
  api.has_param :is_spherical, 'bool'
1025
1045
  api.has_param :original_fov, 'int'
1026
- api.has_param :planned_start_time, 'int'
1027
1046
  api.has_param :privacy, 'string'
1028
1047
  api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
1029
1048
  api.has_param :published, 'bool'
@@ -1097,6 +1116,7 @@ module FacebookAds
1097
1116
  api.has_param :recipient, 'object'
1098
1117
  api.has_param :sender_action, { enum: -> { Page::SENDER_ACTION }}
1099
1118
  api.has_param :tag, 'object'
1119
+ api.has_param :thread_control, 'object'
1100
1120
  end
1101
1121
  end
1102
1122
 
@@ -1137,6 +1157,10 @@ module FacebookAds
1137
1157
  end
1138
1158
  end
1139
1159
 
1160
+ has_edge :notification_message_tokens do |edge|
1161
+ edge.get 'UserPageOneTimeOptInTokenSettings'
1162
+ end
1163
+
1140
1164
  has_edge :notification_messages_dev_support do |edge|
1141
1165
  edge.post 'Page' do |api|
1142
1166
  api.has_param :developer_action, { enum: -> { Page::DEVELOPER_ACTION }}
@@ -1364,20 +1388,9 @@ module FacebookAds
1364
1388
  end
1365
1389
 
1366
1390
  has_edge :tabs do |edge|
1367
- edge.delete do |api|
1368
- api.has_param :tab, 'string'
1369
- end
1370
1391
  edge.get 'Tab' do |api|
1371
1392
  api.has_param :tab, { list: 'string' }
1372
1393
  end
1373
- edge.post 'Page' do |api|
1374
- api.has_param :app_id, 'int'
1375
- api.has_param :custom_image_url, 'string'
1376
- api.has_param :custom_name, 'string'
1377
- api.has_param :is_non_connection_landing_tab, 'bool'
1378
- api.has_param :position, 'int'
1379
- api.has_param :tab, 'string'
1380
- end
1381
1394
  end
1382
1395
 
1383
1396
  has_edge :tagged do |edge|
@@ -1444,6 +1457,20 @@ module FacebookAds
1444
1457
  edge.get 'VideoList'
1445
1458
  end
1446
1459
 
1460
+ has_edge :video_reels do |edge|
1461
+ edge.get 'AdVideo'
1462
+ edge.post 'AdVideo' do |api|
1463
+ api.has_param :description, 'string'
1464
+ api.has_param :feed_targeting, 'object'
1465
+ api.has_param :scheduled_publish_time, 'datetime'
1466
+ api.has_param :targeting, 'object'
1467
+ api.has_param :title, 'string'
1468
+ api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }}
1469
+ api.has_param :video_id, 'object'
1470
+ api.has_param :video_state, { enum: -> { AdVideo::VIDEO_STATE }}
1471
+ end
1472
+ end
1473
+
1447
1474
  has_edge :videos do |edge|
1448
1475
  edge.get 'AdVideo' do |api|
1449
1476
  api.has_param :type, { enum: -> { AdVideo::TYPE }}
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  class PrivateLiftStudyInstance < AdObject
29
29
  OPERATION = [
30
30
  "AGGREGATE",
31
+ "CANCEL",
31
32
  "COMPUTE",
32
33
  "ID_MATCH",
33
34
  "NEXT",
@@ -40,6 +41,7 @@ module FacebookAds
40
41
  field :feature_list, { list: 'string' }
41
42
  field :id, 'string'
42
43
  field :latest_status_update_time, 'datetime'
44
+ field :run_id, 'string'
43
45
  field :server_ips, { list: 'string' }
44
46
  field :status, 'string'
45
47
  field :tier, 'string'
@@ -96,15 +96,17 @@ module FacebookAds
96
96
 
97
97
 
98
98
  field :business, 'Business'
99
+ field :catalog_store, 'StoreCatalogSettings'
99
100
  field :commerce_merchant_settings, 'CommerceMerchantSettings'
101
+ field :creator_user, 'User'
100
102
  field :da_display_settings, 'ProductCatalogImageSettings'
101
103
  field :default_image_url, 'string'
102
104
  field :fallback_image_url, { list: 'string' }
103
105
  field :feed_count, 'int'
104
106
  field :id, 'string'
105
107
  field :is_catalog_segment, 'bool'
106
- field :latest_feed_upload_session, 'ProductFeedUpload'
107
108
  field :name, 'string'
109
+ field :owner_business, 'Business'
108
110
  field :product_count, 'int'
109
111
  field :store_catalog_settings, 'StoreCatalogSettings'
110
112
  field :vertical, 'string'
@@ -326,9 +328,13 @@ module FacebookAds
326
328
  end
327
329
 
328
330
  has_edge :media_titles do |edge|
329
- edge.post do |api|
331
+ edge.get 'MediaTitle' do |api|
332
+ api.has_param :bulk_pagination, 'bool'
333
+ api.has_param :filter, 'object'
334
+ end
335
+ edge.post 'MediaTitle' do |api|
330
336
  api.has_param :applinks, 'object'
331
- api.has_param :content_category, { enum: %w{MOVIE MUSIC TV_SHOW }}
337
+ api.has_param :content_category, { enum: -> { MediaTitle::CONTENT_CATEGORY }}
332
338
  api.has_param :currency, 'string'
333
339
  api.has_param :description, 'string'
334
340
  api.has_param :fb_page_id, 'string'
@@ -57,7 +57,6 @@ module FacebookAds
57
57
  ]
58
58
 
59
59
  FEED_TYPE = [
60
- "AUTO",
61
60
  "AUTOMOTIVE_MODEL",
62
61
  "DESTINATION",
63
62
  "FLIGHT",
@@ -65,7 +64,6 @@ module FacebookAds
65
64
  "HOTEL",
66
65
  "HOTEL_ROOM",
67
66
  "LOCAL_INVENTORY",
68
- "MARKET",
69
67
  "MEDIA_TITLE",
70
68
  "OFFER",
71
69
  "PRODUCTS",
@@ -104,6 +102,7 @@ module FacebookAds
104
102
  ]
105
103
 
106
104
  OVERRIDE_TYPE = [
105
+ "BATCH_API_LANGUAGE_OR_COUNTRY",
107
106
  "CATALOG_SEGMENT_CUSTOMIZE_DEFAULT",
108
107
  "COUNTRY",
109
108
  "LANGUAGE",
@@ -173,6 +172,13 @@ module FacebookAds
173
172
  end
174
173
  end
175
174
 
175
+ has_edge :media_titles do |edge|
176
+ edge.get 'MediaTitle' do |api|
177
+ api.has_param :bulk_pagination, 'bool'
178
+ api.has_param :filter, 'object'
179
+ end
180
+ end
181
+
176
182
  has_edge :products do |edge|
177
183
  edge.get 'ProductItem' do |api|
178
184
  api.has_param :bulk_pagination, 'bool'
@@ -317,6 +317,12 @@ module FacebookAds
317
317
  "DUPLICATE_TITLE_AND_DESCRIPTION",
318
318
  "GENERIC_INVALID_FIELD",
319
319
  "HIDDEN_UNTIL_PRODUCT_LAUNCH",
320
+ "IMAGE_FETCH_FAILED",
321
+ "IMAGE_FETCH_FAILED_BAD_GATEWAY",
322
+ "IMAGE_FETCH_FAILED_FILE_SIZE_EXCEEDED",
323
+ "IMAGE_FETCH_FAILED_FORBIDDEN",
324
+ "IMAGE_FETCH_FAILED_LINK_BROKEN",
325
+ "IMAGE_FETCH_FAILED_TIMED_OUT",
320
326
  "IMAGE_RESOLUTION_LOW",
321
327
  "INACTIVE_SHOPIFY_PRODUCT",
322
328
  "INVALID_COMMERCE_TAX_CATEGORY",
@@ -342,9 +348,12 @@ module FacebookAds
342
348
  "MISSING_SHIPPING_PROFILE",
343
349
  "MISSING_SIZE",
344
350
  "MISSING_TAX_CATEGORY",
351
+ "NEGATIVE_COMMUNITY_FEEDBACK",
345
352
  "NOT_ENOUGH_IMAGES",
346
353
  "PART_OF_PRODUCT_LAUNCH",
347
354
  "PRODUCT_EXPIRED",
355
+ "PRODUCT_ITEM_HIDDEN_FROM_ALL_SHOPS",
356
+ "PRODUCT_ITEM_NOT_INCLUDED_IN_ANY_SHOP",
348
357
  "PRODUCT_ITEM_NOT_VISIBLE",
349
358
  "PRODUCT_NOT_APPROVED",
350
359
  "PRODUCT_NOT_DOMINANT_CURRENCY",
@@ -690,6 +699,7 @@ module FacebookAds
690
699
  field :origin_country, 'string'
691
700
  field :parent_product_id, 'string'
692
701
  field :pattern, 'string'
702
+ field :post_conversion_signal_based_enforcement_appeal_eligibility, 'bool'
693
703
  field :price, 'string'
694
704
  field :product_catalog, 'ProductCatalog'
695
705
  field :product_feed, 'ProductFeed'
@@ -75,6 +75,13 @@ module FacebookAds
75
75
  end
76
76
  end
77
77
 
78
+ has_edge :media_titles do |edge|
79
+ edge.get 'MediaTitle' do |api|
80
+ api.has_param :bulk_pagination, 'bool'
81
+ api.has_param :filter, 'object'
82
+ end
83
+ end
84
+
78
85
  has_edge :products do |edge|
79
86
  edge.get 'ProductItem' do |api|
80
87
  api.has_param :bulk_pagination, 'bool'
@@ -36,6 +36,7 @@ module FacebookAds
36
36
  field :id, 'string'
37
37
  field :name, 'string'
38
38
  field :operation_status, 'CustomAudienceStatus'
39
+ field :owner_business, 'Business'
39
40
  field :page_deletion_marked_delete_time, 'int'
40
41
  field :permission_for_actions, 'AudiencePermissionForActions'
41
42
  field :run_status, 'string'
@@ -30,6 +30,7 @@ module FacebookAds
30
30
  field :fb_sales_channel, 'object'
31
31
  field :id, 'string'
32
32
  field :ig_sales_channel, 'object'
33
+ field :workspace, 'object'
33
34
  has_no_post
34
35
  has_no_delete
35
36
 
@@ -81,7 +81,7 @@ module FacebookAds
81
81
  field :profile_pic, 'string'
82
82
  field :quotes, 'string'
83
83
  field :relationship_status, 'string'
84
- field :shared_login_upgrade_required_by, 'datetime'
84
+ field :shared_login_upgrade_required_by, 'object'
85
85
  field :short_name, 'string'
86
86
  field :significant_other, 'User'
87
87
  field :sports, { list: 'Experience' }
@@ -186,6 +186,10 @@ module FacebookAds
186
186
  edge.get 'ProductCatalog'
187
187
  end
188
188
 
189
+ has_edge :avatars do |edge|
190
+ edge.get
191
+ end
192
+
189
193
  has_edge :business_users do |edge|
190
194
  edge.get 'BusinessUser'
191
195
  end
@@ -442,7 +446,6 @@ module FacebookAds
442
446
  api.has_param :is_audio_only, 'bool'
443
447
  api.has_param :is_spherical, 'bool'
444
448
  api.has_param :original_fov, 'int'
445
- api.has_param :planned_start_time, 'int'
446
449
  api.has_param :privacy, 'string'
447
450
  api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
448
451
  api.has_param :published, 'bool'
@@ -466,9 +469,13 @@ module FacebookAds
466
469
  edge.post 'User' do |api|
467
470
  api.has_param :filtering, { list: { enum: -> { User::FILTERING }} }
468
471
  api.has_param :href, 'object'
472
+ api.has_param :label, 'string'
473
+ api.has_param :message, 'hash'
469
474
  api.has_param :notif_ids, { list: 'string' }
475
+ api.has_param :payload, 'string'
470
476
  api.has_param :read, 'bool'
471
477
  api.has_param :ref, 'string'
478
+ api.has_param :scheduleinterval, 'int'
472
479
  api.has_param :seen, 'bool'
473
480
  api.has_param :template, 'object'
474
481
  api.has_param :type, { enum: -> { User::TYPE }}
@@ -562,13 +569,6 @@ module FacebookAds
562
569
  end
563
570
  end
564
571
 
565
- has_edge :pioneer_data do |edge|
566
- edge.get
567
- edge.post do |api|
568
- api.has_param :json_data, 'string'
569
- end
570
- end
571
-
572
572
  has_edge :posts do |edge|
573
573
  edge.get 'Post' do |api|
574
574
  api.has_param :include_hidden, 'bool'
@@ -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 UserPageOneTimeOptInTokenSettings < AdObject
29
+
30
+ field :creation_timestamp, 'int'
31
+ field :notification_messages_frequency, 'string'
32
+ field :notification_messages_reoptin, 'string'
33
+ field :notification_messages_timezone, 'string'
34
+ field :notification_messages_token, 'string'
35
+ field :recipient_id, 'string'
36
+ field :token_expiry_timestamp, 'int'
37
+ field :topic_title, 'string'
38
+ field :user_token_status, 'string'
39
+ field :id, 'string'
40
+ has_no_post
41
+ has_no_delete
42
+
43
+ end
44
+ end
@@ -132,6 +132,7 @@ module FacebookAds
132
132
  field :condition, 'string'
133
133
  field :currency, 'string'
134
134
  field :custom_label_0, 'string'
135
+ field :custom_number_0, 'int'
135
136
  field :date_first_on_lot, 'string'
136
137
  field :dealer_communication_channel, 'string'
137
138
  field :dealer_email, 'string'
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  class WhatsAppBusinessAccount < AdObject
29
29
  TASKS = [
30
30
  "DEVELOP",
31
+ "FULL_CONTROL",
31
32
  "MANAGE",
32
33
  "MANAGE_PHONE",
33
34
  "MANAGE_TEMPLATES",
@@ -50,6 +51,7 @@ module FacebookAds
50
51
  field :message_template_namespace, 'string'
51
52
  field :name, 'string'
52
53
  field :on_behalf_of_business_info, 'object'
54
+ field :owner_business, 'Business'
53
55
  field :owner_business_info, 'object'
54
56
  field :primary_funding_id, 'string'
55
57
  field :purchase_order_number, 'string'
@@ -71,6 +73,10 @@ module FacebookAds
71
73
  end
72
74
  end
73
75
 
76
+ has_edge :audiences do |edge|
77
+ edge.get
78
+ end
79
+
74
80
  has_edge :conversation_analytics do |edge|
75
81
  edge.get do |api|
76
82
  api.has_param :conversation_directions, { list: { enum: %w{BUSINESS_INITIATED UNKNOWN USER_INITIATED }} }
@@ -96,7 +102,7 @@ module FacebookAds
96
102
  api.has_param :name, 'string'
97
103
  api.has_param :name_or_content, 'string'
98
104
  api.has_param :quality_score, { list: { enum: %w{GREEN RED UNKNOWN YELLOW }} }
99
- api.has_param :status, { list: { enum: %w{APPROVED DELETED DISABLED IN_APPEAL LOCKED PENDING PENDING_DELETION REJECTED }} }
105
+ api.has_param :status, { list: { enum: %w{APPROVED DELETED DISABLED IN_APPEAL LIMIT_EXCEEDED PAUSED PENDING PENDING_DELETION REJECTED }} }
100
106
  end
101
107
  edge.post 'WhatsAppBusinessAccount' do |api|
102
108
  api.has_param :category, { enum: -> { WhatsAppBusinessAccount::CATEGORY }}
@@ -128,7 +134,10 @@ module FacebookAds
128
134
  has_edge :subscribed_apps do |edge|
129
135
  edge.delete
130
136
  edge.get
131
- edge.post 'WhatsAppBusinessAccount'
137
+ edge.post 'WhatsAppBusinessAccount' do |api|
138
+ api.has_param :override_callback_uri, 'string'
139
+ api.has_param :verify_token, 'string'
140
+ end
132
141
  end
133
142
 
134
143
  end
@@ -0,0 +1,37 @@
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 WhatsAppBusinessPreVerifiedPhoneNumber < AdObject
29
+
30
+ field :code_verification_status, 'string'
31
+ field :id, 'string'
32
+ field :phone_number, 'string'
33
+ has_no_post
34
+ has_no_delete
35
+
36
+ end
37
+ end
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.14.0.0'
23
- API_VERSION = '14.0'
22
+ VERSION = '0.15.0.0'
23
+ API_VERSION = '15.0'
24
24
  end