facebookbusiness 0.8.0.0 → 0.8.0.2

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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +9 -0
  3. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +23 -0
  4. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
  5. data/lib/facebook_ads/ad_objects/ad_creative_instagram_branded_content.rb +36 -0
  6. data/lib/facebook_ads/ad_objects/ad_creative_interactive_components_spec.rb +1 -0
  7. data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
  9. data/lib/facebook_ads/ad_objects/ad_video.rb +7 -0
  10. data/lib/facebook_ads/ad_objects/adoptable_pet.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/ads_pixel.rb +3 -0
  12. data/lib/facebook_ads/ad_objects/application.rb +22 -0
  13. data/lib/facebook_ads/ad_objects/atlas_campaign.rb +1 -1
  14. data/lib/facebook_ads/ad_objects/automotive_model.rb +1 -0
  15. data/lib/facebook_ads/ad_objects/business.rb +49 -0
  16. data/lib/facebook_ads/ad_objects/business_asset_group.rb +2 -0
  17. data/lib/facebook_ads/ad_objects/business_role_request.rb +4 -0
  18. data/lib/facebook_ads/ad_objects/business_unit.rb +1 -1
  19. data/lib/facebook_ads/ad_objects/business_user.rb +4 -0
  20. data/lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb +88 -0
  21. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +19 -0
  22. data/lib/facebook_ads/ad_objects/commerce_order.rb +6 -0
  23. data/lib/facebook_ads/ad_objects/{work_meeting_link.rb → connections_targeting.rb} +3 -2
  24. data/lib/facebook_ads/ad_objects/cpas_advertiser_partnership_recommendation.rb +43 -0
  25. data/lib/facebook_ads/ad_objects/cpas_collaboration_request.rb +50 -0
  26. data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
  27. data/lib/facebook_ads/ad_objects/da_check.rb +7 -0
  28. data/lib/facebook_ads/ad_objects/destination.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/event.rb +1 -0
  30. data/lib/facebook_ads/ad_objects/extended_credit.rb +7 -0
  31. data/lib/facebook_ads/ad_objects/flight.rb +1 -0
  32. data/lib/facebook_ads/ad_objects/group.rb +5 -0
  33. data/lib/facebook_ads/ad_objects/home_listing.rb +1 -0
  34. data/lib/facebook_ads/ad_objects/hotel.rb +1 -0
  35. data/lib/facebook_ads/ad_objects/live_video.rb +12 -12
  36. data/lib/facebook_ads/ad_objects/page.rb +21 -1
  37. data/lib/facebook_ads/ad_objects/page_post.rb +2 -0
  38. data/lib/facebook_ads/ad_objects/photo.rb +6 -0
  39. data/lib/facebook_ads/ad_objects/post.rb +3 -1
  40. data/lib/facebook_ads/ad_objects/product_catalog.rb +38 -0
  41. data/lib/facebook_ads/ad_objects/product_feed.rb +30 -0
  42. data/lib/facebook_ads/ad_objects/product_group.rb +1 -0
  43. data/lib/facebook_ads/ad_objects/product_item.rb +2 -0
  44. data/lib/facebook_ads/ad_objects/product_set.rb +1 -0
  45. data/lib/facebook_ads/ad_objects/product_set_metadata.rb +1 -0
  46. data/lib/facebook_ads/ad_objects/publisher_block_list.rb +6 -0
  47. data/lib/facebook_ads/ad_objects/security_settings.rb +0 -1
  48. data/lib/facebook_ads/ad_objects/server_side/event_request.rb +11 -11
  49. data/lib/facebook_ads/ad_objects/server_side/event_request_async.rb +31 -0
  50. data/lib/facebook_ads/ad_objects/server_side/user_data.rb +20 -1
  51. data/lib/facebook_ads/ad_objects/system_user.rb +4 -0
  52. data/lib/facebook_ads/ad_objects/targeting.rb +3 -3
  53. data/lib/facebook_ads/ad_objects/unified_thread.rb +1 -0
  54. data/lib/facebook_ads/ad_objects/user.rb +6 -11
  55. data/lib/facebook_ads/ad_objects/vehicle.rb +1 -0
  56. data/lib/facebook_ads/ad_objects/vehicle_offer.rb +1 -0
  57. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +22 -0
  58. data/lib/facebook_ads/errors.rb +1 -1
  59. data/lib/facebook_ads/version.rb +1 -1
  60. metadata +26 -7
