facebookbusiness 0.3.0.2 → 0.3.0.3

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +31 -12
  3. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
  4. data/lib/facebook_ads/ad_objects/ad_activity.rb +2 -0
  5. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +2 -0
  6. data/lib/facebook_ads/ad_objects/ad_creative.rb +7 -0
  7. data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
  9. data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/ad_rule_trigger.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/audio_copyright.rb +1 -1
  13. data/lib/facebook_ads/ad_objects/business.rb +5 -3
  14. data/lib/facebook_ads/ad_objects/business_user.rb +2 -0
  15. data/lib/facebook_ads/ad_objects/custom_audience.rb +10 -0
  16. data/lib/facebook_ads/ad_objects/event.rb +4 -1
  17. data/lib/facebook_ads/ad_objects/extended_credit.rb +1 -0
  18. data/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb +1 -0
  19. data/lib/facebook_ads/ad_objects/lead.rb +1 -0
  20. data/lib/facebook_ads/ad_objects/lead_gen_legal_content.rb +1 -7
  21. data/lib/facebook_ads/ad_objects/live_video.rb +1 -1
  22. data/lib/facebook_ads/ad_objects/media_fingerprint.rb +1 -0
  23. data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +3 -2
  24. data/lib/facebook_ads/ad_objects/offsite_pixel.rb +2 -19
  25. data/lib/facebook_ads/ad_objects/owned_domain.rb +0 -1
  26. data/lib/facebook_ads/ad_objects/page.rb +12 -19
  27. data/lib/facebook_ads/ad_objects/page_saved_filter.rb +4 -0
  28. data/lib/facebook_ads/ad_objects/partner_integration_linked.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/product_catalog.rb +2 -1
  30. data/lib/facebook_ads/ad_objects/product_feed.rb +0 -3
  31. data/lib/facebook_ads/ad_objects/product_feed_upload_error.rb +7 -0
  32. data/lib/facebook_ads/ad_objects/product_group.rb +1 -0
  33. data/lib/facebook_ads/ad_objects/product_item.rb +5 -0
  34. data/lib/facebook_ads/ad_objects/shadow_ig_user.rb +3 -2
  35. data/lib/facebook_ads/ad_objects/targeting.rb +2 -1
  36. data/lib/facebook_ads/ad_objects/user.rb +1 -0
  37. data/lib/facebook_ads/session.rb +1 -2
  38. data/lib/facebook_ads/version.rb +1 -1
  39. metadata +2 -7
  40. data/lib/facebook_ads/ad_objects/direct_debit.rb +0 -45
  41. data/lib/facebook_ads/ad_objects/ent_with_sponsor.rb +0 -39
  42. data/lib/facebook_ads/ad_objects/persona.rb +0 -37
  43. data/lib/facebook_ads/ad_objects/transaction.rb +0 -51
  44. data/lib/facebook_ads/ad_objects/transaction_currency_amount.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 359da166cfea1ca59718d0bc849bf174fa8843ccb040345893f74e26be5c60f6
4
- data.tar.gz: 9504ad8b96c5fbe03b291d335f1b12ed80a13e160e80b2dce9153cf8902fa512
3
+ metadata.gz: 0eda0b9ae47fb55ce06afb9f3d41cd61596ddca217ac3591169ff39f060027cd
4
+ data.tar.gz: af8f25c9b3e56feecaf815a0f6a44f8eb8e157dded76d8d764747ec46359e4c2
5
5
  SHA512:
