facebookbusiness 0.3.2.3 → 0.3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +3 -3
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +13 -20
  4. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -1
  5. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
  6. data/lib/facebook_ads/ad_objects/ad_account_user_permissions.rb +0 -1
  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 +4 -0
  9. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -1
  10. data/lib/facebook_ads/ad_objects/ad_creative.rb +4 -1
  11. data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
  13. data/lib/facebook_ads/ad_objects/ad_creative_video_data.rb +0 -1
  14. data/lib/facebook_ads/ad_objects/ad_set.rb +9 -11
  15. data/lib/facebook_ads/ad_objects/ad_video.rb +3 -1
  16. data/lib/facebook_ads/ad_objects/ads_insights.rb +6 -10
  17. data/lib/facebook_ads/ad_objects/automotive_model.rb +2 -0
  18. data/lib/facebook_ads/ad_objects/business.rb +0 -6
  19. data/lib/facebook_ads/ad_objects/campaign.rb +6 -6
  20. data/lib/facebook_ads/ad_objects/{publisher_space.rb → catalog_based_targeting.rb} +3 -3
  21. data/lib/facebook_ads/ad_objects/copyright_reference_container.rb +2 -0
  22. data/lib/facebook_ads/ad_objects/currency.rb +0 -2
  23. data/lib/facebook_ads/ad_objects/destination.rb +1 -2
  24. data/lib/facebook_ads/ad_objects/event.rb +35 -12
  25. data/lib/facebook_ads/ad_objects/lead_gen_legal_content.rb +0 -7
  26. data/lib/facebook_ads/ad_objects/leadgen_form.rb +7 -7
  27. data/lib/facebook_ads/ad_objects/live_video.rb +5 -1
  28. data/lib/facebook_ads/ad_objects/live_video_input_stream.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/live_with_guest_session.rb +54 -0
  30. data/lib/facebook_ads/ad_objects/merchant_compliance.rb +41 -0
  31. data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +9 -2
  32. data/lib/facebook_ads/ad_objects/offsite_pixel.rb +0 -1
  33. data/lib/facebook_ads/ad_objects/open_graph_object.rb +0 -1
  34. data/lib/facebook_ads/ad_objects/page.rb +3 -22
  35. data/lib/facebook_ads/ad_objects/{adgroup_metadata.rb → page_locations_health_summary.rb} +4 -3
  36. data/lib/facebook_ads/ad_objects/page_post.rb +2 -2
  37. data/lib/facebook_ads/ad_objects/page_saved_filter.rb +0 -1
  38. data/lib/facebook_ads/ad_objects/post.rb +2 -2
  39. data/lib/facebook_ads/ad_objects/product_catalog.rb +19 -11
  40. data/lib/facebook_ads/ad_objects/product_catalog_user_permissions.rb +0 -1
  41. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -1
  42. data/lib/facebook_ads/ad_objects/product_feed_upload_error.rb +0 -2
  43. data/lib/facebook_ads/ad_objects/profile_picture_source.rb +0 -1
  44. data/lib/facebook_ads/ad_objects/reach_estimate.rb +1 -0
  45. data/lib/facebook_ads/ad_objects/targeting.rb +1 -1
  46. data/lib/facebook_ads/ad_objects/unified_thread.rb +0 -2
  47. data/lib/facebook_ads/ad_objects/url.rb +0 -1
  48. data/lib/facebook_ads/ad_objects/user.rb +2 -6
  49. data/lib/facebook_ads/ad_objects/user_context.rb +0 -12
  50. data/lib/facebook_ads/version.rb +1 -1
  51. metadata +6 -5
  52. data/lib/facebook_ads/ad_objects/ad_asset_feed.rb +0 -217
@@ -25,10 +25,11 @@ 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 AdgroupMetadata < AdObject
28
+ class PageLocationsHealthSummary < AdObject
29
29
 
30
- field :carousel_style, 'string'
31
- field :carousel_with_static_card_style, 'string'
30
+ field :checked_count, 'int'
31
+ field :health_check, 'string'
32
+ field :unhealthy_count, 'int'
32
33
  field :id, 'string'
