facebookbusiness 0.3.2.11 → 0.3.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) 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 +3 -0
  4. data/lib/facebook_ads/ad_objects/ad_activity.rb +6 -0
  5. data/lib/facebook_ads/ad_objects/ad_set.rb +3 -2
  6. data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
  7. data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/ads_post.rb +56 -0
  9. data/lib/facebook_ads/ad_objects/album.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/application.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/business.rb +15 -13
  12. data/lib/facebook_ads/ad_objects/campaign.rb +3 -1
  13. data/lib/facebook_ads/ad_objects/direct_deal.rb +1 -1
  14. data/lib/facebook_ads/ad_objects/{business_matched_search_applications_edge_data.rb → dynamic_content_set.rb} +3 -24
  15. data/lib/facebook_ads/ad_objects/event.rb +1 -0
  16. data/lib/facebook_ads/ad_objects/group.rb +3 -0
  17. data/lib/facebook_ads/ad_objects/{shadow_ig_comment.rb → ig_comment.rb} +5 -5
  18. data/lib/facebook_ads/ad_objects/{shadow_ig_media.rb → ig_media.rb} +5 -5
  19. data/lib/facebook_ads/ad_objects/{shadow_ig_user.rb → ig_user.rb} +9 -9
  20. data/lib/facebook_ads/ad_objects/live_encoder.rb +43 -2
  21. data/lib/facebook_ads/ad_objects/measurement_upload_event.rb +148 -13
  22. data/lib/facebook_ads/ad_objects/open_graph_object.rb +1 -0
  23. data/lib/facebook_ads/ad_objects/page.rb +17 -3
  24. data/lib/facebook_ads/ad_objects/partner_integration_linked.rb +1 -0
  25. data/lib/facebook_ads/ad_objects/photo.rb +3 -0
  26. data/lib/facebook_ads/ad_objects/post.rb +1 -0
  27. data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +1 -0
  28. data/lib/facebook_ads/ad_objects/user.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/vehicle.rb +1 -0
  30. data/lib/facebook_ads/version.rb +1 -1
  31. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8e2c106bc049de0d8853f327ca8a1d8dcb880e66a07032de96145fa136f278d
4
- data.tar.gz: 81b72b1da2edc61e341d6aa9e28a69f601f8ca8132d39f02545ab69d3ade2d5d
3
+ metadata.gz: f2fbaad199363656164f737858922da3bfdc5913d216970d04c2c11043f3bcd6
4
+ data.tar.gz: 06fe0e885026bb7b4d519ff71dc5d10bacb86a033766ab2ca6d2d31e8b4d266f
5
5
  SHA512:
6
- metadata.gz: ef7b36a6ccfbf6b3eb462fa69b464a8b2ad36cad4f4421e64f23a9f569b9d7e6720794f230f76de193cc142411bd1e2939a674101b7d52df7cd00f8fdc7e3e5c
7
- data.tar.gz: 136b2598922864556cb947d80e8c1ab7f81a408a5ca293a9f368349f34c62c53f5e03a66015b7b5b2df9a3efa36358af61552502125ad979ac30c1e4663d8016
6
+ metadata.gz: 4d3e842e8ed796a191dc33835546a1b291c744d4f5343dd5ec15e00b49731ee99dc481ba0688b912302b30e81542f68ae433492e7fabc3eef1140265232910e7
7
+ data.tar.gz: 4efa65946cb7d85c5e0bea70aa52395929e8b011f71b465c6b4558bc5b1ca1d8b35369132fabd839164177a208a29fea91efcb5f5067cc421c1e0adbc1790f2c
@@ -105,12 +105,12 @@ module FacebookAds
105
105
  field :account_id, 'string'
106
106
  field :ad_review_feedback, 'AdgroupReviewFeedback'
107
107
  field :adlabels, { list: 'AdLabel' }
108
- field :adset, 'AdSet'
108
+ field :adset, 'object'
109
109
  field :adset_id, 'string'
110
110
  field :bid_amount, 'int'
111
111
  field :bid_info, 'map<string, unsigned int>'
112
112
  field :bid_type, { enum: -> { BID_TYPE }}
113
- field :campaign, 'Campaign'
113
+ field :campaign, 'object'
114
114
  field :campaign_id, 'string'
115
115
  field :configured_status, { enum: -> { CONFIGURED_STATUS }}
116
116
  field :conversion_specs, { list: 'ConversionActionQuery' }
@@ -127,7 +127,7 @@ module FacebookAds
127
127
  field :name, 'string'
128
128
  field :priority, 'int'
129
129
  field :recommendations, { list: 'AdRecommendation' }
130
- field :source_ad, 'Ad'
130
+ field :source_ad, 'object'
131
131
  field :source_ad_id, 'string'
132
132
  field :status, { enum: -> { STATUS }}
133
133
  field :targeting, 'Targeting'
@@ -432,6 +432,7 @@ module FacebookAds
432
432
  api.has_param :time_range, 'object'
433
433
  api.has_param :updated_since, 'int'
434
434
  api.has_param :ad_draft_id, 'string'
435
+ api.has_param :include_drafts, 'bool'
435
436
  end
436
437
  edge.post 'Ad' do |api|
437
438
  api.has_param :audience_id, 'string'
@@ -476,6 +477,7 @@ module FacebookAds
476
477
  api.has_param :is_completed, 'bool'
477
478
  api.has_param :time_range, 'object'
478
479
  api.has_param :ad_draft_id, 'string'
480
+ api.has_param :include_drafts, 'bool'
479
481
  end