6
- metadata.gz: 13ec26ac56bff595a8d83cc70356b7634bae9ba2debb4e50a4009d45c81a50ede08cb002d9d6cd500e7d6597ca682a24af126a85ae8c8e350aef70d4ef223f73
7
- data.tar.gz: cfc314a4240511e8d5d7362a047b02c81f25462916de870535446a82621459f4549331082a8379632744c5a8d28cc89ee13d270073703c0f8f874db514416eec
6
+ metadata.gz: 83954a5eac8bb6074a206f66f4144a56317bfc997edead0da66d5181be0dda82a80afa1d38af8174ac61a763c0e6cc5b9f89e960a8f65709149f6d9ea0f32194
7
+ data.tar.gz: e10e102eff09d7391c59257e9ed3a2e6234064262ddaa2eafd9ff8a12fbef52d4548a02ec186aacebf998f9e287df791e6fec7fa7484cd7107b8b9979816ac48
@@ -26,7 +26,7 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class AdAccount < AdObject
29
- ROLE = [
29
+ PERMITTED_ROLES = [
30
30
  "ADMIN",
31
31
  "GENERAL_USER",
32
32
  "REPORTS_ONLY",
@@ -36,7 +36,7 @@ module FacebookAds
36
36
  "FB_EMPLOYEE_DSO_ADVERTISER",
37
37
  ]
38
38
 
39
- PERMITTED_ROLES = [
39
+ ROLE = [
40
40
  "ADMIN",
41
41
  "GENERAL_USER",
42
42
  "REPORTS_ONLY",
@@ -46,6 +46,23 @@ module FacebookAds
46
46
  "FB_EMPLOYEE_DSO_ADVERTISER",
47
47
  ]
48
48
 
49
+ SUBTYPE = [
50
+ "CUSTOM",
51
+ "WEBSITE",
52
+ "APP",
53
+ "OFFLINE_CONVERSION",
54
+ "CLAIM",
55
+ "PARTNER",
56
+ "MANAGED",
57
+ "VIDEO",
58
+ "LOOKALIKE",
59
+ "ENGAGEMENT",
60
+ "DATA_SET",
61
+ "BAG_OF_ACCOUNTS",
62
+ "STUDY_RULE_AUDIENCE",
63
+ "FOX",
64
+ ]
65
+
49
66
 
50
67
  field :account_id, 'string'
51
68
  field :account_status, 'int'
@@ -74,10 +91,12 @@ module FacebookAds
74
91
  field :funding_source, 'string'
75
92
  field :funding_source_details, 'FundingSourceDetails'
76
93
  field :has_migrated_permissions, 'bool'
94
+ field :has_page_authorized_adaccount, 'bool'
77
95
  field :id, 'string'
78
96
  field :io_number, 'string'
79
97
  field :is_attribution_spec_system_default, 'bool'
80
98
  field :is_direct_deals_enabled, 'bool'
99
+ field :is_in_middle_of_local_entity_migration, 'bool'
81
100
  field :is_notifications_enabled, 'bool'
82
101
  field :is_personal, 'int'
83
102
  field :is_prepay_account, 'bool'
@@ -101,6 +120,7 @@ module FacebookAds
101
120
  field :timezone_offset_hours_utc, 'double'
102
121
  field :tos_accepted, 'hash'
103
122
  field :user_role, 'string'
123
+ field :user_tos_accepted, 'hash'
104
124
  has_no_delete
105
125
 
106
126
  has_edge :activities do |edge|
@@ -134,6 +154,7 @@ module FacebookAds
134
154
  edge.post 'AdCreative' do |api|
135
155
  api.has_param :adlabels, { list: 'object' }
136
156
  api.has_param :applink_treatment, { enum: -> { AdCreative::APPLINK_TREATMENT }}
157
+ api.has_param :authorization_category, { enum: -> { AdCreative::AUTHORIZATION_CATEGORY }}
137
158
  api.has_param :body, 'string'
138
159
  api.has_param :branded_content_sponsor_page_id, 'string'
139
160
  api.has_param :dynamic_ad_voice, { enum: -> { AdCreative::DYNAMIC_AD_VOICE }}
@@ -198,7 +219,7 @@ module FacebookAds
198
219
  has_edge :adlanguage_assets do |edge|
199
220
  edge.post do |api|
200
221
  api.has_param :bodies, { list: 'object' }
201
- api.has_param :call_to_action_type, { enum: %w{OPEN_LINK LIKE_PAGE SHOP_NOW PLAY_GAME INSTALL_APP USE_APP CALL CALL_ME INSTALL_MOBILE_APP USE_MOBILE_APP MOBILE_DOWNLOAD BOOK_TRAVEL LISTEN_MUSIC WATCH_VIDEO LEARN_MORE SIGN_UP DOWNLOAD WATCH_MORE NO_BUTTON VISIT_PAGES_FEED APPLY_NOW BUY_NOW GET_OFFER GET_OFFER_VIEW BUY_TICKETS UPDATE_APP GET_DIRECTIONS BUY MESSAGE_PAGE DONATE SUBSCRIBE SAY_THANKS SELL_NOW SHARE DONATE_NOW GET_QUOTE CONTACT_US ORDER_NOW ADD_TO_CART VIDEO_ANNOTATION MOMENTS RECORD_NOW GET_SHOWTIMES LISTEN_NOW EVENT_RSVP WHATSAPP_MESSAGE }}
222
+ api.has_param :call_to_action_type, { enum: %w{OPEN_LINK LIKE_PAGE SHOP_NOW PLAY_GAME INSTALL_APP USE_APP CALL CALL_ME INSTALL_MOBILE_APP USE_MOBILE_APP MOBILE_DOWNLOAD BOOK_TRAVEL LISTEN_MUSIC WATCH_VIDEO LEARN_MORE SIGN_UP DOWNLOAD WATCH_MORE NO_BUTTON VISIT_PAGES_FEED APPLY_NOW BUY_NOW GET_OFFER GET_OFFER_VIEW BUY_TICKETS UPDATE_APP GET_DIRECTIONS BUY MESSAGE_PAGE DONATE SUBSCRIBE SAY_THANKS SELL_NOW SHARE DONATE_NOW GET_QUOTE CONTACT_US ORDER_NOW ADD_TO_CART VIDEO_ANNOTATION MOMENTS RECORD_NOW GET_SHOWTIMES LISTEN_NOW EVENT_RSVP WHATSAPP_MESSAGE FOLLOW_NEWS_STORYLINE }}
202
223
  api.has_param :default_language, 'string'
203
224
  api.has_param :descriptions, { list: 'object' }
204
225
  api.has_param :image, 'object'
@@ -339,6 +360,7 @@ module FacebookAds
339
360
  api.has_param :title, 'string'
340
361
  end
341
362
  edge.post do |api|
363
+ api.has_param :audio_story_wave_animation_handle, 'string'
342
364
  api.has_param :composer_session_id, 'string'
343
365
  api.has_param :description, 'string'
344
366
  api.has_param :end_offset, 'int'
@@ -373,9 +395,9 @@ module FacebookAds
373
395
  edge.delete do |api|
374
396
  api.has_param :business, 'string'
375
397
  end
376
- edge.post do |api|
398
+ edge.post 'AdAccount' do |api|
377
399
  api.has_param :business, 'string'
378
- api.has_param :permitted_roles, { list: { enum: %w{ADMIN GENERAL_USER REPORTS_ONLY INSTAGRAM_ADVERTISER INSTAGRAM_MANAGER CREATIVE FB_EMPLOYEE_DSO_ADVERTISER }} }
400
+ api.has_param :permitted_roles, { list: { enum: -> { AdAccount::PERMITTED_ROLES }} }
379
401
  end
380
402
  end
381
403
 
@@ -471,9 +493,11 @@ module FacebookAds
471
493
  api.has_param :allowed_domains, { list: 'string' }
472
494
  api.has_param :claim_objective, { enum: -> { CustomAudience::CLAIM_OBJECTIVE }}
473
495
  api.has_param :content_type, { enum: -> { CustomAudience::CONTENT_TYPE }}
496
+ api.has_param :customer_file_source, { enum: -> { CustomAudience::CUSTOMER_FILE_SOURCE }}
474
497
  api.has_param :dataset_id, 'string'
475
498
  api.has_param :description, 'string'
476
499
  api.has_param :event_source_group, 'string'
500
+ api.has_param :event_sources, { list: 'hash' }
477
501
  api.has_param :is_value_based, 'bool'
478
502
  api.has_param :list_of_accounts, { list: 'int' }
479
503
  api.has_param :lookalike_spec, 'string'
@@ -598,10 +622,6 @@ module FacebookAds
598
622
 
599
623
  has_edge :offsitepixels do |edge|
600
624
  edge.get 'OffsitePixel'
601
- edge.post 'OffsitePixel' do |api|
602
- api.has_param :name, 'string'
603
- api.has_param :tag, { enum: -> { OffsitePixel::TAG }}
604
- end
605
625
  end
606
626
 
607
627
  has_edge :partnercategories do |edge|
@@ -632,13 +652,14 @@ module FacebookAds
632
652
  api.has_param :associated_audience_id, 'int'
633
653
  api.has_param :creation_params, 'hash'
634
654
  api.has_param :description, 'string'
655
+ api.has_param :event_sources, { list: 'hash' }
635
656
  api.has_param :exclusions, { list: 'object' }
636
657
  api.has_param :inclusions, { list: 'object' }
637
658
  api.has_param :name, 'string'
638
659
  api.has_param :opt_out_link, 'string'
639
660
  api.has_param :parent_audience_id, 'int'
640
661
  api.has_param :product_set_id, 'string'
641
- api.has_param :subtype, { enum: -> { CustomAudience::SUBTYPE }}
662
+ api.has_param :subtype, { enum: -> { AdAccount::SUBTYPE }}
642
663
  api.has_param :tags, { list: 'string' }
643
664
  end
644
665
  end
@@ -646,8 +667,6 @@ module FacebookAds
646
667
  has_edge :publisher_block_lists do |edge|
647
668
  edge.get
648
669
  edge.post do |api|
649
- api.has_param :block_list_id, 'object'
650
- api.has_param :draft_id, 'object'
651
670
  api.has_param :name, 'string'
652
671
  end
653
672
  end
@@ -130,6 +130,7 @@ module FacebookAds
130
130
  "user_page_threads_excluded",
131
131
  "is_whatsapp_destination_ad",
132
132
  "marketplace_product_categories",
133
+ "instream_video_sponsorship_placements",
133
134
  ]
134
135
 
135
136
 
@@ -61,6 +61,7 @@ module FacebookAds
61
61
  "update_ad_set_duration",
62
62
  "update_ad_set_run_status",
63
63
  "update_ad_set_name",
64
+ "update_ad_set_optimization_goal",
64
65
  "update_ad_set_target_spec",
65
66
  "update_ad_set_bid_adjustments",
66
67
  "create_ad",
@@ -89,6 +90,7 @@ module FacebookAds
89
90
  "funding_event_initiated",
90
91
  "funding_event_successful",
91
92
  "update_ad_labels",
93
+ "di_ad_set_learning_stage_exit",
92
94
  ]