33
34
  has_no_get
34
35
  has_no_post
@@ -218,7 +218,7 @@ module FacebookAds
218
218
  api.has_param :budget, 'int'
219
219
  api.has_param :currency, 'string'
220
220
  api.has_param :ad_account_id, 'string'
221
- api.has_param :audience, { enum: %w{GROUPER NCPP CUSTOM_AUDIENCE LOOKALIKE FANS LOCAL IG_PROMOTED_POST_AUTO SAVED_AUDIENCE EVENT_ENGAGEMENT DISTRICT SMART_AUDIENCE CREATE_NEW AUTO_LOOKALIKE MULT_CUSTOM_AUDIENCES EVENT_CUSTOM_AUDIENCES }}
221
+ api.has_param :audience, { enum: %w{GROUPER NCPP CUSTOM_AUDIENCE LOOKALIKE FANS LOCAL IG_PROMOTED_POST_AUTO SAVED_AUDIENCE EVENT_ENGAGEMENT DISTRICT SMART_AUDIENCE CREATE_NEW AUTO_LOOKALIKE MULT_CUSTOM_AUDIENCES EVENT_CUSTOM_AUDIENCES AUTO_PAGE_LOOKALIKE }}
222
222
  api.has_param :targeting, 'Targeting'
223
223
  api.has_param :start_time, 'int'
224
224
  api.has_param :stop_time, 'int'
@@ -227,7 +227,7 @@ module FacebookAds
227
227
  api.has_param :flow_id, 'string'
228
228
  api.has_param :audience_id, 'string'
229
229
  api.has_param :bid_amount, 'int'
230
- api.has_param :cta_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 WOODHENGE_SUPPORT EVENT_RSVP WHATSAPP_MESSAGE FOLLOW_NEWS_STORYLINE }}
230
+ api.has_param :cta_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 WOODHENGE_SUPPORT EVENT_RSVP WHATSAPP_MESSAGE FOLLOW_NEWS_STORYLINE SEE_MORE }}
231
231
  end
232
232
  end
233
233
 
@@ -27,7 +27,6 @@ module FacebookAds
27
27
 
28
28
  class PageSavedFilter < AdObject
29
29
  SECTION = [
30
- "AUDIENCE_ALERTS",
31
30
  "CANDIDATE_VIDEOS",
32
31
  "CHEX_PENDING_ORDERS",
33
32
  "CHEX_COMPLETED_ORDERS",
@@ -226,7 +226,7 @@ module FacebookAds
226
226
  api.has_param :budget, 'int'
227
227
  api.has_param :currency, 'string'
228
228
  api.has_param :ad_account_id, 'string'
229
- api.has_param :audience, { enum: %w{GROUPER NCPP CUSTOM_AUDIENCE LOOKALIKE FANS LOCAL IG_PROMOTED_POST_AUTO SAVED_AUDIENCE EVENT_ENGAGEMENT DISTRICT SMART_AUDIENCE CREATE_NEW AUTO_LOOKALIKE MULT_CUSTOM_AUDIENCES EVENT_CUSTOM_AUDIENCES }}
229
+ api.has_param :audience, { enum: %w{GROUPER NCPP CUSTOM_AUDIENCE LOOKALIKE FANS LOCAL IG_PROMOTED_POST_AUTO SAVED_AUDIENCE EVENT_ENGAGEMENT DISTRICT SMART_AUDIENCE CREATE_NEW AUTO_LOOKALIKE MULT_CUSTOM_AUDIENCES EVENT_CUSTOM_AUDIENCES AUTO_PAGE_LOOKALIKE }}
230
230
  api.has_param :targeting, 'Targeting'
231
231
  api.has_param :start_time, 'int'
232
232
  api.has_param :stop_time, 'int'
@@ -235,7 +235,7 @@ module FacebookAds
235
235
  api.has_param :flow_id, 'string'
236
236
  api.has_param :audience_id, 'string'
237
237
  api.has_param :bid_amount, 'int'
238
- api.has_param :cta_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 WOODHENGE_SUPPORT EVENT_RSVP WHATSAPP_MESSAGE FOLLOW_NEWS_STORYLINE }}
238
+ api.has_param :cta_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 WOODHENGE_SUPPORT EVENT_RSVP WHATSAPP_MESSAGE FOLLOW_NEWS_STORYLINE SEE_MORE }}
239
239
  end
