facebookbusiness 0.3.2.5 → 0.3.2.6

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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +7 -0
  3. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
  5. data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -0
  6. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
  7. data/lib/facebook_ads/ad_objects/ad_campaign_group_metrics_metadata.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ad_set.rb +3 -2
  9. data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/ads_pixel.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/business.rb +16 -11
  12. data/lib/facebook_ads/ad_objects/{creative_democracy_run.rb → business_owned_object_on_behalf_of_request.rb} +10 -44
  13. data/lib/facebook_ads/ad_objects/group.rb +45 -0
  14. data/lib/facebook_ads/ad_objects/iterative_split_test_config.rb +0 -1
  15. data/lib/facebook_ads/ad_objects/live_video.rb +1 -0
  16. data/lib/facebook_ads/ad_objects/lookalike_spec.rb +2 -0
  17. data/lib/facebook_ads/ad_objects/page.rb +14 -8
  18. data/lib/facebook_ads/ad_objects/page_about_story.rb +39 -0
  19. data/lib/facebook_ads/ad_objects/page_post.rb +1 -1
  20. data/lib/facebook_ads/ad_objects/page_saved_filter.rb +0 -1
  21. data/lib/facebook_ads/ad_objects/playable_content.rb +1 -0
  22. data/lib/facebook_ads/ad_objects/post.rb +1 -1
  23. data/lib/facebook_ads/ad_objects/reach_estimate.rb +1 -0
  24. data/lib/facebook_ads/ad_objects/targeting.rb +1 -0
  25. data/lib/facebook_ads/ad_objects/user.rb +1 -0
  26. data/lib/facebook_ads/version.rb +1 -1
  27. data/lib/facebookbusiness.rb +18 -0
  28. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf63dff5203faf0fcf1674e0bbb48adc93344766bed806659c3e8bd29dbe55d7
4
- data.tar.gz: e5d2572335703d5958e5bf1c3104cb151687f0da46fbd10617c877eeb75c9b88
3
+ metadata.gz: d1107c544da572a0167f516904bf5c1a627d1e624e3f4af4efa5d230b9af02a0
4
+ data.tar.gz: 68d653fedef9b5234470468d86ac481e63f5be52d5e69a833f9892a600973cba
5
5
  SHA512:
6
- metadata.gz: b9a1c7effe67b71622face91fb617b4f6f34695e9679825a936b728f73fda3649c6e2d671dc2362c9a2b8fe98ccbca2304fe322d767205ff117e8081c9f4a2c3
7
- data.tar.gz: f9067cf46af560fc7e6455ad973941a2d27dea1ac710c8dd06c055e216b0d87c516baa5af946ade39dfee86a3fd5e19f162e8065148b9878629c58defcae9b44
6
+ metadata.gz: 5668f14e4c68660d01139dbaad82901186dde13c0c096b6dbfd03a49eea8873ecdfa4f8ab903f4f57e4ba438255e47cfdf6df2019b1c8f0020efe6947480a409
7
+ data.tar.gz: 38d41c2de297f3a8907636761a4c51581e5e66dfe4ad25c69cc957539ce781fa0745746b5a0a9ab27bc2041d18af3343fee75c46aa250cd42140185e96976389
@@ -361,6 +361,7 @@ module FacebookAds
361
361
  api.has_param :name, 'string'
362
362
  api.has_param :source, 'file'
363
363
  api.has_param :source_url, 'string'
364
+ api.has_param :source_zip, 'file'
364
365
  end
365
366
  end
366
367
 
@@ -1082,6 +1083,12 @@ module FacebookAds
1082
1083
  edge.get 'OffsitePixel'
1083
1084
  end
1084
1085
 
1086
+ has_edge :onbehalf_requests do |edge|
1087
+ edge.get 'BusinessOwnedObjectOnBehalfOfRequest' do |api|
1088
+ api.has_param :status, { enum: -> { BusinessOwnedObjectOnBehalfOfRequest::STATUS }}
1089
+ end
1090
+ end
1091
+
1085
1092
  has_edge :partner_integrations do |edge|
1086
1093
  edge.get 'PartnerIntegrationLinked'