480
482
  edge.post 'AdSet' do |api|
481
483
  api.has_param :ad_keywords, 'object'
@@ -1161,6 +1163,7 @@ module FacebookAds
1161
1163
  api.has_param :frequency_cap, 'int'
1162
1164
  api.has_param :budget, 'int'
1163
1165
  api.has_param :prediction_mode, 'int'
1166
+ api.has_param :deal_id, 'string'
1164
1167
  api.has_param :destination_id, 'int'
1165
1168
  api.has_param :destination_ids, { list: 'string' }
1166
1169
  api.has_param :story_event_type, 'int'
@@ -75,6 +75,7 @@ module FacebookAds
75
75
  "update_ad_labels",
76
76
  "update_ad_run_status",
77
77
  "update_ad_run_status_to_be_set_after_review",
78
+ "update_ad_set_ad_keywords",
78
79
  "update_ad_set_bid_adjustments",
79
80
  "update_ad_set_bid_strategy",
80
81
  "update_ad_set_bidding",
@@ -87,8 +88,12 @@ module FacebookAds
87
88
  "update_ad_targets_spec",
88
89
  "update_adgroup_stop_delivery",
89
90
  "update_audience",
91
+ "update_campaign_ad_scheduling",
90
92
  "update_campaign_budget",
93
+ "update_campaign_delivery_type",
91
94
  "update_campaign_duration",
95
+ "update_campaign_group_ad_scheduling",
96
+ "update_campaign_group_delivery_type",
92
97
  "update_campaign_group_spend_cap",
93
98
  "update_campaign_name",
94
99
  "update_campaign_run_status",
@@ -97,6 +102,7 @@ module FacebookAds
97
102
  CATEGORY = [
98
103
  "ACCOUNT",
99
104
  "AD",
105
+ "AD_KEYWORDS",
100
106
  "AD_SET",
101
107
  "AUDIENCE",
102
108
  "BID",
@@ -168,7 +168,7 @@ module FacebookAds
168
168
  field :bid_strategy, { enum: -> { BID_STRATEGY }}
169
169
  field :billing_event, { enum: -> { BILLING_EVENT }}
170
170
  field :budget_remaining, 'string'
171
- field :campaign, 'Campaign'
171
+ field :campaign, 'object'
172
172
  field :campaign_id, 'string'
173
173
  field :configured_status, { enum: -> { CONFIGURED_STATUS }}
174
174
  field :created_time, 'datetime'
@@ -197,7 +197,7 @@ module FacebookAds
197
197
  field :recurring_budget_semantics, 'bool'
198
198
  field :review_feedback, 'string'
199
199
  field :rf_prediction_id, 'string'
200
- field :source_adset, 'AdSet'
200
+ field :source_adset, 'object'
201
201
  field :source_adset_id, 'string'
202
202
  field :start_time, 'datetime'
203
203
  field :status, { enum: -> { STATUS }}
@@ -262,6 +262,7 @@ module FacebookAds
262
262
  api.has_param :time_range, 'object'
263
263
  api.has_param :updated_since, 'int'
264
264
  api.has_param :ad_draft_id, 'string'
265
+ api.has_param :include_drafts, 'bool'
265
266
  end
266
267
  end
267
268
 
@@ -93,6 +93,7 @@ module FacebookAds
93
93
  api.has_param :applications, { list: 'object' }
94
94
  api.has_param :offsitepixels, { list: 'object' }
95
95
  api.has_param :offline_conversion_data_sets, { list: 'object' }
96
+ api.has_param :product_sets, { list: 'object' }
96
97
  end
97
98
  end
98
99
 
@@ -87,6 +87,7 @@ module FacebookAds
87
87
  "LOOK_NOW_DEPRECATED",
88
88
  "MOMENTS_VIDEO",
89
89
  "NO_STORY",
90
+ "OCULUS_CREATOR_PORTAL",
90
91
  "OCULUS_VENUES_BROADCAST",
91
92
  "OFFERS_VIDEO",
92
93
  "PAGES_COVER_VIDEO",
@@ -0,0 +1,56 @@
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 AdsPost < AdObject
29
+
30
+ field :admin_creator, 'User'
31
+ field :creation_time, 'datetime'
32
+ field :feed_audience_description, 'string'
33
+ field :feed_targeting, 'Targeting'
34
+ field :id, 'string'
35
+ field :message, 'string'
36
+ field :modified_time, 'datetime'
37
+ field :og_action_summary, 'string'
38
+ field :permalink_url, 'string'
39
+ field :place, 'Place'
40
+ field :privacy_description, 'string'
41
+ field :promotion_info, 'object'
42
+ field :scheduled_publish_time, 'datetime'
43
+ field :story_token, 'string'
44
+ field :thumbnail, 'string'
45
+ field :type, 'string'
46
+ field :video_id, 'string'
47
+ has_no_get
48
+ has_no_post
49
+ has_no_delete
50
+
51
+ has_edge :insights do |edge|
52
+ edge.get 'InsightsResult'
53
+ end
54
+
55
+ end
56
+ end
@@ -97,6 +97,7 @@ module FacebookAds
97
97
  edge.get 'Photo'
98
98
  edge.post 'Photo' do |api|
99
99
  api.has_param :aid, 'string'
100
+ api.has_param :alt_text_custom, 'string'
100
101
  api.has_param :caption, 'string'
101
102
  api.has_param :url, 'string'
102
103
  api.has_param :uid, 'int'
@@ -621,6 +621,7 @@ module FacebookAds
621
621
  has_edge :photos do |edge|
622
622
  edge.post 'Photo' do |api|
623
623
  api.has_param :aid, 'string'
624
+ api.has_param :alt_text_custom, 'string'
624
625
  api.has_param :caption, 'string'
625
626
  api.has_param :url, 'string'
626
627
  api.has_param :uid, 'int'
@@ -83,6 +83,19 @@ module FacebookAds
83
83
  "MODERATOR",
84
84
  ]