93
95
 
94
96
  CATEGORY = [
@@ -73,10 +73,12 @@ module FacebookAds
73
73
  "LISTEN_NOW",
74
74
  "EVENT_RSVP",
75
75
  "WHATSAPP_MESSAGE",
76
+ "FOLLOW_NEWS_STORYLINE",
76
77
  ]
77
78
 
78
79
 
79
80
  field :ad_formats, { list: 'string' }
81
+ field :additional_data, 'object'
80
82
  field :asset_customization_rules, { list: 'object' }
81
83
  field :autotranslate, { list: 'string' }
82
84
  field :bodies, { list: 'AdAssetFeedSpecBody' }
@@ -79,6 +79,7 @@ module FacebookAds
79
79
  "LISTEN_NOW",
80
80
  "EVENT_RSVP",
81
81
  "WHATSAPP_MESSAGE",
82
+ "FOLLOW_NEWS_STORYLINE",
82
83
  ]
83
84
 
84
85
  OBJECT_TYPE = [
@@ -100,6 +101,11 @@ module FacebookAds
100
101
  "DELETED",
101
102
  ]
102
103
 
104
+ AUTHORIZATION_CATEGORY = [
105
+ "NONE",
106
+ "POLITICAL",
107
+ ]
108
+
103
109
  DYNAMIC_AD_VOICE = [
104
110
  "DYNAMIC",
105
111
  "STORY_OWNER",
@@ -148,6 +154,7 @@ module FacebookAds
148
154
  field :url_tags, 'string'
149
155
  field :use_page_actor_override, 'bool'
150
156
  field :video_id, 'string'
157
+ field :authorization_category, { enum: -> { AUTHORIZATION_CATEGORY }}
151
158
  field :dynamic_ad_voice, { enum: -> { DYNAMIC_AD_VOICE }}
152
159
  field :image_file, 'string'
153
160
 
@@ -70,6 +70,7 @@ module FacebookAds
70
70
  field :preferred_image_tags, { list: 'string' }
71
71
  field :retailer_item_ids, { list: 'string' }
72
72
  field :show_multiple_images, 'bool'
73
+ field :static_fallback_spec, 'object'
73
74
  has_no_id
74
75
  has_no_get
75
76
  has_no_post
@@ -73,6 +73,7 @@ module FacebookAds
73
73
  "LISTEN_NOW",
74
74
  "EVENT_RSVP",
75
75
  "WHATSAPP_MESSAGE",
76
+ "FOLLOW_NEWS_STORYLINE",
76
77
  ]
77
78
 
78
79
 
@@ -38,6 +38,7 @@ module FacebookAds
38
38
  "COMPLETE_REGISTRATION",
39
39
  "CONTENT_VIEW",
40
40
  "SEARCH",
41
+ "MESSAGING_CONVERSATION_STARTED_7D",
41
42
  "LEVEL_ACHIEVED",
42
43
  "ACHIEVEMENT_UNLOCKED",
43
44
  "SPENT_CREDITS",
@@ -47,6 +47,7 @@ module FacebookAds
47
47
  "METADATA_UPDATE",
48
48
  "STATS_MILESTONE",
49
49
  "STATS_CHANGE",
50
+ "DELIVERY_INSIGHTS_CHANGE",
50
51
  ]
51
52
 
52
53
 
@@ -52,6 +52,7 @@ module FacebookAds
52
52
  field :id, 'string'
53
53
  field :name, 'string'
54
54
  field :observation_end_time, 'datetime'
55
+ field :results_first_available_date, 'string'
55
56
  field :start_time, 'datetime'
56
57
  field :type, 'string'
57
58
  field :updated_by, 'User'
@@ -37,7 +37,7 @@ module FacebookAds
37
37
  field :reference_file_status, 'string'
38
38
  field :ridge_monitoring_status, 'string'
39
39
  field :update_time, 'datetime'
40
- field :whitelisted_fb_users, { list: 'User' }
40
+ field :whitelisted_fb_users, { list: 'object' }
41
41
  field :whitelisted_ig_users, { list: 'string' }
42
42
  has_no_post
43
43
  has_no_delete
@@ -82,6 +82,7 @@ module FacebookAds
82
82
  ]
83
83
 
84
84
 
85
+ field :block_offline_analytics, 'bool'
85
86
  field :created_by, 'User'
86
87
  field :created_time, 'datetime'
87
88
  field :id, 'string'
@@ -155,7 +156,7 @@ module FacebookAds
155
156
  api.has_param :chinese_legal_entity_name, 'string'
156
157
  api.has_param :contact, 'object'
157
158
  api.has_param :english_legal_entity_name, 'string'
158
- api.has_param :extended_credit_id, 'string'
159
+ api.has_param :extended_credit_id, 'object'
159
160
  api.has_param :is_smb, 'bool'
160
161
  api.has_param :is_test, 'bool'
161
162
  api.has_param :official_website_url, 'object'
@@ -181,7 +182,7 @@ module FacebookAds
181
182
  api.has_param :breakdowns, { list: { enum: %w{AGE APP COUNTRY DELIVERY_METHOD DISPLAY_FORMAT DEAL DEAL_AD DEAL_PAGE GENDER PLACEMENT PLATFORM PROPERTY }} }
182
183
  api.has_param :filters, { list: 'hash' }