1087
1094
  edge.post 'PartnerIntegrationLinked' do |api|
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  "SOCIAL_IMPRESSIONS",
47
47
  "VIDEO_VIEWS",
48
48
  "APP_DOWNLOADS",
49
+ "TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
49
50
  "LANDING_PAGE_VIEWS",
50
51
  "VALUE",
51
52
  "THRUPLAY",
@@ -137,6 +137,7 @@ module FacebookAds
137
137
  "prospecting_audience",
138
138
  "brand_safety_content_severity_levels",
139
139
  "catalog_based_targeting",
140
+ "brand_safety_content_filter_levels",
140
141
  ]
141
142
 
142
143
  WHITELISTED_TYPES = [
@@ -250,6 +251,7 @@ module FacebookAds
250
251
  "prospecting_audience",
251
252
  "brand_safety_content_severity_levels",
252
253
  "catalog_based_targeting",
254
+ "brand_safety_content_filter_levels",
253
255
  ]
254
256
 
255
257
  MODE = [
@@ -84,6 +84,7 @@ module FacebookAds
84
84
  "SOCIAL_IMPRESSIONS",
85
85
  "VIDEO_VIEWS",
86
86
  "APP_DOWNLOADS",
87
+ "TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
87
88
  "LANDING_PAGE_VIEWS",
88
89
  "VALUE",
89
90
  "THRUPLAY",
@@ -111,6 +112,7 @@ module FacebookAds
111
112
  "SOCIAL_IMPRESSIONS",
112
113
  "VIDEO_VIEWS",
113
114
  "APP_DOWNLOADS",
115
+ "TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
114
116
  "LANDING_PAGE_VIEWS",
115
117
  "VALUE",
116
118
  "THRUPLAY",
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  "SOCIAL_IMPRESSIONS",
47
47
  "VIDEO_VIEWS",
48
48
  "APP_DOWNLOADS",
49
+ "TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
49
50
  "LANDING_PAGE_VIEWS",
50
51
  "VALUE",
51
52
  "THRUPLAY",
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  class AdCampaignGroupMetricsMetadata < AdObject
29
29
 
30
30
  field :budget_optimization, { list: 'string' }
31
+ field :duplication_flow_tips, { list: 'string' }
31
32
  field :id, 'string'
32
33
  has_no_get
33
34
  has_no_post
@@ -86,6 +86,7 @@ module FacebookAds
86
86
  "SOCIAL_IMPRESSIONS",
87
87
  "VIDEO_VIEWS",
88
88
  "APP_DOWNLOADS",
89
+ "TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
89
90
  "LANDING_PAGE_VIEWS",
90
91
  "VALUE",
91
92
  "THRUPLAY",
@@ -244,11 +245,11 @@ module FacebookAds
244
245
  has_edge :adlabels do |edge|
245
246
  edge.delete do |api|
246
247
  api.has_param :adlabels, { list: 'object' }
247
- api.has_param :execution_options, { list: { enum: %w{validate_only }} }
248
+ api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
248
249
  end
249
250
  edge.post 'AdSet' do |api|
250
251
  api.has_param :adlabels, { list: 'object' }
251
- api.has_param :execution_options, { list: { enum: %w{validate_only }} }
252
+ api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
252
253
  end
253
254
  end
254
255
 
@@ -115,6 +115,7 @@ module FacebookAds
115
115
  "HEURISTIC_CLUSTER_VIDEO",
116
116
  "DCO_AUTOGEN_VIDEO",
117
117
  "SOTTO_CONTENT",
118
+ "OCULUS_VENUES_BROADCAST",
118
119
  ]
119
120
 
