facebookbusiness 0.3.2.5 → 0.3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad_account.rb +7 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_group_metrics_metadata.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +3 -2
- data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +1 -0
- data/lib/facebook_ads/ad_objects/business.rb +16 -11
- data/lib/facebook_ads/ad_objects/{creative_democracy_run.rb → business_owned_object_on_behalf_of_request.rb} +10 -44
- data/lib/facebook_ads/ad_objects/group.rb +45 -0
- data/lib/facebook_ads/ad_objects/iterative_split_test_config.rb +0 -1
- data/lib/facebook_ads/ad_objects/live_video.rb +1 -0
- data/lib/facebook_ads/ad_objects/lookalike_spec.rb +2 -0
- data/lib/facebook_ads/ad_objects/page.rb +14 -8
- data/lib/facebook_ads/ad_objects/page_about_story.rb +39 -0
- data/lib/facebook_ads/ad_objects/page_post.rb +1 -1
- data/lib/facebook_ads/ad_objects/page_saved_filter.rb +0 -1
- data/lib/facebook_ads/ad_objects/playable_content.rb +1 -0
- data/lib/facebook_ads/ad_objects/post.rb +1 -1
- data/lib/facebook_ads/ad_objects/reach_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/targeting.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +1 -0
- data/lib/facebook_ads/version.rb +1 -1
- data/lib/facebookbusiness.rb +18 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1107c544da572a0167f516904bf5c1a627d1e624e3f4af4efa5d230b9af02a0
|
4
|
+
data.tar.gz: 68d653fedef9b5234470468d86ac481e63f5be52d5e69a833f9892a600973cba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
@@ -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",
|
@@ -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:
|
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:
|
252
|
+
api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} }
|
252
253
|
end
|
253
254
|
end
|
254
255
|
|
@@ -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
|
-
|
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
|
29
|
-
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
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 :
|
58
|
-
field :end_date, 'string'
|
37
|
+
field :business_owned_object, 'string'
|
59
38
|
field :id, 'string'
|
60
|
-
field :
|
61
|
-
field :
|
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
|
-
|
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",
|
@@ -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'
|
@@ -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
|
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' }
|
data/lib/facebook_ads/version.rb
CHANGED
data/lib/facebookbusiness.rb
CHANGED
@@ -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.
|
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:
|
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
|