183
184
  api.has_param :metrics, { list: { enum: %w{FB_AD_NETWORK_BIDDING_REQUEST FB_AD_NETWORK_BIDDING_RESPONSE FB_AD_NETWORK_REQUEST FB_AD_NETWORK_FILLED_REQUEST FB_AD_NETWORK_FILL_RATE FB_AD_NETWORK_IMP FB_AD_NETWORK_SHOW_RATE FB_AD_NETWORK_CLICK FB_AD_NETWORK_CTR FB_AD_NETWORK_BIDDING_REVENUE FB_AD_NETWORK_REVENUE FB_AD_NETWORK_CPM FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE FB_AD_NETWORK_VIDEO_VIEW FB_AD_NETWORK_VIDEO_VIEW_RATE FB_AD_NETWORK_VIDEO_MRC FB_AD_NETWORK_VIDEO_MRC_RATE FB_AD_NETWORK_WIN_RATE FB_AD_NETWORK_DIRECT_TOTAL_REVENUE FB_AD_NETWORK_DIRECT_PUBLISHER_BILL FB_AD_NETWORK_FAST_CLICK_RATE FB_AD_NETWORK_FAST_RETURN_RATE FB_AD_NETWORK_CLICK_VALUE_SCORE FB_AD_NETWORK_FAST_CLICK_NUMERATOR FB_AD_NETWORK_FAST_CLICK_DENOMINATOR FB_AD_NETWORK_FAST_RETURN_NUMERATOR FB_AD_NETWORK_FAST_RETURN_DENOMINATOR FB_AD_NETWORK_CLICK_VALUE_SCORE_NUMERATOR FB_AD_NETWORK_CLICK_VALUE_SCORE_DENOMINATOR }} }
184
- api.has_param :ordering_column, { enum: %w{TIME VALUE }}
185
+ api.has_param :ordering_column, { enum: %w{TIME VALUE METRIC }}
185
186
  api.has_param :ordering_type, { enum: %w{ASCENDING DESCENDING }}
186
187
  api.has_param :since, 'object'
187
188
  api.has_param :until, 'object'
@@ -191,7 +192,7 @@ module FacebookAds
191
192
  api.has_param :breakdowns, { list: { enum: %w{AGE APP COUNTRY DELIVERY_METHOD DISPLAY_FORMAT DEAL DEAL_AD DEAL_PAGE GENDER PLACEMENT PLATFORM PROPERTY }} }
192
193
  api.has_param :filters, { list: 'object' }
193
194
  api.has_param :metrics, { list: { enum: %w{FB_AD_NETWORK_BIDDING_REQUEST FB_AD_NETWORK_BIDDING_RESPONSE FB_AD_NETWORK_REQUEST FB_AD_NETWORK_FILLED_REQUEST FB_AD_NETWORK_FILL_RATE FB_AD_NETWORK_IMP FB_AD_NETWORK_SHOW_RATE FB_AD_NETWORK_CLICK FB_AD_NETWORK_CTR FB_AD_NETWORK_BIDDING_REVENUE FB_AD_NETWORK_REVENUE FB_AD_NETWORK_CPM FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE FB_AD_NETWORK_VIDEO_VIEW FB_AD_NETWORK_VIDEO_VIEW_RATE FB_AD_NETWORK_VIDEO_MRC FB_AD_NETWORK_VIDEO_MRC_RATE FB_AD_NETWORK_WIN_RATE FB_AD_NETWORK_DIRECT_TOTAL_REVENUE FB_AD_NETWORK_DIRECT_PUBLISHER_BILL FB_AD_NETWORK_FAST_CLICK_RATE FB_AD_NETWORK_FAST_RETURN_RATE FB_AD_NETWORK_CLICK_VALUE_SCORE FB_AD_NETWORK_FAST_CLICK_NUMERATOR FB_AD_NETWORK_FAST_CLICK_DENOMINATOR FB_AD_NETWORK_FAST_RETURN_NUMERATOR FB_AD_NETWORK_FAST_RETURN_DENOMINATOR FB_AD_NETWORK_CLICK_VALUE_SCORE_NUMERATOR FB_AD_NETWORK_CLICK_VALUE_SCORE_DENOMINATOR }} }
194
- api.has_param :ordering_column, { enum: %w{TIME VALUE }}
195
+ api.has_param :ordering_column, { enum: %w{TIME VALUE METRIC }}
195
196
  api.has_param :ordering_type, { enum: %w{ASCENDING DESCENDING }}
196
197
  api.has_param :since, 'object'
197
198
  api.has_param :until, 'object'
@@ -409,6 +410,7 @@ module FacebookAds
409
410
  has_edge :owned_pages do |edge|
410
411
  edge.get 'Page'
411
412
  edge.post 'Page' do |api|
413
+ api.has_param :ig_password, 'string'
412
414
  api.has_param :page_id, 'int'
413
415
  end
414
416
  end
@@ -38,8 +38,10 @@ module FacebookAds
38
38
 
39
39
  field :business, 'Business'
40
40
  field :email, 'string'
41
+ field :finance_permission, 'string'
41
42
  field :first_name, 'string'
42
43
  field :id, 'string'
44
+ field :ip_permission, 'string'
43
45
  field :last_name, 'string'
44
46
  field :marked_for_removal, 'bool'
45
47
  field :name, 'string'
@@ -41,10 +41,17 @@ module FacebookAds
41
41
  "FLIGHT",
42
42
  "HOME_LISTING",
43
43
  "HOTEL",
44
+ "MEDIA_TITLE",
44
45
  "VEHICLE",
45
46
  "VEHICLE_OFFER",
46
47
  ]
47
48
 