120
121
  CONTENT_CATEGORY = [
@@ -163,6 +163,7 @@ module FacebookAds
163
163
  api.has_param :end_time, 'object'
164
164
  api.has_param :aggregation, { enum: -> { AdsPixelStatsResult::AGGREGATION }}
165
165
  api.has_param :event, 'string'
166
+ api.has_param :event_source, 'string'
166
167
  end
167
168
  end
168
169
 
@@ -228,6 +228,7 @@ module FacebookAds
228
228
  api.has_param :partner, 'string'
229
229
  api.has_param :invoice, 'bool'
230
230
  api.has_param :po_number, 'string'
231
+ api.has_param :invoicing_emails, { list: 'string' }
231
232
  api.has_param :io, 'bool'
232
233
  api.has_param :billing_address_id, 'object'
233
234
  api.has_param :sold_to_address_id, 'object'
@@ -326,6 +327,7 @@ module FacebookAds
326
327
  edge.delete do |api|
327
328
  api.has_param :business, 'string'
328
329
  end
330
+ edge.get 'Business'
329
331
  end
330
332
 
331
333
  has_edge :agency_pages do |edge|
@@ -426,17 +428,7 @@ module FacebookAds
426
428
  edge.delete do |api|
427
429
  api.has_param :business, 'string'
428
430
  end
429
- end
430
-
431
- has_edge :creative_compass_study do |edge|
432
- edge.get 'CreativeDemocracyRun'
433
- edge.post 'CreativeDemocracyRun' do |api|
434
- api.has_param :campaign_id, { list: 'string' }
435
- api.has_param :creative_id, { list: 'string' }
436
- api.has_param :description, 'string'
437
- api.has_param :name, 'string'
438
- api.has_param :placement, { enum: -> { CreativeDemocracyRun::PLACEMENT }}
439
- end
431
+ edge.get 'Business'
440
432
  end
441
433
 
442
434
  has_edge :customconversions do |edge|
@@ -655,6 +647,7 @@ module FacebookAds
655
647
  api.has_param :partner, 'string'
656
648
  api.has_param :invoice, 'bool'
657
649
  api.has_param :po_number, 'string'
650
+ api.has_param :invoicing_emails, { list: 'string' }
658
651
  api.has_param :io, 'bool'
659
652
  api.has_param :billing_address_id, 'object'
660
653
  api.has_param :sold_to_address_id, 'object'
@@ -733,6 +726,10 @@ module FacebookAds
733
726
  end
734
727
  end
735
728
 
729
+ has_edge :received_inprogress_onbehalf_requests do |edge|
730
+ edge.get 'BusinessOwnedObjectOnBehalfOfRequest'
731
+ end
732
+
736
733
  has_edge :received_sharing_agreements do |edge|
737
734
  edge.get 'BusinessAgreement' do |api|
738
735
  api.has_param :requesting_business_id, 'string'
@@ -740,6 +737,14 @@ module FacebookAds
740
737
  end
741
738
  end
742
739
 
740
+ has_edge :sent_inprogress_onbehalf_requests do |edge|
741
+ edge.get 'BusinessOwnedObjectOnBehalfOfRequest'
742
+ edge.post 'BusinessOwnedObjectOnBehalfOfRequest' do |api|
743
+ api.has_param :receiving_business, 'string'
744
+ api.has_param :business_owned_object, 'string'
745
+ end
746
+ end
747
+
743
748
  has_edge :shared_audience_permissions do |edge|
744
749
  edge.get 'AudiencePermission' do |api|
745
750
  api.has_param :partner_id, 'string'
@@ -25,55 +25,21 @@ 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 CreativeDemocracyRun < AdObject
29
- PLACEMENT = [
30
- "AUDIENCE_NETWORK_INSTREAM_VIDEO",
31
- "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE",
32
- "AUDIENCE_NETWORK_OUTSTREAM_VIDEO",
33
- "AUDIENCE_NETWORK_REWARDED_VIDEO",
34
- "DESKTOP_FEED_STANDARD",
35
- "FACEBOOK_STORY_MOBILE",
36
- "INSTAGRAM_STANDARD",
37
- "INSTAGRAM_STORY",
38
- "INSTANT_ARTICLE_STANDARD",
39
- "INSTREAM_VIDEO_DESKTOP",
40
- "INSTREAM_VIDEO_MOBILE",
41
- "MARKETPLACE_MOBILE",
42
- "MESSENGER_MOBILE_INBOX_MEDIA",
43
- "MOBILE_BANNER",
44
- "MOBILE_FEED_BASIC",
45
- "MOBILE_FEED_STANDARD",
46
- "MOBILE_FULLWIDTH",
47
- "MOBILE_INTERSTITIAL",
48
- "MOBILE_MEDIUM_RECTANGLE",
49
- "MOBILE_NATIVE",
50
- "RIGHT_COLUMN_STANDARD",
51
- "SUGGESTED_VIDEO_DESKTOP",
52
- "SUGGESTED_VIDEO_MOBILE",
53
- "WATCH_FEED_MOBILE",
28
+ class BusinessOwnedObjectOnBehalfOfRequest < AdObject
29
+ STATUS = [
30
+ "APPROVE",
31
+ "DECLINE",
32
+ "IN_PROGRESS",
33
+ "EXPIRED",
54
34
  ]
55
35
 
56
36
 
57
- field :description, 'string'
58
- field :end_date, 'string'
37
+ field :business_owned_object, 'string'
59
38
  field :id, 'string'
60
- field :name, 'string'
61
- field :placement, 'string'
62
- field :report_data, { list: { list: 'object' } }
63
- field :report_files, { list: 'object' }
64
- field :start_date, 'string'
39
+ field :receiving_business, 'Business'
40
+ field :requesting_business, 'Business'
65
41
  field :status, 'string'
66
- field :campaign_id, { list: 'string' }
67
- field :creative_id, { list: 'string' }
68
- has_no_delete
69
-
70
- has_edge :campaign_id do |edge|
71
- edge.get 'Campaign'
72
- end
73
-
74
- has_edge :creative_id do |edge|
75
- edge.get 'AdCreative'
76
- end
42
+ has_no_post
77
43
 
78
44
  end
79
45
  end
@@ -83,6 +83,51 @@ module FacebookAds
83
83
  "ANYONE",
84
84
  ]
85
85
 
86
+ PURPOSE = [
87
+ "FAMILY",
88
+ "CLOSE_FRIENDS",
89
+ "NEIGHBORS",
90
+ "TEAMMATES",
91
+ "FOR_SALE",
92
+ "EVENT_PLANNING",
93
+ "SUPPORT",
94
+ "CLUB",
95
+ "PROJECT",
96
+ "SORORITY",
97
+ "FRATERNITY",
98
+ "STUDY_GROUP",
99
+ "SCHOOL_CLASS",
100
+ "LEARNING",
101
+ "MEME",
102
+ "TRAVEL_PLANNING",
103
+ "COUPLE",
104
+ "PARENTS",
105
+ "CUSTOM",
106
+ "NONE",
107
+ "WORK_TEAM",
108
+ "WORK_TEAMWORK",
109
+ "WORK_FEEDBACK",
110
+ "WORK_ANNOUNCEMENT",
111
+ "WORK_DEMO_GROUP",
112
+ "WORK_SOCIAL",
113
+ "WORK_DISCUSSION",
114
+ "WORK_MULTI_COMPANY",
115
+ "WORK_FOR_SALE",
116
+ "WORK_LEARNING",
117
+ "FITNESS",
118
+ "REAL_WORLD",
119
+ "CASUAL",
120
+ "GAME",
121
+ "HIGH_SCHOOL_FORUM",
122
+ "JOBS",
123
+ "REAL_WORLD_AT_WORK",
124
+ "FOR_WORK",
125
+ "MENTORSHIP",
126
+ "WORK_MENTORSHIP",
127
+ "EPHEMERAL",
128
+ "WORK_EPHEMERAL",
129
+ ]
130
+
86
131
  SUGGESTION_CATEGORY = [
87
132
  "FAMILY",
88
133
  "LIFE_EVENT",
@@ -36,7 +36,6 @@ module FacebookAds
36
36
  field :results_window, 'object'
37
37
  field :splits, { list: 'int' }
38
38
  field :start_time, 'datetime'
39
- field :test_end_metrics_snapshot, 'object'
40
39
  has_no_post
41
40
  has_no_delete
42
41
 
@@ -83,6 +83,7 @@ module FacebookAds
83
83
  "DISCUSSION",
84
84
  "RESTRICTED",
85
85
  "PROTECTED_MODE",
86
+ "SUPPORTER",
86
87
  ]
87
88
 
88
89
 
@@ -30,12 +30,14 @@ module FacebookAds
30
30
  field :country, 'string'
31
31
  field :is_financial_service, 'bool'
32
32
  field :origin, { list: 'object' }
33
+ field :origin_event_name, 'string'
33
34
  field :origin_event_source_name, 'string'
34
35
  field :origin_event_source_type, 'string'
35
36
  field :product_set_name, 'string'
36
37
  field :ratio, 'double'
37
38
  field :starting_ratio, 'double'
38
39
  field :target_countries, { list: 'string' }
40
+ field :target_country_names, { list: 'string' }
39
41
  field :type, 'string'
40
42
  field :id, 'string'
41
43
  has_no_get
@@ -115,6 +115,7 @@ module FacebookAds
115
115
  "MULT_CUSTOM_AUDIENCES",
116
116
  "EVENT_CUSTOM_AUDIENCES",
117
117
  "AUTO_PAGE_LOOKALIKE",
118
+ "AUTO_TARGETING",
118
119
  ]