85
85
 
86
+ PAGE_PERMITTED_TASKS = [
87
+ "ADVERTISE",
88
+ "ANALYZE",
89
+ "CREATE_CONTENT",
90
+ "MANAGE",
91
+ "MANAGE_JOBS",
92
+ "MODERATE",
93
+ "MODERATE_COMMUNITY",
94
+ "PAGES_MESSAGING",
95
+ "PAGES_MESSAGING_SUBSCRIPTIONS",
96
+ "READ_PAGE_MAILBOXES",
97
+ ]
98
+
86
99
  ROLE = [
87
100
  "ADMIN",
88
101
  "ADS_RIGHTS_REVIEWER",
@@ -434,15 +447,6 @@ module FacebookAds
434
447
  end
435
448
  end
436
449
 
437
- has_edge :matched_search_applications do |edge|
438
- edge.get 'BusinessMatchedSearchApplicationsEdgeData' do |api|
439
- api.has_param :app_store, { enum: -> { BusinessMatchedSearchApplicationsEdgeData::APP_STORE }}
440
- api.has_param :app_store_country, 'string'
441
- api.has_param :query_term, 'string'
442
- api.has_param :allow_incomplete_app, 'bool'
443
- end
444
- end
445
-
446
450
  has_edge :measurement_reports do |edge|
447
451
  edge.get 'MeasurementReport' do |api|
448
452
  api.has_param :report_type, { enum: -> { MeasurementReport::REPORT_TYPE }}
@@ -500,6 +504,7 @@ module FacebookAds
500
504
  api.has_param :sales_rep_email, 'string'
501
505
  api.has_param :shared_page_id, 'string'
502
506
  api.has_param :page_permitted_roles, { list: { enum: -> { Business::PAGE_PERMITTED_ROLES }} }
507
+ api.has_param :page_permitted_tasks, { list: { enum: -> { Business::PAGE_PERMITTED_TASKS }} }
503
508
  end
504
509
  end
505
510
 
@@ -694,13 +699,10 @@ module FacebookAds
694
699
  api.has_param :conversion_end_date, 'string'
695
700
  api.has_param :conversion_start_date, 'string'
696
701
  api.has_param :event_status, { enum: -> { MeasurementUploadEvent::EVENT_STATUS }}
697
- api.has_param :group, { enum: -> { MeasurementUploadEvent::GROUP }}
698
702
  api.has_param :lookback_window, { enum: -> { MeasurementUploadEvent::LOOKBACK_WINDOW }}
699
703
  api.has_param :match_universe, { enum: -> { MeasurementUploadEvent::MATCH_UNIVERSE }}
700
- api.has_param :upload_end_time, 'datetime'
701
- api.has_param :upload_start_time, 'datetime'
704
+ api.has_param :timezone, { enum: -> { MeasurementUploadEvent::TIMEZONE }}
702
705
  api.has_param :upload_tag, 'string'
703
- api.has_param :version, { enum: -> { MeasurementUploadEvent::VERSION }}
704
706
  end
705
707
  end
706
708
 
@@ -139,7 +139,7 @@ module FacebookAds
139
139
  field :pacing_type, { list: 'string' }
140
140
  field :promoted_object, 'AdPromotedObject'
141
141
  field :recommendations, { list: 'AdRecommendation' }
142
- field :source_campaign, 'Campaign'
142
+ field :source_campaign, 'object'
143
143
  field :source_campaign_id, 'string'
144
144
  field :spend_cap, 'string'
145
145
  field :start_time, 'datetime'
@@ -181,6 +181,7 @@ module FacebookAds
181
181
  api.has_param :time_range, 'object'
182
182
  api.has_param :updated_since, 'int'
183
183
  api.has_param :ad_draft_id, 'string'
184
+ api.has_param :include_drafts, 'bool'
184
185
  end
185
186
  end
186
187
 
@@ -191,6 +192,7 @@ module FacebookAds
191
192
  api.has_param :is_completed, 'bool'
192
193
  api.has_param :time_range, 'object'
193
194
  api.has_param :ad_draft_id, 'string'
195
+ api.has_param :include_drafts, 'bool'
194
196
  end
195
197
  end
196
198
 
@@ -38,7 +38,7 @@ module FacebookAds
38
38
 
39
39
 
40
40
  field :adbreaks_enabled, 'bool'
41
- field :adset, 'AdSet'
41
+ field :adset, 'object'
42
42
  field :advertiser, 'object'
43
43
  field :advertiser_lead_email, 'string'
44
44
  field :advertiser_page, 'string'
@@ -25,32 +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 BusinessMatchedSearchApplicationsEdgeData < AdObject
29
- APP_STORE = [
30
- "AMAZON_APP_STORE",
31
- "DOES_NOT_EXIST",
32
- "FB_ANDROID_STORE",
33
- "FB_CANVAS",
34
- "FB_GAMEROOM",
35
- "GOOGLE_PLAY",
36
- "INSTANT_GAME",
37
- "ITUNES",
38
- "ITUNES_IPAD",
39
- "ROKU_STORE",
40
- "WINDOWS_10_STORE",
41
- "WINDOWS_STORE",
42
- ]
28
+ class DynamicContentSet < AdObject
43
29
 
44
-
45
- field :app_id, 'string'
46
- field :icon_url, 'string'
30
+ field :business_id, 'string'
31
+ field :id, 'string'
47
32
  field :name, 'string'
48
- field :search_source_store, 'string'
49
- field :store, 'string'
50
- field :unique_id, 'string'
51
- field :url, 'string'
52
- has_no_id
53
- has_no_get
54
33
  has_no_post
55
34
  has_no_delete
56
35
 
@@ -288,6 +288,7 @@ module FacebookAds
288
288
  edge.get 'NullNode'
289
289
  edge.post 'Photo' do |api|
290
290
  api.has_param :aid, 'string'
291
+ api.has_param :alt_text_custom, 'string'
291
292
  api.has_param :caption, 'string'
292
293
  api.has_param :url, 'string'
293
294
  api.has_param :uid, 'int'
@@ -41,6 +41,7 @@ module FacebookAds
41
41
  "FOR_WORK",
42
42
  "FRATERNITY",
43
43
  "GAME",
44
+ "HEALTH",
44
45
  "HIGH_SCHOOL_FORUM",
45
46
  "JOBS",
46
47
  "LEARNING",
@@ -99,6 +100,7 @@ module FacebookAds
99
100
  "FOR_WORK",
100
101
  "FRATERNITY",
101
102
  "GAME",
103
+ "HEALTH",
102
104
  "HIGH_SCHOOL_FORUM",
103
105
  "JOBS",
104
106
  "LEARNING",
@@ -453,6 +455,7 @@ module FacebookAds
453
455
  has_edge :photos do |edge|
454
456
  edge.post 'Photo' do |api|
455
457
  api.has_param :aid, 'string'
458
+ api.has_param :alt_text_custom, 'string'
456
459
  api.has_param :caption, 'string'
457
460
  api.has_param :url, 'string'
458
461
  api.has_param :uid, 'int'
@@ -25,20 +25,20 @@ 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 ShadowIgComment < AdObject
28
+ class IgComment < AdObject
29
29
 
30
30
  field :hidden, 'bool'
31
31
  field :id, 'string'
32
32
  field :like_count, 'int'
33
- field :media, 'ShadowIgMedia'
33
+ field :media, 'IgMedia'
34
34
  field :text, 'string'
35
35
  field :timestamp, 'datetime'
36
- field :user, 'ShadowIgUser'
36
+ field :user, 'object'
37
37
  field :username, 'string'
38
38
 
39
39
  has_edge :replies do |edge|
40
- edge.get 'ShadowIgComment'
41
- edge.post 'ShadowIgComment' do |api|
40
+ edge.get 'IgComment'
41
+ edge.post 'IgComment' do |api|
42
42
  api.has_param :message, 'string'
43
43
  end
44
44
  end
@@ -25,7 +25,7 @@ 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 ShadowIgMedia < AdObject
28
+ class IgMedia < AdObject
29
29
 
30
30
  field :caption, 'string'
31
31
  field :comments_count, 'int'
@@ -35,7 +35,7 @@ module FacebookAds
35
35
  field :like_count, 'int'
36
36
  field :media_type, 'string'
37
37
  field :media_url, 'string'
38
- field :owner, 'ShadowIgUser'
38
+ field :owner, 'object'
39
39
  field :permalink, 'string'
40
40
  field :shortcode, 'string'
41
41
  field :thumbnail_url, 'string'
@@ -44,12 +44,12 @@ module FacebookAds
44
44
  has_no_delete
45
45
 
46
46
  has_edge :children do |edge|
47
- edge.get 'ShadowIgMedia'
47
+ edge.get 'IgMedia'
48
48
  end
49
49
 
50
50
  has_edge :comments do |edge|
51
- edge.get 'ShadowIgComment'
52
- edge.post 'ShadowIgComment' do |api|
51
+ edge.get 'IgComment'
52
+ edge.post 'IgComment' do |api|
53
53
  api.has_param :message, 'string'
54
54
  end
55
55
  end
@@ -25,17 +25,17 @@ 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 ShadowIgUser < AdObject
28
+ class IgUser < AdObject
29
29
 
30
30
  field :biography, 'string'
31
- field :business_discovery, 'ShadowIgUser'
31
+ field :business_discovery, 'object'
32
32
  field :followers_count, 'int'
33
33
  field :follows_count, 'int'
34
34
  field :id, 'string'
35
35
  field :ig_id, 'int'
36
36
  field :media_count, 'int'
37
- field :mentioned_comment, 'ShadowIgComment'
38
- field :mentioned_media, 'ShadowIgMedia'
37
+ field :mentioned_comment, 'IgComment'
38
+ field :mentioned_media, 'IgMedia'
39
39
  field :name, 'string'
40
40
  field :profile_picture_url, 'string'
41
41
  field :username, 'string'
@@ -61,8 +61,8 @@ module FacebookAds
61
61
  end
62
62
 
63
63
  has_edge :media do |edge|
64
- edge.get 'ShadowIgMedia'
65
- edge.post 'ShadowIgMedia' do |api|
64
+ edge.get 'IgMedia'
65
+ edge.post 'IgMedia' do |api|
66
66
  api.has_param :media_type, 'string'
67
67
  api.has_param :caption, 'string'
68
68
  api.has_param :image_url, 'string'
@@ -71,7 +71,7 @@ module FacebookAds
71
71
  end
72
72
 
73
73
  has_edge :media_publish do |edge|
74
- edge.post 'ShadowIgMedia' do |api|
74
+ edge.post 'IgMedia' do |api|
75
75
  api.has_param :creation_id, 'int'
76
76
  end
77
77
  end
@@ -81,11 +81,11 @@ module FacebookAds
81
81
  end
82
82
 
83
83
  has_edge :stories do |edge|
84
- edge.get 'ShadowIgMedia'
84
+ edge.get 'IgMedia'
85
85
  end
86
86
 
87
87
  has_edge :tags do |edge|
88
- edge.get 'ShadowIgMedia'
88
+ edge.get 'IgMedia'
89
89
  end
90
90
 
91
91
  end
@@ -26,6 +26,15 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class LiveEncoder < AdObject
29
+ STATUS = [
30
+ "CAPTURE",
31
+ "LIVE",
32
+ "NONE",
33
+ "PREVIEW",
34
+ "READY",
35
+ "REGISTER",
36
+ ]
37
+
29
38
 
30
39
  field :brand, 'string'
31
40
  field :creation_time, 'datetime'
@@ -38,8 +47,40 @@ module FacebookAds
38
47
  field :name, 'string'
39
48
  field :status, 'string'
40
49
  field :version, 'string'
41
- has_no_post
42
- has_no_delete
50
+
51
+ has_edge :telemetry do |edge|
52
+ edge.post 'LiveEncoder' do |api|
53
+ api.has_param :broadcast_id, 'string'
54
+ api.has_param :status, { enum: -> { LiveEncoder::STATUS }}
55
+ api.has_param :timestamp, 'int'
56
+ api.has_param :uptime, 'int'
57
+ api.has_param :cpu_usage, 'double'
58
+ api.has_param :process_uptime, 'int'
59
+ api.has_param :cpu_temperature, 'int'
60
+ api.has_param :gpu_usage, 'double'
61
+ api.has_param :gpu_temperature, 'int'
62
+ api.has_param :cpu_load_1m, 'double'
63
+ api.has_param :cpu_load_5m, 'double'
64
+ api.has_param :cpu_load_15m, 'double'
65
+ api.has_param :memory_usage, 'double'
66
+ api.has_param :network_tx_bandwidth, 'int'
67
+ api.has_param :network_rx_bandwidth, 'int'
68
+ api.has_param :network_tx_packets_dropped, 'double'
69
+ api.has_param :network_rx_packets_dropped, 'double'
70
+ api.has_param :network_tx_packets_errors, 'double'
71
+ api.has_param :network_rx_packets_errors, 'double'
72
+ api.has_param :network_latency, 'double'
73
+ api.has_param :frames_dropped, 'double'
74
+ api.has_param :framerate, 'double'
75
+ api.has_param :bitrate, 'int'
76
+ api.has_param :total_video_frames_sent, 'int'
77
+ api.has_param :total_video_keyframes_sent, 'int'
78
+ api.has_param :total_audio_frames_sent, 'int'
79
+ api.has_param :last_video_timecode, 'int'
80
+ api.has_param :last_video_keyframe_timecode, 'int'
81
+ api.has_param :last_audio_timecode, 'int'
82
+ end
83
+ end
43
84
 
44
85
  end
45
86
  end
@@ -41,11 +41,6 @@ module FacebookAds
41
41
  "UPLOADED",
42
42
  ]