49
+ CUSTOMER_FILE_SOURCE = [
50
+ "USER_PROVIDED_ONLY",
51
+ "PARTNER_PROVIDED_ONLY",
52
+ "BOTH_USER_AND_PARTNER_PROVIDED",
53
+ ]
54
+
48
55
  SUBTYPE = [
49
56
  "CUSTOM",
50
57
  "WEBSITE",
@@ -66,6 +73,7 @@ module FacebookAds
66
73
  "id",
67
74
  "account_id",
68
75
  "approximate_count",
76
+ "customer_file_source",
69
77
  "data_source",
70
78
  "delivery_status",
71
79
  "description",
@@ -90,6 +98,7 @@ module FacebookAds
90
98
 
91
99
  field :account_id, 'string'
92
100
  field :approximate_count, 'int'
101
+ field :customer_file_source, 'string'
93
102
  field :data_source, 'CustomAudienceDataSource'
94
103
  field :delivery_status, 'CustomAudienceStatus'
95
104
  field :description, 'string'
@@ -115,6 +124,7 @@ module FacebookAds
115
124
  field :content_type, { enum: -> { CONTENT_TYPE }}
116
125
  field :dataset_id, 'string'
117
126
  field :event_source_group, 'string'
127
+ field :event_sources, { list: 'hash' }
118
128
  field :list_of_accounts, { list: 'int' }
119
129
  field :origin_audience_id, 'string'
120
130
  field :prefill, 'bool'
@@ -48,6 +48,7 @@ module FacebookAds
48
48
  PROMOTABLE_EVENT_TYPES = [
49
49
  "OFFSITE_TICKET",
50
50
  "ONSITE_TICKET",
51
+ "RSVP",
51
52
  ]
52
53
 
53
54
 
@@ -57,6 +58,7 @@ module FacebookAds
57
58
  field :cover, 'CoverPhoto'
58
59
  field :declined_count, 'int'
59
60
  field :description, 'string'
61
+ field :discount_code_enabled, 'bool'
60
62
  field :end_time, 'string'
61
63
  field :event_times, { list: 'object' }
62
64
  field :guest_list_enabled, 'bool'
@@ -96,7 +98,7 @@ module FacebookAds
96
98
  api.has_param :original_fov, 'int'
97
99
  api.has_param :planned_start_time, 'int'
98
100
  api.has_param :privacy, 'object'
99
- api.has_param :projection, { enum: %w{EQUIRECTANGULAR CUBEMAP SINGLE_FISH_EYE }}
101
+ api.has_param :projection, { enum: %w{EQUIRECTANGULAR CUBEMAP }}
100
102
  api.has_param :published, 'bool'
101
103
  api.has_param :save_vod, 'bool'
102
104
  api.has_param :schedule_custom_profile_image, 'file'
@@ -155,6 +157,7 @@ module FacebookAds
155
157
 
156
158
  has_edge :videos do |edge|
157
159
  edge.post do |api|
160
+ api.has_param :audio_story_wave_animation_handle, 'string'
158
161
  api.has_param :content_category, { enum: %w{BEAUTY_FASHION BUSINESS CARS_TRUCKS COMEDY CUTE_ANIMALS ENTERTAINMENT FAMILY FOOD_HEALTH HOME LIFESTYLE MUSIC NEWS POLITICS SCIENCE SPORTS TECHNOLOGY VIDEO_GAMING OTHER }}
159
162
  api.has_param :description, 'string'
160
163
  api.has_param :embeddable, 'bool'
@@ -32,6 +32,7 @@ module FacebookAds
32
32
  field :credit_available, 'object'
33
33
  field :credit_type, 'string'
34
34
  field :id, 'string'
35
+ field :is_automated_experience, 'bool'
35
36
  field :last_payment_time, 'datetime'
36
37
  field :legal_entity_name, 'string'
37
38
  field :liable_biz_name, 'string'
@@ -27,6 +27,7 @@ module FacebookAds
27
27
 
28
28
  class ExtendedCreditInvoiceGroup < AdObject
29
29
 
30
+ field :customer_po_number, 'string'
30
31
  field :email, 'object'
31
32
  field :emails, { list: 'string' }
32
33
  field :id, 'string'
@@ -39,6 +39,7 @@ module FacebookAds
39
39
  field :form_id, 'string'
40
40
  field :id, 'string'
41
41
  field :is_organic, 'bool'
42
+ field :partner_name, 'string'
42
43
  field :post, 'object'
43
44
  field :retailer_item_id, 'string'
44
45
  has_no_post
@@ -26,17 +26,11 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class LeadGenLegalContent < AdObject
29
- STATUS = [
30
- "ACTIVE",
31
- "ARCHIVED",
32
- "DELETED",
33
- "DRAFT",
34
- ]
35
-
36
29
 
37
30
  field :custom_disclaimer, 'object'
38
31
  field :id, 'string'
39
32
  field :privacy_policy, 'object'
33
+ has_no_post
40
34
  has_no_delete
41
35
 
42
36
  end
@@ -30,6 +30,7 @@ module FacebookAds
30
30
  "FOLLOWER",
31
31
  "SLOW",
32
32
  "DISCUSSION",
33
+ "RESTRICTED",
33
34
  ]
34
35
 