119
120
 
120
121
  PERMITTED_TASKS = [
@@ -122,6 +123,7 @@ module FacebookAds
122
123
  "CREATE_CONTENT",
123
124
  "MODERATE",
124
125
  "MODERATE_COMMUNITY",
126
+ "MANAGE_JOBS",
125
127
  "ADVERTISE",
126
128
  "ANALYZE",
127
129
  ]
@@ -131,6 +133,7 @@ module FacebookAds
131
133
  "CREATE_CONTENT",
132
134
  "MODERATE",
133
135
  "MODERATE_COMMUNITY",
136
+ "MANAGE_JOBS",
134
137
  "ADVERTISE",
135
138
  "ANALYZE",
136
139
  ]
@@ -383,6 +386,7 @@ module FacebookAds
383
386
  field :new_like_count, 'int'
384
387
  field :offer_eligible, 'bool'
385
388
  field :overall_star_rating, 'double'
389
+ field :page_about_story, 'PageAboutStory'
386
390
  field :page_token, 'string'
387
391
  field :parent_page, 'Page'
388
392
  field :parking, 'PageParking'
@@ -525,10 +529,6 @@ module FacebookAds
525
529
  end
526
530
  end
527
531
 
528
- has_edge :audio_copyrights do |edge|
529
- edge.get 'AudioCopyright'
530
- end
531
-
532
532
  has_edge :audio_media_copyrights do |edge|