43
43
 
44
- GROUP = [
45
- "MONDAY",
46
- "SUNDAY",
47
- ]
48
-
49
44
  LOOKBACK_WINDOW = [
50
45
  "DAYS30",
51
46
  "DAYS45",
@@ -59,9 +54,153 @@ module FacebookAds
59
54
  "PIXEL",
60
55
  ]
61
56
 
62
- VERSION = [
63
- "EVALUATION",
64
- "WEEKLY",
57
+ TIMEZONE = [
58
+ "TZ_AFRICA_ACCRA",
59
+ "TZ_AFRICA_CAIRO",
60
+ "TZ_AFRICA_CASABLANCA",
61
+ "TZ_AFRICA_JOHANNESBURG",
62
+ "TZ_AFRICA_LAGOS",
63
+ "TZ_AFRICA_NAIROBI",
64
+ "TZ_AFRICA_TUNIS",
65
+ "TZ_AMERICA_ANCHORAGE",
66
+ "TZ_AMERICA_ARGENTINA_BUENOS_AIRES",
67
+ "TZ_AMERICA_ARGENTINA_SALTA",
68
+ "TZ_AMERICA_ARGENTINA_SAN_LUIS",
69
+ "TZ_AMERICA_ASUNCION",
70
+ "TZ_AMERICA_ATIKOKAN",
71
+ "TZ_AMERICA_BELEM",
72
+ "TZ_AMERICA_BLANC_SABLON",
73
+ "TZ_AMERICA_BOGOTA",
74
+ "TZ_AMERICA_CAMPO_GRANDE",
75
+ "TZ_AMERICA_CARACAS",
76
+ "TZ_AMERICA_CHICAGO",
77
+ "TZ_AMERICA_COSTA_RICA",
78
+ "TZ_AMERICA_DAWSON",
79
+ "TZ_AMERICA_DAWSON_CREEK",
80
+ "TZ_AMERICA_DENVER",
81
+ "TZ_AMERICA_DETROIT",
82
+ "TZ_AMERICA_EDMONTON",
83
+ "TZ_AMERICA_EL_SALVADOR",
84
+ "TZ_AMERICA_GUATEMALA",
85
+ "TZ_AMERICA_GUAYAQUIL",
86
+ "TZ_AMERICA_HALIFAX",
87
+ "TZ_AMERICA_HERMOSILLO",
88
+ "TZ_AMERICA_IQALUIT",
89
+ "TZ_AMERICA_JAMAICA",
90
+ "TZ_AMERICA_LA_PAZ",
91
+ "TZ_AMERICA_LIMA",
92
+ "TZ_AMERICA_LOS_ANGELES",
93
+ "TZ_AMERICA_MANAGUA",
94
+ "TZ_AMERICA_MAZATLAN",
95
+ "TZ_AMERICA_MEXICO_CITY",
96
+ "TZ_AMERICA_MONTEVIDEO",
97
+ "TZ_AMERICA_NASSAU",
98
+ "TZ_AMERICA_NEW_YORK",
99
+ "TZ_AMERICA_NORONHA",
100
+ "TZ_AMERICA_PANAMA",
101
+ "TZ_AMERICA_PHOENIX",
102
+ "TZ_AMERICA_PORT_OF_SPAIN",
103
+ "TZ_AMERICA_PUERTO_RICO",
104
+ "TZ_AMERICA_RAINY_RIVER",
105
+ "TZ_AMERICA_REGINA",
106
+ "TZ_AMERICA_SANTIAGO",
107
+ "TZ_AMERICA_SANTO_DOMINGO",
108
+ "TZ_AMERICA_SAO_PAULO",
109
+ "TZ_AMERICA_ST_JOHNS",
110
+ "TZ_AMERICA_TEGUCIGALPA",
111
+ "TZ_AMERICA_TIJUANA",
112
+ "TZ_AMERICA_TORONTO",
113
+ "TZ_AMERICA_VANCOUVER",
114
+ "TZ_AMERICA_WINNIPEG",
115
+ "TZ_ASIA_AMMAN",
116
+ "TZ_ASIA_BAGHDAD",
117
+ "TZ_ASIA_BAHRAIN",
118
+ "TZ_ASIA_BANGKOK",
119
+ "TZ_ASIA_BEIRUT",
120
+ "TZ_ASIA_COLOMBO",
121
+ "TZ_ASIA_DHAKA",
122
+ "TZ_ASIA_DUBAI",
123
+ "TZ_ASIA_GAZA",
124
+ "TZ_ASIA_HONG_KONG",
125
+ "TZ_ASIA_HO_CHI_MINH",
126
+ "TZ_ASIA_IRKUTSK",
127
+ "TZ_ASIA_JAKARTA",
128
+ "TZ_ASIA_JAYAPURA",
129
+ "TZ_ASIA_JERUSALEM",
130
+ "TZ_ASIA_KAMCHATKA",
131
+ "TZ_ASIA_KARACHI",
132
+ "TZ_ASIA_KATHMANDU",
133
+ "TZ_ASIA_KOLKATA",
134
+ "TZ_ASIA_KRASNOYARSK",
135
+ "TZ_ASIA_KUALA_LUMPUR",
136
+ "TZ_ASIA_KUWAIT",
137
+ "TZ_ASIA_MAGADAN",
138
+ "TZ_ASIA_MAKASSAR",
139
+ "TZ_ASIA_MANILA",
140
+ "TZ_ASIA_MUSCAT",
141
+ "TZ_ASIA_NICOSIA",
142
+ "TZ_ASIA_OMSK",
143
+ "TZ_ASIA_QATAR",
144
+ "TZ_ASIA_RIYADH",
145
+ "TZ_ASIA_SEOUL",
146
+ "TZ_ASIA_SHANGHAI",
147
+ "TZ_ASIA_SINGAPORE",
148
+ "TZ_ASIA_TAIPEI",
149
+ "TZ_ASIA_TOKYO",
150
+ "TZ_ASIA_VLADIVOSTOK",
151
+ "TZ_ASIA_YAKUTSK",
152
+ "TZ_ASIA_YEKATERINBURG",
153
+ "TZ_ATLANTIC_AZORES",
154
+ "TZ_ATLANTIC_CANARY",
155
+ "TZ_ATLANTIC_REYKJAVIK",
156
+ "TZ_AUSTRALIA_BROKEN_HILL",
157
+ "TZ_AUSTRALIA_MELBOURNE",
158
+ "TZ_AUSTRALIA_PERTH",
159
+ "TZ_AUSTRALIA_SYDNEY",
160
+ "TZ_EUROPE_AMSTERDAM",
161
+ "TZ_EUROPE_ATHENS",
162
+ "TZ_EUROPE_BELGRADE",
163
+ "TZ_EUROPE_BERLIN",
164
+ "TZ_EUROPE_BRATISLAVA",
165
+ "TZ_EUROPE_BRUSSELS",
166
+ "TZ_EUROPE_BUCHAREST",
167
+ "TZ_EUROPE_BUDAPEST",
168
+ "TZ_EUROPE_COPENHAGEN",
169
+ "TZ_EUROPE_DUBLIN",
170
+ "TZ_EUROPE_HELSINKI",
171
+ "TZ_EUROPE_ISTANBUL",
172
+ "TZ_EUROPE_KALININGRAD",
173
+ "TZ_EUROPE_KIEV",
174
+ "TZ_EUROPE_LISBON",
175
+ "TZ_EUROPE_LJUBLJANA",
176
+ "TZ_EUROPE_LONDON",
177
+ "TZ_EUROPE_LUXEMBOURG",
178
+ "TZ_EUROPE_MADRID",
179
+ "TZ_EUROPE_MALTA",
180
+ "TZ_EUROPE_MOSCOW",
181
+ "TZ_EUROPE_OSLO",
182
+ "TZ_EUROPE_PARIS",
183
+ "TZ_EUROPE_PRAGUE",
184
+ "TZ_EUROPE_RIGA",
185
+ "TZ_EUROPE_ROME",
186
+ "TZ_EUROPE_SAMARA",
187
+ "TZ_EUROPE_SARAJEVO",
188
+ "TZ_EUROPE_SKOPJE",
189
+ "TZ_EUROPE_SOFIA",
190
+ "TZ_EUROPE_STOCKHOLM",
191
+ "TZ_EUROPE_TALLINN",
192
+ "TZ_EUROPE_VIENNA",
193
+ "TZ_EUROPE_VILNIUS",
194
+ "TZ_EUROPE_WARSAW",
195
+ "TZ_EUROPE_ZAGREB",
196
+ "TZ_EUROPE_ZURICH",
197
+ "TZ_INDIAN_MALDIVES",
198
+ "TZ_INDIAN_MAURITIUS",
199
+ "TZ_NUM_TIMEZONES",
200
+ "TZ_PACIFIC_AUCKLAND",
201
+ "TZ_PACIFIC_EASTER",
202
+ "TZ_PACIFIC_GALAPAGOS",
203
+ "TZ_PACIFIC_HONOLULU",
65
204
  ]
66
205
 
67
206
 
@@ -69,16 +208,12 @@ module FacebookAds
69
208
  field :conversion_end_date, 'string'
70
209
  field :conversion_start_date, 'string'
71
210
  field :event_status, 'string'
72
- field :group, 'string'
73
211
  field :id, 'string'
74
212
  field :lookback_window, 'string'
75
213
  field :match_universe, 'string'
76
214
  field :partner, 'Business'
77
- field :upload_end_time, 'datetime'
78
- field :upload_start_time, 'datetime'
215
+ field :timezone, 'string'
79
216
  field :upload_tag, 'string'
80
- field :version, 'string'
81
- has_no_post
82
217
  has_no_delete
83
218
 
84
219
  end
@@ -88,6 +88,7 @@ module FacebookAds
88
88
  has_edge :photos do |edge|
89
89
  edge.post 'Photo' do |api|
90
90
  api.has_param :aid, 'string'
91
+ api.has_param :alt_text_custom, 'string'
91
92
  api.has_param :caption, 'string'
92
93
  api.has_param :url, 'string'
93
94
  api.has_param :uid, 'int'
@@ -299,7 +299,7 @@ module FacebookAds
299
299
 
300
300
  field :about, 'string'
301
301
  field :access_token, 'string'
302
- field :ad_campaign, 'AdSet'
302
+ field :ad_campaign, 'object'
303
303
  field :affiliation, 'string'
304
304
  field :app_id, 'string'
305
305
  field :app_links, 'AppLinks'
@@ -320,7 +320,7 @@ module FacebookAds
320
320
  field :category_list, { list: 'PageCategory' }
321
321
  field :checkins, 'int'
322
322
  field :company_overview, 'string'
323
- field :connected_instagram_account, 'ShadowIgUser'
323
+ field :connected_instagram_account, 'object'
324
324
  field :contact_address, 'MailingAddress'
325
325
  field :context, 'OpenGraphContext'
326
326
  field :copyright_attribution_insights, 'CopyrightAttributionInsights'
@@ -354,7 +354,7 @@ module FacebookAds
354
354
  field :id, 'string'
355
355
  field :impressum, 'string'
356
356
  field :influences, 'string'
357
- field :instagram_business_account, 'ShadowIgUser'
357
+ field :instagram_business_account, 'object'
358
358
  field :instant_articles_review_status, 'string'
359
359
  field :is_always_open, 'bool'
360
360
  field :is_chain, 'bool'
@@ -490,6 +490,12 @@ module FacebookAds
490
490
  end
491
491
  end
492
492
 
493
+ has_edge :ads_posts do |edge|
494
+ edge.get 'AdsPost' do |api|
495
+ api.has_param :include_inline_create, 'bool'
496
+ end
497
+ end
498
+
493
499
  has_edge :agencies do |edge|
494
500
  edge.delete do |api|
495
501
  api.has_param :business, 'string'
@@ -1159,6 +1165,13 @@ module FacebookAds
1159
1165
  end
1160
1166
  end
1161
1167
 
1168
+ has_edge :messenger_thread_settings do |edge|
1169
+ edge.post 'Page' do |api|
1170
+ api.has_param :psid, 'string'
1171
+ api.has_param :thread_banner, 'object'
1172
+ end
1173
+ end
1174
+
1162
1175
  has_edge :milestones do |edge|
1163
1176
  edge.get 'LifeEvent'
1164
1177
  edge.post 'LifeEvent' do |api|
@@ -1261,6 +1274,7 @@ module FacebookAds
1261
1274
  end
1262
1275
  edge.post 'Photo' do |api|
1263
1276
  api.has_param :aid, 'string'
1277
+ api.has_param :alt_text_custom, 'string'
1264
1278
  api.has_param :caption, 'string'
1265
1279
  api.has_param :url, 'string'
1266
1280
  api.has_param :uid, 'int'
@@ -33,6 +33,7 @@ module FacebookAds
33
33
  "backer_founder",
34
34
  "bandzoogle",
35
35
  "big_commerce",
36
+ "branch",
36
37
  "cart_3d",
37
38
  "default",
38
39
  "drupal",
@@ -71,6 +71,8 @@ module FacebookAds
71
71
 
72
72
 
73
73
  field :album, 'Album'
74
+ field :alt_text, 'string'
75
+ field :alt_text_custom, 'string'
74
76
  field :backdated_time, 'datetime'
75
77
  field :backdated_time_granularity, 'string'
76
78
  field :can_backdate, 'bool'
@@ -158,6 +160,7 @@ module FacebookAds
158
160
  has_edge :photos do |edge|
159
161
  edge.post 'Photo' do |api|
160
162
  api.has_param :aid, 'string'
163
+ api.has_param :alt_text_custom, 'string'
161
164
  api.has_param :caption, 'string'
162
165
  api.has_param :url, 'string'
163
166
  api.has_param :uid, 'int'
@@ -167,6 +167,7 @@ module FacebookAds
167
167
  has_edge :photos do |edge|
168
168
  edge.post 'Photo' do |api|
169
169
  api.has_param :aid, 'string'
170
+ api.has_param :alt_text_custom, 'string'
170
171
  api.has_param :caption, 'string'
171
172
  api.has_param :url, 'string'
172
173
  api.has_param :uid, 'int'
@@ -159,6 +159,7 @@ module FacebookAds
159
159
  field :reach, 'int'
160
160
  field :impression, 'int'
161
161
  field :budget, 'int'
162
+ field :deal_id, 'string'
162
163
  field :destination_ids, { list: 'string' }
163
164
  field :rf_prediction_id, 'string'
164
165
  field :rf_prediction_id_to_release, 'string'
@@ -876,6 +876,7 @@ module FacebookAds
876
876
  end
877
877
  edge.post 'Photo' do |api|
878
878
  api.has_param :aid, 'string'
879
+ api.has_param :alt_text_custom, 'string'
879
880
  api.has_param :caption, 'string'
880
881
  api.has_param :url, 'string'
881
882
  api.has_param :uid, 'int'
@@ -40,6 +40,7 @@ module FacebookAds
40
40
  "NONE",
41
41
  "OTHER",
42
42
  "SEDAN",
43
+ "SMALL_CAR",
43
44
  "SUV",
44
45
  "TRUCK",
45
46
  "VAN",
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.3.2.11'
22
+ VERSION = '0.3.2.12'
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.11
4
+ version: 0.3.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-14 00:00:00.000000000 Z
11
+ date: 2019-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -310,6 +310,7 @@ files:
310
310
  - lib/facebook_ads/ad_objects/ads_pixel.rb
311
311
  - lib/facebook_ads/ad_objects/ads_pixel_stats.rb
312
312
  - lib/facebook_ads/ad_objects/ads_pixel_stats_result.rb
313
+ - lib/facebook_ads/ad_objects/ads_post.rb
313
314
  - lib/facebook_ads/ad_objects/ads_tal_health_check_error.rb
314
315
  - lib/facebook_ads/ad_objects/age_range.rb
315
316
  - lib/facebook_ads/ad_objects/agency_client_declaration.rb
@@ -342,7 +343,6 @@ files:
342
343
  - lib/facebook_ads/ad_objects/business_application_request.rb
343
344
  - lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb
344
345
  - lib/facebook_ads/ad_objects/business_credit_card_legacy.rb
345
- - lib/facebook_ads/ad_objects/business_matched_search_applications_edge_data.rb
346
346
  - lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb
347
347
  - lib/facebook_ads/ad_objects/business_page_request.rb
348
348
  - lib/facebook_ads/ad_objects/business_product_catalog_tos.rb
@@ -394,6 +394,7 @@ files:
394
394
  - lib/facebook_ads/ad_objects/direct_deal.rb
395
395
  - lib/facebook_ads/ad_objects/dog_notification_settings.rb
396
396
  - lib/facebook_ads/ad_objects/domain.rb
397
+ - lib/facebook_ads/ad_objects/dynamic_content_set.rb
397
398
  - lib/facebook_ads/ad_objects/dynamic_item_display_bundle.rb
398
399
  - lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb
399
400
  - lib/facebook_ads/ad_objects/dynamic_post_child_attachment.rb
@@ -425,6 +426,9 @@ files:
425
426
  - lib/facebook_ads/ad_objects/hotel.rb
426
427
  - lib/facebook_ads/ad_objects/hotel_room.rb
427
428
  - lib/facebook_ads/ad_objects/id_name.rb
429
+ - lib/facebook_ads/ad_objects/ig_comment.rb
430
+ - lib/facebook_ads/ad_objects/ig_media.rb
431
+ - lib/facebook_ads/ad_objects/ig_user.rb
428
432
  - lib/facebook_ads/ad_objects/insights_result.rb
429
433
  - lib/facebook_ads/ad_objects/instagram_comment.rb
430
434
  - lib/facebook_ads/ad_objects/instagram_insights_result.rb
@@ -569,9 +573,6 @@ files:
569
573
  - lib/facebook_ads/ad_objects/saved_message_response_macro.rb
570
574
  - lib/facebook_ads/ad_objects/screen_name.rb
571
575
  - lib/facebook_ads/ad_objects/security_settings.rb
572
- - lib/facebook_ads/ad_objects/shadow_ig_comment.rb
573
- - lib/facebook_ads/ad_objects/shadow_ig_media.rb
574
- - lib/facebook_ads/ad_objects/shadow_ig_user.rb
575
576
  - lib/facebook_ads/ad_objects/split_test_config.rb
576
577
  - lib/facebook_ads/ad_objects/split_test_winner.rb
577
578
  - lib/facebook_ads/ad_objects/status.rb