35
36
  STATUS = [
@@ -60,7 +61,6 @@ module FacebookAds
60
61
  PROJECTION = [
61
62
  "EQUIRECTANGULAR",
62
63
  "CUBEMAP",
63
- "SINGLE_FISH_EYE",
64
64
  ]
65
65
 
66
66
  SPATIAL_AUDIO_FORMAT = [
@@ -36,6 +36,7 @@ module FacebookAds
36
36
 
37
37
 
38
38
  field :duration_in_sec, 'double'
39
+ field :expiration_time, 'datetime'
39
40
  field :fingerprint_content_type, 'string'
40
41
  field :fingerprint_type, 'string'
41
42
  field :id, 'string'
@@ -39,6 +39,7 @@ module FacebookAds
39
39
  field :id, 'string'
40
40
  field :is_restricted_use, 'bool'
41
41
  field :last_upload_app, 'string'
42
+ field :match_rate_approx, 'int'
42
43
  field :matched_entries, 'int'
43
44
  field :name, 'string'
44
45
  field :usage, 'object'
@@ -81,7 +82,7 @@ module FacebookAds
81
82
 
82
83
  has_edge :events do |edge|
83
84
  edge.post do |api|
84
- api.has_param :data, { list: 'object' }
85
+ api.has_param :data, { list: 'string' }
85
86
  api.has_param :namespace_id, 'string'
86
87
  api.has_param :progress, 'object'
87
88
  api.has_param :upload_id, 'string'
@@ -128,7 +129,7 @@ module FacebookAds
128
129
 
129
130
  has_edge :validate do |edge|
130
131
  edge.post 'OfflineConversionDataSet' do |api|
131
- api.has_param :data, { list: 'object' }
132
+ api.has_param :data, { list: 'string' }
132
133
  api.has_param :namespace_id, 'string'
133
134
  end
134
135
  end
@@ -26,15 +26,6 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class OffsitePixel < AdObject
29
- TAG = [
30
- "CHECKOUT",
31
- "REGISTRATION",
32
- "LEAD",
33
- "KEY_PAGE_VIEW",
34
- "ADD_TO_CART",
35
- "OTHER",
36
- ]
37
-
38
29
 
39
30
  field :creator, 'string'
40
31
  field :id, 'string'
@@ -42,16 +33,8 @@ module FacebookAds
42
33
  field :last_firing_time, 'datetime'
43
34
  field :name, 'string'
44
35
  field :tag, 'string'
45
-
46
- has_edge :adaccounts do |edge|
47
- edge.delete do |api|
48
- api.has_param :adaccounts, { list: 'string' }
49
- end
50
- edge.get 'AdAccount'
51
- edge.post 'AdAccount' do |api|
52
- api.has_param :adaccounts, { list: 'string' }
53
- end
54
- end
36
+ has_no_post
37
+ has_no_delete
55
38
 
56
39
  end
57
40
  end
@@ -29,7 +29,6 @@ module FacebookAds
29
29
 
30
30
  field :domain_name, 'string'
31
31
  field :id, 'string'
32
- field :page_block_list, 'object'
33
32
  has_no_post
34
33
  has_no_delete
35
34
 
@@ -162,6 +162,7 @@ module FacebookAds
162
162
  field :contact_address, 'MailingAddress'
163
163
  field :context, 'OpenGraphContext'
164
164
  field :copyright_attribution_insights, 'CopyrightAttributionInsights'
165
+ field :copyright_whitelisted_ig_partners, { list: 'string' }
165
166
  field :country_page_likes, 'int'
166
167
  field :cover, 'CoverPhoto'
167
168
  field :culinary_team, 'string'
@@ -259,6 +260,7 @@ module FacebookAds
259
260
  field :single_line_address, 'string'
260
261
  field :starring, 'string'
261
262
  field :start_info, 'PageStartInfo'
263
+ field :store_code, 'string'
262
264
  field :store_location_descriptor, 'string'
263
265
  field :store_number, 'int'
264
266
  field :studio, 'string'
@@ -274,6 +276,7 @@ module FacebookAds
274
276
  field :were_here_count, 'int'
275
277
  field :whatsapp_number, 'string'
276
278
  field :written_by, 'string'
279
+ field :ig_password, 'string'
277
280
  field :page_id, 'int'
278
281
  has_no_delete
279
282
 
@@ -598,13 +601,6 @@ module FacebookAds
598
601
  end
599
602
  end
600
603
 
601
- has_edge :join_threads do |edge|
602
- edge.post 'Page' do |api|
603
- api.has_param :persona_id, 'object'
604
- api.has_param :recipient_id, 'object'
605
- end
606
- end
607
-
608
604
  has_edge :labels do |edge|
609
605
  edge.post 'PageLabel' do |api|
610
606
  api.has_param :name, 'string'
@@ -630,7 +626,7 @@ module FacebookAds
630
626
  end
631
627
 
632
628
  has_edge :leadgen_draft_forms do |edge|
633
- edge.post do |api|
629
+ edge.post 'Page' do |api|
634
630
  api.has_param :allow_organic_lead_retrieval, 'bool'
635
631
  api.has_param :block_display_for_non_targeted_viewer, 'bool'
636
632
  api.has_param :context_card, 'object'
@@ -639,7 +635,7 @@ module FacebookAds
639
635
  api.has_param :follow_up_action_url, 'string'
640
636
  api.has_param :is_optimized_for_quality, 'bool'
641
637
  api.has_param :legal_content_id, 'string'
642
- api.has_param :locale, { enum: %w{EN_US IT_IT FR_FR ES_ES ES_LA DE_DE EN_GB PT_BR ZH_TW ZH_HK TR_TR AR_AR CS_CZ DA_DK FI_FI HE_IL HI_IN HU_HU ID_ID JA_JP KO_KR NB_NO NL_NL PL_PL PT_PT RO_RO RU_RU SV_SE TH_TH VI_VN ZH_CN }}
638
+ api.has_param :locale, { enum: -> { Page::LOCALE }}
643
639
  api.has_param :name, 'string'
644
640
  api.has_param :privacy_policy, 'object'
645
641
  api.has_param :question_page_custom_headline, 'string'
@@ -710,11 +706,13 @@ module FacebookAds
710
706
  edge.post 'LiveVideo' do |api|
711
707
  api.has_param :attribution_app_id, 'string'
712
708
  api.has_param :content_tags, { list: 'string' }
709
+ api.has_param :crossposting_actions, { list: 'hash' }
713
710
  api.has_param :custom_labels, { list: 'string' }
714
711
  api.has_param :description, 'string'
715
712
  api.has_param :encoding_settings, 'string'
716
713
  api.has_param :fisheye_video_cropped, 'bool'
717
714
  api.has_param :front_z_rotation, 'double'
715
+ api.has_param :game_show, 'hash'
718
716
  api.has_param :is_spherical, 'bool'
719
717
  api.has_param :live_encoders, { list: 'string' }
720
718
  api.has_param :original_fov, 'int'
@@ -745,17 +743,18 @@ module FacebookAds
745
743
  api.has_param :hours, 'hash'
746
744
  api.has_param :ignore_warnings, 'bool'
747
745
  api.has_param :location, 'object'
748
- api.has_param :location_page_id, 'int'
746
+ api.has_param :location_page_id, 'object'
749
747
  api.has_param :old_store_number, 'int'
750
748
  api.has_param :page_username, 'string'
751
749
  api.has_param :permanently_closed, 'bool'
752
750
  api.has_param :phone, 'string'
753
751
  api.has_param :place_topics, { list: 'string' }
754
752
  api.has_param :price_range, 'string'
753
+ api.has_param :store_code, 'string'
755
754
  api.has_param :store_location_descriptor, 'string'
756
755
  api.has_param :store_name, 'string'
757
756
  api.has_param :store_number, 'int'
758
- api.has_param :website, 'string'
757
+ api.has_param :website, 'object'
759
758
  end
760
759
  end
761
760
 
@@ -894,14 +893,6 @@ module FacebookAds
894
893
  end
895
894
  end
896
895
 
897
- has_edge :personas do |edge|
898
- edge.get 'Persona'
899
- edge.post 'Page' do |api|
900
- api.has_param :name, 'string'
901
- api.has_param :profile_picture_url, 'object'
902
- end
903
- end
904
-
905
896
  has_edge :photos do |edge|
906
897
  edge.get 'Photo' do |api|
907
898
  api.has_param :biz_tag_id, 'int'
@@ -970,6 +961,7 @@ module FacebookAds
970
961
  api.has_param :android_key_hash, 'string'
971
962
  api.has_param :caption, 'string'
972
963
  api.has_param :composer_session_id, 'string'
964
+ api.has_param :has_umg, 'bool'
973
965
  api.has_param :height, 'int'
974
966
  api.has_param :ios_bundle_id, 'string'
975
967
  api.has_param :media_effect_ids, { list: 'int' }
@@ -1172,6 +1164,7 @@ module FacebookAds
1172
1164
  end
1173
1165
  edge.post do |api|
1174
1166
  api.has_param :ad_breaks, 'object'
1167
+ api.has_param :audio_story_wave_animation_handle, 'string'
1175
1168
  api.has_param :backdated_post, 'object'
1176
1169
  api.has_param :content_category, { enum: %w{BEAUTY_FASHION BUSINESS CARS_TRUCKS COMEDY CUTE_ANIMALS ENTERTAINMENT FAMILY FOOD_HEALTH HOME LIFESTYLE MUSIC NEWS POLITICS SCIENCE SPORTS TECHNOLOGY VIDEO_GAMING OTHER }}
1177
1170
  api.has_param :content_tags, { list: 'string' }
@@ -56,6 +56,7 @@ module FacebookAds
56
56
  "LEAD_ADS_DRAFT_FORMS",
57
57
  "LEAD_ADS_FORMS",
58
58
  "LEAD_ADS_CRM_SETUP",
59
+ "LEAD_ADS_CUSTOM_CRM_SETUP",
59
60
  "PUBLISHED_POSTS",
60
61
  "SCHEDULED_POSTS",
61
62
  "ADS_POSTS",
@@ -89,6 +90,7 @@ module FacebookAds
89
90
  "REFERENCE_POSSIBLE_CONFLICTS",
90
91
  "REFERENCE_RESOLUTIONS",
91
92
  "SOUND_RECORDINGS",
93
+ "PREMIUM_MUSIC_VIDEOS",
92
94
  "LIVE_BROADCASTS",
93
95
  "CROSSPOSTED_VIDEOS",
94
96
  "PUBLISHED_PROFILE_PICTURE_FRAMES",
@@ -117,6 +119,8 @@ module FacebookAds
117
119
  "CONTENT_TESTS",
118
120
  "GEM_PRODUCER_DASHBOARD",
119
121
  "MONETIZED_VIDEOS",
122
+ "AUDIO_RELEASES",
123
+ "NEWS_STORYLINES",
120
124
  ]
121
125
 
122
126
 
@@ -31,6 +31,7 @@ module FacebookAds
31
31
  field :external_id, 'string'
32
32
  field :has_oauth_token, 'bool'
33
33
  field :id, 'string'
34
+ field :name, 'string'
34
35
  field :offline_conversion_data_set, 'OfflineConversionDataSet'
35
36
  field :partner, 'string'
36
37
  field :product_catalog, 'ProductCatalog'
@@ -31,7 +31,6 @@ module FacebookAds
31
31
  "destinations",
32
32
  "flights",
33
33
  "home_listings",
34
- "home_service_providers",
35
34
  "hotels",
36
35
  "vehicles",
37
36
  ]