240
240
  end
241
241
 
@@ -49,10 +49,9 @@ module FacebookAds
49
49
  "google",
50
50
  ]
51
51
 
52
- PRODUCT_TYPE = [
52
+ ITEM_TYPE = [
53
53
  "AUTO",
54
54
  "AUTO_MARKET",
55
- "AUTO_OFFER",
56
55
  "AUTOMOTIVE_MODEL",
57
56
  "DESTINATION",
58
57
  "FLIGHT",
@@ -85,8 +84,6 @@ module FacebookAds
85
84
  field :feed_count, 'int'
86
85
  field :flight_catalog_settings, 'FlightCatalogSettings'
87
86
  field :id, 'string'
88
- field :image_padding_landscape, 'bool'
89
- field :image_padding_square, 'bool'
90
87
  field :name, 'string'
91
88
  field :product_count, 'int'
92
89
  field :qualified_product_count, 'int'
@@ -167,6 +164,17 @@ module FacebookAds
167
164
  api.has_param :bulk_pagination, 'bool'
168
165
  api.has_param :filter, 'object'
169
166
  end
167
+ edge.post 'Destination' do |api|
168
+ api.has_param :destination_id, 'string'
169
+ api.has_param :images, { list: 'object' }
170
+ api.has_param :types, 'string'
171
+ api.has_param :url, 'object'
172
+ api.has_param :name, 'string'
173
+ api.has_param :address, 'object'
174
+ api.has_param :currency, 'string'
175
+ api.has_param :price, 'int'
176
+ api.has_param :description, 'string'
177
+ end
170
178
  end
171
179
 
172
180
  has_edge :event_stats do |edge|
@@ -261,6 +269,13 @@ module FacebookAds
261
269
  end
262
270
  end
263
271
 
272
+ has_edge :items_batch do |edge|
273
+ edge.post 'ProductCatalog' do |api|
274
+ api.has_param :requests, 'hash'
275
+ api.has_param :item_type, { enum: -> { ProductCatalog::ITEM_TYPE }}
276
+ end
277
+ end
278
+
264
279
  has_edge :pricing_variables_batch do |edge|
265
280
  edge.get 'ProductCatalogPricingVariablesBatch' do |api|
266
281
  api.has_param :handle, 'string'
@@ -397,13 +412,6 @@ module FacebookAds
397
412
  end
398
413
  end
399
414
 
400
- has_edge :products_batch do |edge|
401
- edge.post 'ProductCatalog' do |api|
402
- api.has_param :requests, 'hash'
403
- api.has_param :product_type, { enum: -> { ProductCatalog::PRODUCT_TYPE }}
404
- end
405
- end
406
-
407
415
  has_edge :userpermissions do |edge|
408
416
  edge.delete do |api|
409
417
  api.has_param :user, 'int'
@@ -28,7 +28,6 @@ module FacebookAds
28
28
  class ProductCatalogUserPermissions < AdObject
29
29
 
30
30
  field :business, 'Business'
31
- field :business_persona, 'object'
32
31
  field :created_by, 'User'
33
32
  field :created_time, 'datetime'
34
33
  field :email, 'string'
@@ -80,11 +80,11 @@ module FacebookAds
80
80
  field :override_type, 'string'
81
81
  field :product_count, 'int'
82
82
  field :qualified_product_count, 'int'
83
- field :quoted_fields, 'bool'
84
83
  field :quoted_fields_mode, { enum: -> { QUOTED_FIELDS_MODE }}
85
84
  field :schedule, 'ProductFeedSchedule'
86
85
  field :update_schedule, 'ProductFeedSchedule'
87
86
  field :feed_type, { enum: -> { FEED_TYPE }}
87
+ field :quoted_fields, 'bool'
88
88
  field :rules, { list: 'string' }
89
89
 
90
90
  has_edge :automotive_models do |edge|
@@ -39,11 +39,9 @@ module FacebookAds
39
39
 
40
40
 
41
41
  field :affected_surfaces, { list: { enum: -> { AFFECTED_SURFACES }} }
42
- field :column_number, 'int'
43
42
  field :description, 'string'
44
43
  field :error_type, 'string'
45
44
  field :id, 'string'
46
- field :row_number, 'int'
47
45
  field :severity, { enum: -> { SEVERITY }}
48
46
  field :summary, 'string'
49
47
  field :total_count, 'int'
@@ -40,7 +40,6 @@ module FacebookAds
40
40
  field :left, 'int'
41
41
  field :right, 'int'
42
42
  field :top, 'int'
43
- field :uri, 'string'
44
43
  field :url, 'string'
45
44
  field :width, 'int'
46
45
  field :id, 'string'
@@ -48,6 +48,7 @@ module FacebookAds
48
48
  "APP_DOWNLOADS",
49
49
  "LANDING_PAGE_VIEWS",
50
50
  "VALUE",
51
+ "THRUPLAY",
51
52
  "REPLIES",
52
53
  "DERIVED_EVENTS",
53
54
  ]
@@ -47,6 +47,7 @@ module FacebookAds
47
47
  field :audience_network_positions, { list: 'string' }
48
48
  field :behaviors, { list: 'IdName' }
49
49
  field :brand_safety_content_severity_levels, { list: 'string' }
50
+ field :catalog_based_targeting, 'CatalogBasedTargeting'
50
51
  field :cities, { list: 'IdName' }
51
52
  field :college_years, { list: 'int' }
52
53
  field :connections, { list: 'IdName' }
@@ -117,7 +118,6 @@ module FacebookAds
117
118
  field :radius, 'string'
118
119
  field :regions, { list: 'IdName' }
119
120
  field :relationship_statuses, { list: 'int' }
120
- field :rtb_flag, 'bool'
121
121
  field :site_category, { list: 'string' }
122
122
  field :targeting_optimization, 'string'
123
123
  field :user_adclusters, { list: 'IdName' }
@@ -39,8 +39,6 @@ module FacebookAds
39
39
  field :senders, 'object'
40
40
  field :snippet, 'string'
41
41
  field :subject, 'string'
42
- field :tags, 'object'
43
- field :thread_key, 'string'
44
42
  field :unread_count, 'int'
45
43
  field :updated_time, 'datetime'
46
44
  field :wallpaper, 'string'
@@ -34,7 +34,6 @@ module FacebookAds
34
34
  field :instant_article, 'InstantArticle'
35
35
  field :og_object, 'object'
36
36
  field :ownership_permissions, 'object'
37
- field :share, 'object'
38
37
  has_no_delete
39
38
 
40
39
  end
@@ -116,7 +116,6 @@ module FacebookAds
116
116
  field :address, 'Location'
117
117
  field :admin_notes, { list: 'PageAdminNote' }
118
118
  field :age_range, 'AgeRange'
119
- field :bio, 'string'
120
119
  field :birthday, 'string'
121
120
  field :can_review_measurement_request, 'bool'
122
121
  field :context, 'UserContext'
@@ -137,12 +136,10 @@ module FacebookAds
137
136
  field :installed, 'bool'
138
137
  field :interested_in, { list: 'string' }
139
138
  field :is_famedeeplinkinguser, 'bool'
140
- field :is_payment_enabled, 'bool'
141
139
  field :is_shared_login, 'bool'
142
140
  field :is_verified, 'bool'
143
141
  field :labels, { list: 'PageLabel' }
144
142
  field :languages, { list: 'Experience' }
145
- field :last_ad_referral, 'MessengerPlatformReferral'
146
143
  field :last_name, 'string'
147
144
  field :link, 'string'
148
145
  field :local_news_megaphone_dismiss_status, 'bool'
@@ -170,7 +167,6 @@ module FacebookAds
170
167
  field :timezone, 'double'
171
168
  field :token_for_business, 'string'
172
169
  field :updated_time, 'datetime'
173
- field :username, 'string'
174
170
  field :verified, 'bool'
175
171
  field :video_upload_limits, 'VideoUploadLimits'
176
172
  field :viewer_can_send_gift, 'bool'
@@ -410,7 +406,7 @@ module FacebookAds
410
406
  edge.get 'UnifiedThread' do |api|
411
407
  api.has_param :tags, { list: 'string' }
412
408
  api.has_param :folder, 'string'
413
- api.has_param :psid, 'object'
409
+ api.has_param :user_id, 'string'
414
410
  end
415
411
  end
416
412
 
@@ -1120,7 +1116,7 @@ module FacebookAds
1120
1116
  edge.get 'UnifiedThread' do |api|
1121
1117
  api.has_param :tags, { list: 'string' }
1122
1118
  api.has_param :folder, 'string'
1123
- api.has_param :psid, 'object'
1119
+ api.has_param :user_id, 'string'
1124
1120
  end
1125
1121
  end
1126
1122
 
@@ -31,21 +31,9 @@ module FacebookAds
31
31
  has_no_post
32
32
  has_no_delete
33
33
 
34
- has_edge :all_mutual_friends do |edge|
35
- edge.get
36
- end
37
-
38
- has_edge :mutual_friends do |edge|
39
- edge.get 'User'
40
- end
41
-
42
34
  has_edge :mutual_likes do |edge|
43
35
  edge.get 'Page'
44
36
  end
45
37
 
46
- has_edge :three_degree_mutual_friends do |edge|
47
- edge.get
48
- end
49
-
50
38
  end
51
39
  end
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.3.2.3'
22
+ VERSION = '0.3.2.4'
23
23
  API_VERSION = '3.2'
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.2.3
4
+ version: 0.3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-16 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -211,7 +211,6 @@ files:
211
211
  - lib/facebook_ads/ad_objects/ad_account_user.rb
212
212
  - lib/facebook_ads/ad_objects/ad_account_user_permissions.rb
213
213
  - lib/facebook_ads/ad_objects/ad_activity.rb
214
- - lib/facebook_ads/ad_objects/ad_asset_feed.rb
215
214
  - lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb
216
215
  - lib/facebook_ads/ad_objects/ad_asset_feed_spec_asset_label.rb
217
216
  - lib/facebook_ads/ad_objects/ad_asset_feed_spec_body.rb
@@ -312,7 +311,6 @@ files:
312
311
  - lib/facebook_ads/ad_objects/ad_video.rb
313
312
  - lib/facebook_ads/ad_objects/adgroup_activity.rb
314
313
  - lib/facebook_ads/ad_objects/adgroup_issues_info.rb
315
- - lib/facebook_ads/ad_objects/adgroup_metadata.rb
316
314
  - lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb
317
315
  - lib/facebook_ads/ad_objects/adgroup_relevance_score.rb
318
316
  - lib/facebook_ads/ad_objects/adgroup_review_feedback.rb
@@ -391,6 +389,7 @@ files:
391
389
  - lib/facebook_ads/ad_objects/canvas_ad_settings.rb
392
390
  - lib/facebook_ads/ad_objects/canvas_body_element.rb
393
391
  - lib/facebook_ads/ad_objects/canvas_collection_thumbnail.rb
392
+ - lib/facebook_ads/ad_objects/catalog_based_targeting.rb
394
393
  - lib/facebook_ads/ad_objects/check_batch_request_status.rb
395
394
  - lib/facebook_ads/ad_objects/child_event.rb
396
395
  - lib/facebook_ads/ad_objects/client_transparency_status.rb
@@ -508,11 +507,13 @@ files:
508
507
  - lib/facebook_ads/ad_objects/live_video_error.rb
509
508
  - lib/facebook_ads/ad_objects/live_video_input_stream.rb
510
509
  - lib/facebook_ads/ad_objects/live_video_targeting.rb
510
+ - lib/facebook_ads/ad_objects/live_with_guest_session.rb
511
511
  - lib/facebook_ads/ad_objects/location.rb
512
512
  - lib/facebook_ads/ad_objects/lookalike_spec.rb
513
513
  - lib/facebook_ads/ad_objects/mailing_address.rb
514
514
  - lib/facebook_ads/ad_objects/measurement_report.rb
515
515
  - lib/facebook_ads/ad_objects/media_fingerprint.rb
516
+ - lib/facebook_ads/ad_objects/merchant_compliance.rb
516
517
  - lib/facebook_ads/ad_objects/merchant_report.rb
517
518
  - lib/facebook_ads/ad_objects/messaging_feature_review.rb
518
519
  - lib/facebook_ads/ad_objects/messenger_destination_page_welcome_message.rb
@@ -548,6 +549,7 @@ files:
548
549
  - lib/facebook_ads/ad_objects/page_insights_async_export_run.rb
549
550
  - lib/facebook_ads/ad_objects/page_label.rb
550
551
  - lib/facebook_ads/ad_objects/page_locations_breakdown.rb
552
+ - lib/facebook_ads/ad_objects/page_locations_health_summary.rb
551
553
  - lib/facebook_ads/ad_objects/page_parking.rb
552
554
  - lib/facebook_ads/ad_objects/page_payment_options.rb
553
555
  - lib/facebook_ads/ad_objects/page_post.rb
@@ -608,7 +610,6 @@ files:
608
610
  - lib/facebook_ads/ad_objects/profile.rb
609
611
  - lib/facebook_ads/ad_objects/profile_picture_source.rb
610
612
  - lib/facebook_ads/ad_objects/publisher_block_list.rb
611
- - lib/facebook_ads/ad_objects/publisher_space.rb
612
613
  - lib/facebook_ads/ad_objects/raw_custom_audience.rb
613
614
  - lib/facebook_ads/ad_objects/reach_estimate.rb
614
615
  - lib/facebook_ads/ad_objects/reach_frequency_activity.rb
@@ -1,217 +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 AdAssetFeed < AdObject
29
- AD_FORMATS = [
30
- "AUTOMATIC_FORMAT",
31
- "CAROUSEL_IMAGE",
32
- "CAROUSEL_VIDEO",
33
- "SINGLE_IMAGE",
34
- "SINGLE_VIDEO",
35
- ]
36
-
37
- CALL_TO_ACTION_TYPES = [
38
- "OPEN_LINK",
39
- "LIKE_PAGE",
40
- "SHOP_NOW",
41
- "PLAY_GAME",
42
- "INSTALL_APP",
43
- "USE_APP",
44
- "CALL",
45
- "CALL_ME",
46
- "INSTALL_MOBILE_APP",
47
- "USE_MOBILE_APP",
48
- "MOBILE_DOWNLOAD",
49
- "BOOK_TRAVEL",
50
- "LISTEN_MUSIC",
51
- "WATCH_VIDEO",
52
- "LEARN_MORE",
53
- "SIGN_UP",
54
- "DOWNLOAD",
55
- "WATCH_MORE",
56
- "NO_BUTTON",
57
- "VISIT_PAGES_FEED",
58
- "APPLY_NOW",
59
- "BUY_NOW",
60
- "GET_OFFER",
61
- "GET_OFFER_VIEW",
62
- "BUY_TICKETS",
63
- "UPDATE_APP",
64
- "GET_DIRECTIONS",
65
- "BUY",
66
- "MESSAGE_PAGE",
67
- "DONATE",
68
- "SUBSCRIBE",
69
- "SAY_THANKS",
70
- "SELL_NOW",
71
- "SHARE",
72
- "DONATE_NOW",
73
- "GET_QUOTE",
74
- "CONTACT_US",
75
- "ORDER_NOW",
76
- "ADD_TO_CART",
77
- "VIDEO_ANNOTATION",
78
- "MOMENTS",
79
- "RECORD_NOW",
80
- "GET_SHOWTIMES",
81
- "LISTEN_NOW",
82
- "WOODHENGE_SUPPORT",
83
- "EVENT_RSVP",
84
- "WHATSAPP_MESSAGE",
85
- "FOLLOW_NEWS_STORYLINE",
86
- ]
87
-
88
- OPTIMIZATION_TYPE = [
89
- "REGULAR",
90
- "LANGUAGE",
91
- "PLACEMENT",
92
- "VIDEO_BANDWIDTH",
93
- "BRAND",
94
- "ASSET_CUSTOMIZATION",
95
- "DCO_PARITY",
96
- "PREVIEW_DYNAMIC_RENDERING",
97
- ]
98
-
99
- CALL_TO_ACTION_TYPE = [
100
- "OPEN_LINK",
101
- "LIKE_PAGE",
102
- "SHOP_NOW",
103
- "PLAY_GAME",
104
- "INSTALL_APP",
105
- "USE_APP",
106
- "CALL",
107
- "CALL_ME",
108
- "INSTALL_MOBILE_APP",
109
- "USE_MOBILE_APP",
110
- "MOBILE_DOWNLOAD",
111
- "BOOK_TRAVEL",
112
- "LISTEN_MUSIC",
113
- "WATCH_VIDEO",
114
- "LEARN_MORE",
115
- "SIGN_UP",
116
- "DOWNLOAD",
117
- "WATCH_MORE",
118
- "NO_BUTTON",
119
- "VISIT_PAGES_FEED",
120
- "APPLY_NOW",
121
- "BUY_NOW",
122
- "GET_OFFER",
123
- "GET_OFFER_VIEW",
124
- "BUY_TICKETS",
125
- "UPDATE_APP",
126
- "GET_DIRECTIONS",
127
- "BUY",
128
- "MESSAGE_PAGE",
129
- "DONATE",
130
- "SUBSCRIBE",
131
- "SAY_THANKS",
132
- "SELL_NOW",
133
- "SHARE",
134
- "DONATE_NOW",
135
- "GET_QUOTE",
136
- "CONTACT_US",
137
- "ORDER_NOW",
138
- "ADD_TO_CART",
139
- "VIDEO_ANNOTATION",
140
- "MOMENTS",
141
- "RECORD_NOW",
142
- "GET_SHOWTIMES",
143
- "LISTEN_NOW",
144
- "WOODHENGE_SUPPORT",
145
- "EVENT_RSVP",
146
- "WHATSAPP_MESSAGE",
147
- "FOLLOW_NEWS_STORYLINE",
148
- ]
149
-
150
-
151
- field :account, 'AdAccount'
152
- field :ad_formats, { list: 'string' }
153
- field :additional_data, 'object'
154
- field :autotranslate, { list: 'string' }
155
- field :id, 'string'
156
- field :optimization_type, 'string'
157
- field :images, { list: 'object' }
158
- field :videos, { list: 'object' }
159
- field :bodies, { list: 'object' }
160
- field :call_to_action_types, { list: { enum: -> { CALL_TO_ACTION_TYPES }} }
161
- field :descriptions, { list: 'object' }
162
- field :link_urls, { list: 'object' }
163
- field :titles, { list: 'object' }
164
- field :captions, { list: 'object' }
165
- field :groups, { list: 'object' }
166
- field :target_rules, { list: 'object' }
167
- field :asset_customization_rules, { list: 'object' }
168
- field :call_to_actions, { list: 'object' }
169
- field :image, 'object'
170
- field :video, 'object'
171
- field :call_to_action_type, { enum: -> { CALL_TO_ACTION_TYPE }}
172
- field :default_language, 'string'
173
- has_no_post
174
- has_no_delete
175
-
176
- has_edge :asset_customization_rules do |edge|
177
- edge.get
178
- end
179
-
180
- has_edge :bodies do |edge|
181
- edge.get
182
- end
183
-
184
- has_edge :call_to_action_types do |edge|
185
- edge.get
186
- end
187
-
188
- has_edge :captions do |edge|
189
- edge.get
190
- end
191
-
192
- has_edge :descriptions do |edge|
193
- edge.get
194
- end
195
-
196
- has_edge :groups do |edge|
197
- edge.get
198
- end
199
-
200
- has_edge :images do |edge|
201
- edge.get
202
- end
203
-
204
- has_edge :link_urls do |edge|
205
- edge.get
206
- end
207
-
208
- has_edge :titles do |edge|
209
- edge.get
210
- end
211
-
212
- has_edge :videos do |edge|
213
- edge.get
214
- end
215
-
216
- end
217
- end