533
533
  edge.get 'AudioCopyright'
534
534
  end
@@ -1189,10 +1189,6 @@ module FacebookAds
1189
1189
  end
1190
1190
  end
1191
1191
 
1192
- has_edge :music_video_copyrights do |edge|
1193
- edge.get 'MusicVideoCopyright'
1194
- end
1195
-
1196
1192
  has_edge :music_video_media_copyrights do |edge|
1197
1193
  edge.get 'MusicVideoCopyright'
1198
1194
  end
@@ -1255,6 +1251,16 @@ module FacebookAds
1255
1251
  end
1256
1252
  end
1257
1253
 
1254
+ has_edge :page_about_story do |edge|
1255
+ edge.post 'Page' do |api|
1256
+ api.has_param :is_published, 'bool'
1257
+ api.has_param :title, 'string'
1258
+ api.has_param :cover_photo, 'object'
1259
+ api.has_param :composed_text, { list: 'hash' }
1260
+ api.has_param :entity_map, { list: 'hash' }
1261
+ end
1262
+ end
1263
+
1258
1264
  has_edge :page_backed_instagram_accounts do |edge|
1259
1265
  edge.get 'InstagramUser'
1260
1266
  edge.post 'InstagramUser'
@@ -0,0 +1,39 @@
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 PageAboutStory < AdObject
29
+
30
+ field :composed_text, { list: 'object' }
31
+ field :cover_photo, 'Photo'
32
+ field :entity_map, { list: 'object' }
33
+ field :id, 'string'
34
+ field :is_published, 'bool'
35
+ field :page_id, 'string'
36
+ field :title, 'string'
37
+
38
+ end
39
+ end
@@ -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 AUTO_PAGE_LOOKALIKE }}
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 AUTO_TARGETING }}
222
222
  api.has_param :targeting, 'Targeting'
223
223
  api.has_param :start_time, 'int'
224
224
  api.has_param :stop_time, 'int'