@@ -263,6 +262,7 @@ module FacebookAds
263
262
  api.has_param :iphone_url, 'string'
264
263
  api.has_param :manufacturer_part_number, 'string'
265
264
  api.has_param :material, 'string'
265
+ api.has_param :mobile_link, 'object'
266
266
  api.has_param :name, 'string'
267
267
  api.has_param :offer_price_amount, 'int'
268
268
  api.has_param :offer_price_end_date, 'object'
@@ -300,6 +300,7 @@ module FacebookAds
300
300
 
301
301
  has_edge :videos do |edge|
302
302
  edge.post do |api|
303
+ api.has_param :audio_story_wave_animation_handle, 'string'
303
304
  api.has_param :content_category, { enum: %w{BEAUTY_FASHION BUSINESS CARS_TRUCKS COMEDY CUTE_ANIMALS ENTERTAINMENT FAMILY FOOD_HEALTH HOME LIFESTYLE MUSIC NEWS POLITICS SCIENCE SPORTS TECHNOLOGY VIDEO_GAMING OTHER }}
304
305
  api.has_param :description, 'string'
305
306
  api.has_param :embeddable, 'bool'
@@ -57,15 +57,12 @@ module FacebookAds
57
57
  "DESTINATION",
58
58
  "FLIGHT",
59
59
  "HOME_LISTING",
60
- "HOME_SERVICE_PROVIDER",
61
- "HOME_SERVICE_REVIEW",
62
60
  "HOTEL",
63
61
  "HOTEL_ROOM",
64
62
  "LOCAL_INVENTORY",
65
63
  "MARKET",
66
64
  "MEDIA_TITLE",
67
65
  "PRODUCTS",
68
- "TEST_DYNAMIC_ITEM",
69
66
  "VEHICLE_OFFER",
70
67
  "VEHICLES",
71
68
  ]
@@ -26,12 +26,19 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class ProductFeedUploadError < AdObject
29
+ AFFECTED_SURFACES = [
30
+ "Dynamic Ads",
31
+ "Marketplace",
32
+ "US Marketplace",
33
+ ]
34
+
29
35
  SEVERITY = [
30
36
  "fatal",
31
37
  "warning",
32
38
  ]
33
39
 
34
40
 
41
+ field :affected_surfaces, { list: { enum: -> { AFFECTED_SURFACES }} }
35
42
  field :description, 'string'
36
43
  field :error_type, 'string'
37
44
  field :id, 'string'
@@ -71,6 +71,7 @@ module FacebookAds
71
71
  api.has_param :iphone_url, 'string'
72
72
  api.has_param :manufacturer_part_number, 'string'
73
73
  api.has_param :material, 'string'
74
+ api.has_param :mobile_link, 'object'
74
75
  api.has_param :name, 'string'
75
76
  api.has_param :offer_price_amount, 'int'
76
77
  api.has_param :offer_price_end_date, 'object'
@@ -28,9 +28,11 @@ module FacebookAds
28
28
  class ProductItem < AdObject
29
29
  AGE_GROUP = [
30
30
  "adult",
31
+ "all ages",
31
32
  "infant",
32
33
  "kids",
33
34
  "newborn",
35
+ "teen",
34
36
  "toddler",
35
37
  ]
36
38
 
@@ -77,6 +79,7 @@ module FacebookAds
77
79
  ]
78
80
 
79
81
 
82
+ field :additional_image_cdn_urls, { list: { list: 'object' } }
80
83
  field :additional_image_urls, { list: 'string' }
81
84
  field :additional_variant_attributes, { list: 'object' }
82
85
  field :age_group, { enum: -> { AGE_GROUP }}
@@ -99,10 +102,12 @@ module FacebookAds
99
102
  field :gender, { enum: -> { GENDER }}
100
103
  field :gtin, 'string'
101
104
  field :id, 'string'
105
+ field :image_cdn_urls, { list: 'object' }
102
106
  field :image_url, 'string'
103
107
  field :inventory, 'int'
104
108
  field :manufacturer_part_number, 'string'
105
109
  field :material, 'string'
110
+ field :mobile_link, 'string'
106
111
  field :name, 'string'
107
112
  field :ordering_index, 'int'
108
113
  field :pattern, 'string'
@@ -53,11 +53,12 @@ module FacebookAds
53
53
  end
54
54
 
55
55
  has_edge :media do |edge|
56
- edge.post do |api|
56
+ edge.get 'ShadowIgMedia'
57
+ edge.post 'ShadowIgUser' do |api|
57
58
  api.has_param :caption, 'string'
58
59
  api.has_param :image_url, 'string'
60
+ api.has_param :media_type, 'string'
59
61
  end
60
- edge.get 'ShadowIgMedia'
61
62
  end