@@ -26,6 +26,11 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class CommerceMerchantSettings < AdObject
29
+ CTA = [
30
+ "CONTACT_MERCHANT",
31
+ "OFFSITE_LINK",
32
+ ]
33
+
29
34
  MERCHANT_STATUS = [
30
35
  "ENABLED",
31
36
  "EXTERNALLY_DISABLED",
@@ -35,6 +40,7 @@ module FacebookAds
35
40
  field :braintree_merchant_id, 'string'
36
41
  field :checkout_message, 'string'
37
42
  field :contact_email, 'string'
43
+ field :cta, 'string'
38
44
  field :disable_checkout_urls, 'bool'
39
45
  field :display_name, 'string'
40
46
  field :facebook_channel, 'object'
@@ -92,6 +98,19 @@ module FacebookAds
92
98
  edge.get 'CommerceMerchantSettingsSetupStatus'
93
99
  end
94
100
 
101
+ has_edge :shipping_profiles do |edge|
102
+ edge.get do |api|
103
+ api.has_param :reference_id, 'string'
104
+ end
105
+ edge.post do |api|
106
+ api.has_param :handling_time, 'hash'
107
+ api.has_param :is_default_shipping_profile, 'bool'
108
+ api.has_param :name, 'string'
109
+ api.has_param :reference_id, 'string'
110
+ api.has_param :shipping_destinations, { list: 'hash' }
111
+ end
112
+ end
113
+
95
114
  has_edge :tax_settings do |edge|
96
115
  edge.get
97
116
  end
@@ -62,6 +62,7 @@ module FacebookAds
62
62
  field :estimated_payment_details, 'object'
63
63
  field :id, 'string'
64
64
  field :is_group_buy, 'bool'
65
+ field :is_test_order, 'bool'
65
66
  field :last_updated, 'string'
66
67
  field :merchant_order_id, 'string'
67
68
  field :order_status, 'object'
@@ -75,6 +76,7 @@ module FacebookAds
75
76
  edge.post 'CommerceOrder' do |api|
76
77
  api.has_param :idempotency_key, 'string'
77
78
  api.has_param :merchant_order_reference, 'string'
79
+ api.has_param :return_error_response, 'bool'
78
80
  end
79
81
  end
80
82
 
@@ -96,6 +98,10 @@ module FacebookAds
96
98
  edge.get
97
99
  end
98
100
 
101
+ has_edge :promotion_details do |edge|
102
+ edge.get
103
+ end
104
+
99
105
  has_edge :promotions do |edge|
100
106
  edge.get
101
107
  end
@@ -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 WorkMeetingLink < AdObject
28
+ class ConnectionsTargeting < AdObject
29
29
 
30
30
  field :id, 'string'
31
- field :owner, 'User'
31
+ field :name, 'string'
32
+ has_no_get
32
33
  has_no_post
33
34
  has_no_delete
34
35
 
@@ -0,0 +1,43 @@
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 CpasAdvertiserPartnershipRecommendation < AdObject
29
+
30
+ field :advertiser_business_id, 'string'
31
+ field :brand_business_id, 'string'
32
+ field :brands, { list: 'string' }
33
+ field :countries, { list: 'string' }
34
+ field :id, 'string'
35
+ field :merchant_business_id, 'string'
36
+ field :merchant_categories, { list: 'string' }
37
+ field :status, 'string'
38
+ field :status_reason, 'string'
39
+ has_no_post
40
+ has_no_delete
41
+
42
+ end
43
+ end
@@ -0,0 +1,50 @@
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 CpasCollaborationRequest < AdObject
29
+ REQUESTER_AGENCY_OR_BRAND = [
30
+ "AGENCY",
31
+ "BRAND",
32
+ "MERCHANT",
33
+ ]
34
+
35
+
36
+ field :brands, { list: 'string' }
37
+ field :contact_email, 'string'
38
+ field :contact_first_name, 'string'
39
+ field :contact_last_name, 'string'
40
+ field :id, 'string'
41
+ field :phone_number, 'string'
42
+ field :receiver_business, 'Business'
43
+ field :requester_agency_or_brand, 'string'
44
+ field :sender_client_business, 'Business'
45
+ field :status, 'string'
46
+ has_no_post
47
+ has_no_delete
48
+
49
+ end
50
+ end
@@ -69,6 +69,7 @@ module FacebookAds
69
69
  "PLATFORM",
70
70
  "PLATFORM_USERS",
71
71
  "SEED_LIST",
72
+ "SIGNAL_SOURCE",
72
73
  "SMART_AUDIENCE",
73
74
  "STORE_VISIT_EVENTS",
74
75
  "S_EXPR",
@@ -26,6 +26,13 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class DaCheck < AdObject
29
+ CONNECTION_METHOD = [
30
+ "ALL",
31
+ "APP",
32
+ "BROWSER",
33
+ "SERVER",
34
+ ]
35
+
29
36
 
30
37
  field :action_uri, 'string'
31
38
  field :description, 'string'
@@ -29,6 +29,7 @@ module FacebookAds
29
29
 
30
30
  field :address, 'string'
31
31
  field :applinks, 'CatalogItemAppLinks'
32
+ field :category_specific_fields, 'CatalogSubVerticalList'
32
33
  field :currency, 'string'
33
34
  field :description, 'string'
34
35
  field :destination_id, 'string'
@@ -132,6 +132,7 @@ module FacebookAds
132
132
  edge.post 'LiveVideo' do |api|
133
133
  api.has_param :content_tags, { list: 'string' }
134
134
  api.has_param :description, 'string'
135
+ api.has_param :enable_backup_ingest, 'bool'
135
136
  api.has_param :encoding_settings, 'string'
136
137
  api.has_param :fisheye_video_cropped, 'bool'
137
138
  api.has_param :front_z_rotation, 'double'
@@ -68,5 +68,12 @@ module FacebookAds
68
68
  end
69
69
  end
70
70
 
71
+ has_edge :whatsapp_credit_sharing_and_attach do |edge|
72
+ edge.post do |api|
73
+ api.has_param :waba_currency, 'string'
74
+ api.has_param :waba_id, 'string'
75
+ end
76
+ end
77
+
71
78
  end
72
79
  end
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  class Flight < AdObject
29
29
 
30
30
  field :applinks, 'CatalogItemAppLinks'
31
+ field :category_specific_fields, 'CatalogSubVerticalList'
31
32
  field :currency, 'string'
32
33
  field :description, 'string'
33
34
  field :destination_airport, 'string'
@@ -73,6 +73,7 @@ module FacebookAds
73
73
  "STUDY_GROUP",
74
74
  "SUPPORT",
75
75
  "TEAMMATES",
76
+ "THEME",
76
77
  "TRAVEL_PLANNING",
77
78
  "WORK_ANNOUNCEMENT",
78
79
  "WORK_DEMO_GROUP",
@@ -80,6 +81,7 @@ module FacebookAds
80
81
  "WORK_EPHEMERAL",
81
82
  "WORK_FEEDBACK",
82
83
  "WORK_FOR_SALE",
84
+ "WORK_GARDEN",
83
85
  "WORK_LEARNING",
84
86
  "WORK_MENTORSHIP",
85
87
  "WORK_MULTI_COMPANY",
@@ -126,6 +128,7 @@ module FacebookAds
126
128
  "STUDY_GROUP",
127
129
  "SUPPORT",
128
130
  "TEAMMATES",
131
+ "THEME",
129
132
  "TRAVEL_PLANNING",
130
133
  "WORK_ANNOUNCEMENT",
131
134
  "WORK_DEMO_GROUP",
@@ -133,6 +136,7 @@ module FacebookAds
133
136
  "WORK_EPHEMERAL",
134
137
  "WORK_FEEDBACK",
135
138
  "WORK_FOR_SALE",
139
+ "WORK_GARDEN",
136
140
  "WORK_LEARNING",
137
141
  "WORK_MENTORSHIP",
138
142
  "WORK_MULTI_COMPANY",
@@ -353,6 +357,7 @@ module FacebookAds
353
357
  edge.post 'LiveVideo' do |api|
354
358
  api.has_param :content_tags, { list: 'string' }
355
359
  api.has_param :description, 'string'
360
+ api.has_param :enable_backup_ingest, 'bool'
356
361
  api.has_param :encoding_settings, 'string'
357
362
  api.has_param :fisheye_video_cropped, 'bool'
358
363
  api.has_param :front_z_rotation, 'double'
@@ -39,6 +39,7 @@ module FacebookAds
39
39
  field :area_size, 'int'
40
40
  field :area_unit, 'string'
41
41
  field :availability, 'string'
42
+ field :category_specific_fields, 'CatalogSubVerticalList'
42
43
  field :co_2_emission_rating_eu, 'object'
43
44
  field :currency, 'string'
44
45
  field :days_on_market, 'int'
@@ -31,6 +31,7 @@ module FacebookAds
31
31
  field :applinks, 'CatalogItemAppLinks'
32
32
  field :brand, 'string'
33
33
  field :category, 'string'
34
+ field :category_specific_fields, 'CatalogSubVerticalList'
34
35
  field :currency, 'string'
35
36
  field :description, 'string'
36
37
  field :guest_ratings, 'string'
@@ -26,6 +26,18 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class LiveVideo < AdObject
29
+ BROADCAST_STATUS = [
30
+ "live",
31
+ "live_stopped",
32
+ "processing",
33
+ "scheduled_canceled",
34
+ "scheduled_expired",
35
+ "scheduled_live",
36
+ "scheduled_unpublished",
37
+ "unpublished",
38
+ "vod",
39
+ ]
40
+
29
41
  PROJECTION = [
30
42
  "CUBEMAP",
31
43
  "EQUIRECTANGULAR",
@@ -55,18 +67,6 @@ module FacebookAds
55
67
  "REGULAR",
56
68
  ]
57
69
 
58
- BROADCAST_STATUS = [
59
- "LIVE",
60
- "LIVE_STOPPED",
61
- "PROCESSING",
62
- "SCHEDULED_CANCELED",
63
- "SCHEDULED_EXPIRED",
64
- "SCHEDULED_LIVE",
65
- "SCHEDULED_UNPUBLISHED",
66
- "UNPUBLISHED",
67
- "VOD",
68
- ]
69
-
70
70
  SOURCE = [
71
71
  "owner",
72
72
  "target",
@@ -113,6 +113,7 @@ module FacebookAds
113
113
  "MANAGE",
114
114
  "MANAGE_JOBS",
115
115
  "MANAGE_LEADS",
116
+ "MESSAGING",
116
117
  "MODERATE",
117
118
  "MODERATE_COMMUNITY",
118
119
  "PAGES_MESSAGING",
@@ -120,6 +121,7 @@ module FacebookAds
120
121
  "PROFILE_PLUS_ADVERTISE",
121
122
  "PROFILE_PLUS_ANALYZE",
122
123
  "PROFILE_PLUS_CREATE_CONTENT",
124
+ "PROFILE_PLUS_LIVE_STREAM_MODERATION",
123
125
  "PROFILE_PLUS_MANAGE",
124
126
  "PROFILE_PLUS_MESSAGING",
125
127
  "PROFILE_PLUS_MODERATE",
@@ -135,6 +137,7 @@ module FacebookAds
135
137
  "MANAGE",
136
138
  "MANAGE_JOBS",
137
139
  "MANAGE_LEADS",
140
+ "MESSAGING",
138
141
  "MODERATE",
139
142
  "MODERATE_COMMUNITY",
140
143
  "PAGES_MESSAGING",
@@ -142,6 +145,7 @@ module FacebookAds
142
145
  "PROFILE_PLUS_ADVERTISE",
143
146
  "PROFILE_PLUS_ANALYZE",
144
147
  "PROFILE_PLUS_CREATE_CONTENT",
148
+ "PROFILE_PLUS_LIVE_STREAM_MODERATION",
145
149
  "PROFILE_PLUS_MANAGE",
146
150
  "PROFILE_PLUS_MESSAGING",
147
151
  "PROFILE_PLUS_MODERATE",
@@ -541,6 +545,13 @@ module FacebookAds
541
545
  end
542
546
  end
543
547
 
548
+ has_edge :business_data do |edge|
549
+ edge.post 'Page' do |api|
550
+ api.has_param :data, { list: 'string' }
551
+ api.has_param :partner_agent, 'string'
552
+ end
553
+ end
554
+
544
555
  has_edge :call_to_actions do |edge|
545
556
  edge.get 'PageCallToAction'
546
557
  end
@@ -672,6 +683,13 @@ module FacebookAds
672
683
  end
673
684
  end
674
685
 
686
+ has_edge :extend_thread_control do |edge|
687
+ edge.post 'Page' do |api|
688
+ api.has_param :duration, 'int'
689
+ api.has_param :recipient, 'object'
690
+ end
691
+ end
692
+
675
693
  has_edge :feed do |edge|
676
694
  edge.get 'PagePost' do |api|
677
695
  api.has_param :include_hidden, 'bool'
@@ -896,6 +914,7 @@ module FacebookAds
896
914
  api.has_param :crossposting_actions, { list: 'hash' }
897
915
  api.has_param :custom_labels, { list: 'string' }
898
916
  api.has_param :description, 'string'
917
+ api.has_param :enable_backup_ingest, 'bool'
899
918
  api.has_param :encoding_settings, 'string'
900
919
  api.has_param :fisheye_video_cropped, 'bool'
901
920
  api.has_param :front_z_rotation, 'double'
@@ -990,7 +1009,7 @@ module FacebookAds
990
1009
 
991
1010
  has_edge :messenger_profile do |edge|
992
1011
  edge.delete do |api|
993
- api.has_param :fields, { list: { enum: %w{ACCOUNT_LINKING_URL GET_STARTED GREETING HOME_URL ICE_BREAKERS PAYMENT_SETTINGS PERSISTENT_MENU TARGET_AUDIENCE WHITELISTED_DOMAINS }} }
1012
+ api.has_param :fields, { list: { enum: %w{ACCOUNT_LINKING_URL GET_STARTED GREETING HOME_URL ICE_BREAKERS PAYMENT_SETTINGS PERSISTENT_MENU PLATFORM TARGET_AUDIENCE WHITELISTED_DOMAINS }} }
994
1013
  end
995
1014
  edge.get 'MessengerProfile'
996
1015
  edge.post 'Page' do |api|
@@ -1148,6 +1167,7 @@ module FacebookAds
1148
1167
  end
1149
1168
  edge.post 'ProfilePictureSource' do |api|
1150
1169
  api.has_param :android_key_hash, 'string'
1170
+ api.has_param :burn_media_effect, 'bool'
1151
1171
  api.has_param :caption, 'string'
1152
1172
  api.has_param :composer_session_id, 'string'
1153
1173
  api.has_param :has_umg, 'bool'
@@ -76,6 +76,7 @@ module FacebookAds
76
76
  field :id, 'string'
77
77
  field :implicit_place, 'Place'
78
78
  field :instagram_eligibility, 'string'
79
+ field :instream_eligibility, 'string'
79
80
  field :is_app_share, 'bool'
80
81
  field :is_eligible_for_promotion, 'bool'
81
82
  field :is_expired, 'bool'
@@ -94,6 +95,7 @@ module FacebookAds
94
95
  field :permalink_url, 'object'
95
96
  field :picture, 'string'
96
97
  field :place, 'Place'
98
+ field :poll, 'object'
97
99
  field :privacy, 'Privacy'
98
100
  field :promotable_id, 'string'
99
101
  field :promotion_status, 'string'
@@ -125,6 +125,12 @@ module FacebookAds
125
125
  end
126
126
  end
127
127
 
128
+ has_edge :reactions do |edge|
129
+ edge.get 'Profile' do |api|
130
+ api.has_param :type, { enum: -> { Profile::TYPE }}
131
+ end
132
+ end
133
+
128
134
  has_edge :sharedposts do |edge|
129
135
  edge.get 'Post'
130
136
  end
@@ -74,6 +74,7 @@ module FacebookAds
74
74
  field :id, 'string'
75
75
  field :implicit_place, 'Place'
76
76
  field :instagram_eligibility, 'string'
77
+ field :instream_eligibility, 'string'
77
78
  field :is_app_share, 'bool'
78
79
  field :is_eligible_for_promotion, 'bool'
79
80
  field :is_expired, 'bool'
@@ -95,6 +96,7 @@ module FacebookAds
95
96
  field :permalink_url, 'object'
96
97
  field :picture, 'string'
97
98
  field :place, 'Place'
99
+ field :poll, 'object'
98
100
  field :privacy, 'Privacy'
99
101
  field :promotable_id, 'string'
100
102
  field :promotion_status, 'string'
@@ -174,7 +176,7 @@ module FacebookAds
174
176
  edge.post do |api|
175
177
  api.has_param :ad_account_id, 'string'
176
178
  api.has_param :ad_conversion_pixel_id, 'int'
177
- api.has_param :audience, { enum: %w{AUTO_LOOKALIKE AUTO_PAGE_LOOKALIKE AUTO_TARGETING COUNTRY_AND_INTEREST CREATE_NEW CUSTOM_AUDIENCE DISTRICT EVENT_CUSTOM_AUDIENCES EVENT_ENGAGEMENT FANS GROUPER HEC_AUDIENCE IG_PROMOTED_POST_AUTO LOCAL LOOKALIKE MARKETPLACE_DEFAULT MULT_CUSTOM_AUDIENCES NCPP SAVED_AUDIENCE SMART_AUDIENCE }}
179
+ api.has_param :audience, { enum: %w{AUTO_LOOKALIKE AUTO_PAGE_LOOKALIKE AUTO_TARGETING COUNTRY_AND_INTEREST CREATE_NEW CUSTOM_AUDIENCE DISTRICT EVENT_CUSTOM_AUDIENCES EVENT_ENGAGEMENT FANS GROUPER HEC_AUDIENCE IG_PROMOTED_POST_AUTO LOCAL LOOKALIKE MARKETPLACE_DEFAULT MARKETPLACE_NATIONWIDE_AUDIENCE MARKETPLACE_SAVED_AUDIENCE MULT_CUSTOM_AUDIENCES NCPP SAVED_AUDIENCE SMART_AUDIENCE }}
178
180
  api.has_param :audience_id, 'string'
179
181
  api.has_param :bid_amount, 'int'
180
182
  api.has_param :budget, 'int'