@@ -114,7 +114,6 @@ module FacebookAds
114
114
  "NEWS_SUBSCRIPTIONS_PUBLISHER_INSIGHTS",
115
115
  "NEWS_SUBSCRIPTIONS_PUBLISHER_TEST_USERS",
116
116
  "QR_CODE",
117
- "ORGANIC_PIXEL",
118
117
  "ATTRIBUTIONS",
119
118
  "BROADCASTED_MESSAGES",
120
119
  "BRANDED_CONTENT",
@@ -32,6 +32,7 @@ module FacebookAds
32
32
  field :owner, 'Profile'
33
33
  field :source, 'file'
34
34
  field :source_url, 'string'
35
+ field :source_zip, 'file'
35
36
  has_no_post
36
37
  has_no_delete
37
38
 
@@ -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 AUTO_PAGE_LOOKALIKE }}
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 AUTO_TARGETING }}
230
230
  api.has_param :targeting, 'Targeting'
231
231
  api.has_param :start_time, 'int'
232
232
  api.has_param :stop_time, 'int'
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  "SOCIAL_IMPRESSIONS",
47
47
  "VIDEO_VIEWS",
48
48
  "APP_DOWNLOADS",
49
+ "TWO_SECOND_CONTINUOUS_VIDEO_VIEWS",
49
50
  "LANDING_PAGE_VIEWS",
50
51
  "VALUE",
51
52
  "THRUPLAY",
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  field :app_install_state, 'string'
47
47
  field :audience_network_positions, { list: 'string' }
48
48
  field :behaviors, { list: 'IdName' }
49
+ field :brand_safety_content_filter_levels, { list: 'string' }
49
50
  field :brand_safety_content_severity_levels, { list: 'string' }
50
51
  field :catalog_based_targeting, 'CatalogBasedTargeting'
51
52
  field :cities, { list: 'IdName' }
@@ -31,6 +31,7 @@ module FacebookAds
31
31
  "CREATE_CONTENT",
32
32
  "MODERATE",
33
33
  "MODERATE_COMMUNITY",
34
+ "MANAGE_JOBS",
34
35
  "ADVERTISE",
35
36
  "ANALYZE",
36
37
  ]
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.3.2.5'
22
+ VERSION = '0.3.2.6'
23
23
  API_VERSION = '3.2'
24
24
  end
@@ -1 +1,19 @@
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
+
1
19
  require "facebook_ads"
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.5
4
+ version: 0.3.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -340,6 +340,7 @@ files:
340
340
  - lib/facebook_ads/ad_objects/business_application_request.rb
341
341
  - lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb
342
342
  - lib/facebook_ads/ad_objects/business_matched_search_applications_edge_data.rb
343
+ - lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb
343
344
  - lib/facebook_ads/ad_objects/business_page_request.rb
344
345
  - lib/facebook_ads/ad_objects/business_product_catalog_tos.rb
345
346
  - lib/facebook_ads/ad_objects/business_project.rb
@@ -364,7 +365,6 @@ files:
364
365
  - lib/facebook_ads/ad_objects/copyright_attribution_insights.rb
365
366
  - lib/facebook_ads/ad_objects/copyright_reference_container.rb
366
367
  - lib/facebook_ads/ad_objects/cover_photo.rb
367
- - lib/facebook_ads/ad_objects/creative_democracy_run.rb
368
368
  - lib/facebook_ads/ad_objects/creative_history.rb
369
369
  - lib/facebook_ads/ad_objects/credit_partition_action_options.rb
370
370
  - lib/facebook_ads/ad_objects/currency.rb
@@ -482,6 +482,7 @@ files:
482
482
  - lib/facebook_ads/ad_objects/outcome_prediction_point.rb
483
483
  - lib/facebook_ads/ad_objects/owned_domain.rb
484
484
  - lib/facebook_ads/ad_objects/page.rb
485
+ - lib/facebook_ads/ad_objects/page_about_story.rb
485
486
  - lib/facebook_ads/ad_objects/page_admin_note.rb
486
487
  - lib/facebook_ads/ad_objects/page_broadcast.rb
487
488
  - lib/facebook_ads/ad_objects/page_call_to_action.rb