62
63
 
63
64
  has_edge :media_publish do |edge|
@@ -53,7 +53,7 @@ module FacebookAds
53
53
  field :countries, { list: 'string' }
54
54
  field :country, { list: 'string' }
55
55
  field :country_groups, { list: 'string' }
56
- field :custom_audiences, { list: 'IdName' }
56
+ field :custom_audiences, { list: 'object' }
57
57
  field :device_platforms, { list: { enum: -> { DEVICE_PLATFORMS }} }
58
58
  field :direct_install_devices, 'bool'
59
59
  field :dynamic_audience_ids, { list: 'string' }
@@ -95,6 +95,7 @@ module FacebookAds
95
95
  field :income, { list: 'IdName' }
96
96
  field :industries, { list: 'IdName' }
97
97
  field :instagram_positions, { list: 'string' }
98
+ field :instream_video_sponsorship_placements, { list: 'string' }
98
99
  field :interested_in, { list: 'int' }
99
100
  field :interests, { list: 'IdName' }
100
101
  field :is_whatsapp_destination_ad, 'bool'
@@ -50,6 +50,7 @@ module FacebookAds
50
50
  field :install_type, 'string'
51
51
  field :installed, 'bool'
52
52
  field :interested_in, { list: 'string' }
53
+ field :is_famedeeplinkinguser, 'bool'
53
54
  field :is_payment_enabled, 'bool'
54
55
  field :is_shared_login, 'bool'
55
56
  field :is_verified, 'bool'
@@ -36,10 +36,9 @@ module FacebookAds
36
36
  end
37
37
 
38
38
  def request(method, path, params = nil)
39
- path.gsub!(/^\//,'') #
40
39
  case method
41
40
  when :get, :post, :delete
42
- api_conn.send(method, path, params) do |req|
41
+ api_conn.send(method, path.gsub(/^\//,''), params) do |req|
43
42
  req.headers[:user_agent] = "fbbizsdk-ruby-v#{API_VERSION}".freeze
44
43
  req.params[:access_token] = access_token
45
44
  req.params[:appsecret_proof] = appsecret_proof if app_secret
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.3.0.2'
22
+ VERSION = '0.3.0.3'
23
23
  API_VERSION = '3.0'
24
24
  end
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: 0.3.0.2
4
+ version: 0.3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -307,10 +307,8 @@ files:
307
307
  - lib/facebook_ads/ad_objects/delivery_check.rb
308
308
  - lib/facebook_ads/ad_objects/delivery_check_extra_info.rb
309
309
  - lib/facebook_ads/ad_objects/direct_deal.rb
310
- - lib/facebook_ads/ad_objects/direct_debit.rb
311
310
  - lib/facebook_ads/ad_objects/domain.rb
312
311
  - lib/facebook_ads/ad_objects/engagement.rb
313
- - lib/facebook_ads/ad_objects/ent_with_sponsor.rb
314
312
  - lib/facebook_ads/ad_objects/event.rb
315
313
  - lib/facebook_ads/ad_objects/event_source_group.rb
316
314
  - lib/facebook_ads/ad_objects/extended_credit.rb
@@ -378,7 +376,6 @@ files:
378
376
  - lib/facebook_ads/ad_objects/page_videos_you_can_use.rb
379
377
  - lib/facebook_ads/ad_objects/partner_category.rb
380
378
  - lib/facebook_ads/ad_objects/partner_integration_linked.rb
381
- - lib/facebook_ads/ad_objects/persona.rb
382
379
  - lib/facebook_ads/ad_objects/photo.rb
383
380
  - lib/facebook_ads/ad_objects/place_topic.rb
384
381
  - lib/facebook_ads/ad_objects/product_catalog.rb
@@ -428,8 +425,6 @@ files:
428
425
  - lib/facebook_ads/ad_objects/targeting_product_audience_spec.rb
429
426
  - lib/facebook_ads/ad_objects/targeting_product_audience_sub_spec.rb
430
427
  - lib/facebook_ads/ad_objects/targeting_sentence_line.rb
431
- - lib/facebook_ads/ad_objects/transaction.rb
432
- - lib/facebook_ads/ad_objects/transaction_currency_amount.rb
433
428
  - lib/facebook_ads/ad_objects/unified_thread.rb
434
429
  - lib/facebook_ads/ad_objects/url.rb
435
430
  - lib/facebook_ads/ad_objects/user.rb
@@ -1,45 +0,0 @@
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 DirectDebit < AdObject
29
-
30
- field :bank_account_last_4, 'string'
31
- field :bank_code_last_4, 'string'
32
- field :bank_name, 'string'
33
- field :default_receiving_method_products, { list: 'string' }
34
- field :display_string, 'string'
35
- field :id, 'string'
36
- field :last_four_digits, 'string'
37
- field :onboarding_url, 'string'
38
- field :owner_name, 'string'
39
- field :status, 'int'
40
- has_no_get
41
- has_no_post
42
- has_no_delete
43
-
44
- end
45
- end
@@ -1,39 +0,0 @@
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 EntWithSponsor < AdObject
29
-
30
- field :id, 'string'
31
- field :owner_picture, 'string'
32
- field :post_id, 'string'
33
- field :post_info, 'object'
34
- has_no_get
35
- has_no_post
36
- has_no_delete
37
-
38
- end
39
- end
@@ -1,37 +0,0 @@
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 Persona < AdObject
29
-
30
- field :id, 'string'
31
- field :name, 'string'
32
- field :profile_picture_url, 'string'
33
- has_no_post
34
- has_no_delete
35
-
36
- end
37
- end
@@ -1,51 +0,0 @@
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 Transaction < AdObject
29
-
30
- field :account_id, 'string'
31
- field :app_amount, 'TransactionCurrencyAmount'
32
- field :billing_end_time, 'int'
33
- field :billing_reason, 'string'
34
- field :billing_start_time, 'int'
35
- field :charge_type, 'string'
36
- field :checkout_campaign_group_id, 'string'
37
- field :credential_id, 'string'
38
- field :fatura_id, 'int'
39
- field :id, 'string'
40
- field :is_business_ec_charge, 'bool'
41
- field :payment_option, 'string'
42
- field :provider_amount, 'TransactionCurrencyAmount'
43
- field :status, 'string'
44
- field :time, 'int'
45
- field :tracking_id, 'string'
46
- has_no_get
47
- has_no_post
48
- has_no_delete
49
-
50
- end
51
- end
@@ -1,39 +0,0 @@
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 TransactionCurrencyAmount < AdObject
29
-
30
- field :amount, 'string'
31
- field :currency, 'string'
32
- field :total_amount, 'string'
33
- has_no_id
34
- has_no_get
35
- has_no_post
36
- has_no_delete
37
-
38
- end
39
- end