facebookbusiness 0.6.0.3 → 0.6.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +1 -8
  3. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
  4. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +4 -0
  5. data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -2
  6. data/lib/facebook_ads/ad_objects/ad_creative.rb +3 -0
  7. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +3 -0
  8. data/lib/facebook_ads/ad_objects/ad_creative_video_data.rb +1 -0
  9. data/lib/facebook_ads/ad_objects/ad_customization_rule_spec.rb +2 -0
  10. data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/ad_report_run.rb +2 -0
  12. data/lib/facebook_ads/ad_objects/ad_set.rb +8 -2
  13. data/lib/facebook_ads/ad_objects/ad_video.rb +2 -0
  14. data/lib/facebook_ads/ad_objects/application.rb +0 -12
  15. data/lib/facebook_ads/ad_objects/business.rb +4 -7
  16. data/lib/facebook_ads/ad_objects/business_asset_group.rb +0 -4
  17. data/lib/facebook_ads/ad_objects/campaign.rb +0 -4
  18. data/lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb +1 -1
  19. data/lib/facebook_ads/ad_objects/group.rb +2 -36
  20. data/lib/facebook_ads/ad_objects/ig_user.rb +1 -0
  21. data/lib/facebook_ads/ad_objects/page.rb +3 -8
  22. data/lib/facebook_ads/ad_objects/page_call_to_action.rb +4 -0
  23. data/lib/facebook_ads/ad_objects/page_post.rb +1 -0
  24. data/lib/facebook_ads/ad_objects/partner_study.rb +0 -4
  25. data/lib/facebook_ads/ad_objects/post.rb +3 -2
  26. data/lib/facebook_ads/ad_objects/product_catalog.rb +1 -0
  27. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
  28. data/lib/facebook_ads/ad_objects/{business_pixel_tos.rb → product_feed_upload_diagnostics.rb} +5 -3
  29. data/lib/facebook_ads/ad_objects/rtb_dynamic_post.rb +0 -4
  30. data/lib/facebook_ads/ad_objects/video_game_show.rb +1 -5
  31. data/lib/facebook_ads/version.rb +1 -1
  32. metadata +3 -4
  33. data/lib/facebook_ads/ad_objects/instagram_comment.rb +0 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7fb7d7dbccdb18daafc424c36733226be8d18a78ff709bd8f67bd3a8807db26
4
- data.tar.gz: e6fdea4939b54fd24ff95117931c3edf7558cea8b7190825e9b679aade98e63b
3
+ metadata.gz: 0da520aa1a3da3efaf4d5e5420492737cdf60a00c4e6abdf53d1a3e4166f9658
4
+ data.tar.gz: 969d82a78a124bc10a84c6778a98a3db3ca060c4ab55e83da68689e8f258a2db
5
5
  SHA512:
6
- metadata.gz: 6bf0295c2360d196c5db0fba571f24fbfdaf69fadbcd42da50ba46aa2fe9b08144cacbbce88e8949090600fba95ff6d4ac817f8a1d7c2e3c378036be374e8b09
7
- data.tar.gz: 0514a10ddad749328d8b0387d9d12918b51dd0002792acd807ef172b86d2b966866b4c5372bffd5ce0ac9f32e5c562607312bf77bf09d91197ca086701aec86e
6
+ metadata.gz: 99ddf7c4bb8628634b3048970266e59af2bc9e5ab82ed0c32f269ac76cb233b75976e92a6352c81f7502385da4343dda15d285f37e90c00faac0dead5d4a9cd9
7
+ data.tar.gz: 8be67d5e177b630f0e5a7aae99e51e24fa07b07a45f73cb4cbb3de59b949eaab4dce87a665deba1d6486c1b141d949c2f441f6bb9ce6379b606263c884611a87
@@ -375,13 +375,10 @@ module FacebookAds
375
375
 
376
376
  has_edge :ads do |edge|
377
377
  edge.get 'Ad' do |api|
378
- api.has_param :ad_draft_id, 'string'
379
378
  api.has_param :date_preset, { enum: -> { Ad::DATE_PRESET }}
380
379
  api.has_param :effective_status, { list: 'string' }
381
- api.has_param :include_drafts, 'bool'
382
380
  api.has_param :time_range, 'object'
383
381
  api.has_param :updated_since, 'int'
384
- api.has_param :use_employee_draft, 'bool'
385
382
  end
386
383
  edge.post 'Ad' do |api|
387
384
  api.has_param :adlabels, { list: 'object' }
@@ -421,13 +418,10 @@ module FacebookAds
421
418
 
422
419
  has_edge :adsets do |edge|
423
420
  edge.get 'AdSet' do |api|
424
- api.has_param :ad_draft_id, 'string'
425
421
  api.has_param :date_preset, { enum: -> { AdSet::DATE_PRESET }}
426
422
  api.has_param :effective_status, { list: { enum: -> { AdSet::EFFECTIVE_STATUS }} }
427
- api.has_param :include_drafts, 'bool'
428
423
  api.has_param :is_completed, 'bool'
429
424
  api.has_param :time_range, 'object'
430
- api.has_param :use_employee_draft, 'bool'
431
425
  end
432
426
  edge.post 'AdSet' do |api|
433
427
  api.has_param :adlabels, { list: 'object' }
@@ -457,6 +451,7 @@ module FacebookAds
457
451
  api.has_param :lifetime_min_spend_target, 'int'
458
452
  api.has_param :lifetime_spend_cap, 'int'
459
453
  api.has_param :line_number, 'int'
454
+ api.has_param :multi_optimization_goal_weight, { enum: -> { AdSet::MULTI_OPTIMIZATION_GOAL_WEIGHT }}
460
455
  api.has_param :name, 'string'
461
456
  api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }}
462
457
  api.has_param :optimization_sub_event, { enum: -> { AdSet::OPTIMIZATION_SUB_EVENT }}
@@ -679,10 +674,8 @@ module FacebookAds
679
674
  edge.get 'Campaign' do |api|
680
675
  api.has_param :date_preset, { enum: -> { Campaign::DATE_PRESET }}
681
676
  api.has_param :effective_status, { list: { enum: -> { Campaign::EFFECTIVE_STATUS }} }
682
- api.has_param :include_drafts, 'bool'
683
677
  api.has_param :is_completed, 'bool'
684
678
  api.has_param :time_range, 'object'
685
- api.has_param :use_employee_draft, 'bool'
686
679
  end
687
680
  edge.post 'Campaign' do |api|
688
681
  api.has_param :adlabels, { list: 'object' }
@@ -166,6 +166,7 @@ module FacebookAds
166
166
  "rtb_flag",
167
167
  "site_category",
168
168
  "targeting_optimization",
169
+ "targeting_relaxation_types",
169
170
  "timezones",
170
171
  "topic",
171
172
  "trending",
@@ -44,6 +44,7 @@ module FacebookAds
44
44
  "FIND_A_GROUP",
45
45
  "FIND_YOUR_GROUPS",
46
46
  "FOLLOW_NEWS_STORYLINE",
47
+ "FOLLOW_USER",
47
48
  "GET_DIRECTIONS",
48
49
  "GET_OFFER",
49
50
  "GET_OFFER_VIEW",
@@ -61,8 +62,10 @@ module FacebookAds
61
62
  "NO_BUTTON",
62
63
  "OPEN_LINK",
63
64
  "ORDER_NOW",
65
+ "PAY_TO_ACCESS",
64
66
  "PLAY_GAME",
65
67
  "RECORD_NOW",
68
+ "REQUEST_TIME",
66
69
  "SAY_THANKS",
67
70
  "SEE_MORE",
68
71
  "SELL_NOW",
@@ -89,6 +92,7 @@ module FacebookAds
89
92
  field :autotranslate, { list: 'string' }
90
93
  field :bodies, { list: 'AdAssetFeedSpecBody' }
91
94
  field :call_to_action_types, { list: { enum: -> { CALL_TO_ACTION_TYPES }} }
95
+ field :call_to_actions, { list: 'object' }
92
96
  field :captions, { list: 'AdAssetFeedSpecCaption' }
93
97
  field :carousels, { list: 'object' }
94
98
  field :descriptions, { list: 'AdAssetFeedSpecDescription' }
@@ -137,8 +137,8 @@ module FacebookAds
137
137
  field :bid_type_old, 'string'
138
138
  field :billing_event_new, { enum: -> { BILLING_EVENT_NEW }}
139
139
  field :billing_event_old, { enum: -> { BILLING_EVENT_OLD }}
140
- field :brande_audience_id_new, 'string'
141
- field :brande_audience_id_old, 'string'
140
+ field :brande_audience_id_new, 'BrandAudience'
141
+ field :brande_audience_id_old, 'BrandAudience'
142
142
  field :budget_limit_new, 'object'
143
143
  field :budget_limit_old, 'object'
144
144
  field :created_time, 'datetime'
@@ -50,6 +50,7 @@ module FacebookAds
50
50
  "FIND_A_GROUP",
51
51
  "FIND_YOUR_GROUPS",
52
52
  "FOLLOW_NEWS_STORYLINE",
53
+ "FOLLOW_USER",
53
54
  "GET_DIRECTIONS",
54
55
  "GET_OFFER",
55
56
  "GET_OFFER_VIEW",
@@ -67,8 +68,10 @@ module FacebookAds
67
68
  "NO_BUTTON",
68
69
  "OPEN_LINK",
69
70
  "ORDER_NOW",
71
+ "PAY_TO_ACCESS",
70
72
  "PLAY_GAME",
71
73
  "RECORD_NOW",
74
+ "REQUEST_TIME",
72
75
  "SAY_THANKS",
73
76
  "SEE_MORE",
74
77
  "SELL_NOW",
@@ -44,6 +44,7 @@ module FacebookAds
44
44
  "FIND_A_GROUP",
45
45
  "FIND_YOUR_GROUPS",
46
46
  "FOLLOW_NEWS_STORYLINE",
47
+ "FOLLOW_USER",
47
48
  "GET_DIRECTIONS",
48
49
  "GET_OFFER",
49
50
  "GET_OFFER_VIEW",
@@ -61,8 +62,10 @@ module FacebookAds
61
62
  "NO_BUTTON",
62
63
  "OPEN_LINK",
63
64
  "ORDER_NOW",
65
+ "PAY_TO_ACCESS",
64
66
  "PLAY_GAME",
65
67
  "RECORD_NOW",
68
+ "REQUEST_TIME",
66
69
  "SAY_THANKS",
67
70
  "SEE_MORE",
68
71
  "SELL_NOW",
@@ -32,6 +32,7 @@ module FacebookAds
32
32
  field :branded_content_sponsor_page_id, 'string'
33
33
  field :call_to_action, 'AdCreativeLinkDataCallToAction'
34
34
  field :collection_thumbnails, { list: 'AdCreativeCollectionThumbnailInfo' }
35
+ field :customization_rules_spec, { list: 'AdCustomizationRuleSpec' }
35
36
  field :image_hash, 'string'
36
37
  field :image_url, 'string'
37
38
  field :link_description, 'string'
@@ -30,11 +30,13 @@ module FacebookAds
30
30
  field :caption, 'string'
31
31
  field :customization_spec, 'object'
32
32
  field :description, 'string'
33
+ field :image_hash, 'string'
33
34
  field :link, 'string'
34
35
  field :message, 'string'
35
36
  field :name, 'string'
36
37
  field :priority, 'int'
37
38
  field :template_url_spec, 'AdCreativeTemplateUrlSpec'
39
+ field :video_id, 'int'
38
40
  has_no_id
39
41
  has_no_get
40
42
  has_no_post
@@ -45,6 +45,7 @@ module FacebookAds
45
45
  field :pages_count, 'int'
46
46
  field :parent_page, 'Page'
47
47
  field :targeted_area_type, 'adaccountad_place_page_sets_targeted_area_type_enum_param'
48
+ has_no_post
48
49
  has_no_delete
49
50
 
50
51
  end
@@ -60,6 +60,8 @@ module FacebookAds
60
60
  field :time_range, 'object'
61
61
  field :time_ranges, { list: 'object' }
62
62
  field :use_account_attribution_setting, 'bool'
63
+ has_no_post
64
+ has_no_delete
63
65
 
64
66
  has_edge :insights do |edge|
65
67
  edge.get 'AdsInsights'
@@ -139,6 +139,13 @@ module FacebookAds
139
139
  "NONE_EXPLORATION",
140
140
  ]
141
141
 
142
+ MULTI_OPTIMIZATION_GOAL_WEIGHT = [
143
+ "BALANCED",
144
+ "PREFER_EVENT",
145
+ "PREFER_INSTALL",
146
+ "UNDEFINED",
147
+ ]
148
+
142
149
  OPTIMIZATION_SUB_EVENT = [
143
150
  "NONE",
144
151
  "TRAVEL_INTENT",
@@ -205,6 +212,7 @@ module FacebookAds
205
212
  field :lifetime_imps, 'int'
206
213
  field :lifetime_min_spend_target, 'string'
207
214
  field :lifetime_spend_cap, 'string'
215
+ field :multi_optimization_goal_weight, 'string'
208
216
  field :name, 'string'
209
217
  field :optimization_goal, { enum: -> { OPTIMIZATION_GOAL }}
210
218
  field :optimization_sub_event, 'string'
@@ -274,10 +282,8 @@ module FacebookAds
274
282
 
275
283
  has_edge :ads do |edge|
276
284
  edge.get 'Ad' do |api|
277
- api.has_param :ad_draft_id, 'string'
278
285
  api.has_param :date_preset, { enum: -> { Ad::DATE_PRESET }}
279
286
  api.has_param :effective_status, { list: 'string' }
280
- api.has_param :include_drafts, 'bool'
281
287
  api.has_param :time_range, 'object'
282
288
  api.has_param :updated_since, 'int'
283
289
  end
@@ -93,6 +93,7 @@ module FacebookAds
93
93
  "LIVE_PHOTO",
94
94
  "LOOK_NOW_DEPRECATED",
95
95
  "MARKETPLACE_LISTING_VIDEO",
96
+ "MARKETPLACE_PRE_RECORDED_VIDEO",
96
97
  "MOMENTS_VIDEO",
97
98
  "NEO_ASYNC_GAME_VIDEO",
98
99
  "NO_STORY",
@@ -120,6 +121,7 @@ module FacebookAds
120
121
  "SLIDESHOW_SHAKR",
121
122
  "SLIDESHOW_VARIATION_VIDEO",
122
123
  "SOTTO_CONTENT",
124
+ "SOUND_PLATFORM_STREAM",
123
125
  "STORIES_VIDEO",
124
126
  "STORYLINE",
125
127
  "STORYLINE_WITH_EXTERNAL_MUSIC",
@@ -479,18 +479,6 @@ module FacebookAds
479
479
  end
480
480
  end
481
481
 
482
- has_edge :monetization do |edge|
483
- edge.post do |api|
484
- api.has_param :breakdowns, { list: { enum: %w{COUNTRY }} }
485
- api.has_param :campaign_id, 'string'
486
- api.has_param :device_list, { list: 'string' }
487
- api.has_param :query_id, 'string'
488
- api.has_param :request_id, 'string'
489
- api.has_param :since, 'datetime'
490
- api.has_param :until, 'datetime'
491
- end
492
- end
493
-
494
482
  has_edge :occludespopups do |edge|
495
483
  edge.post do |api|
496
484
  api.has_param :flash, 'bool'
@@ -85,10 +85,6 @@ module FacebookAds
85
85
  "MODERATE_COMMUNITY",
86
86
  "PAGES_MESSAGING",
87
87
  "PAGES_MESSAGING_SUBSCRIPTIONS",
88
- "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
89
- "PLATFORM_PAGE_ADMINISTER",
90
- "PLATFORM_PAGE_BASIC_ADMIN",
91
- "PLATFORM_READ_INSIGHTS",
92
88
  "PROFILE_PLUS_ADVERTISE",
93
89
  "PROFILE_PLUS_ANALYZE",
94
90
  "PROFILE_PLUS_CREATE_CONTENT",
@@ -357,7 +353,9 @@ module FacebookAds
357
353
  end
358
354
 
359
355
  has_edge :extendedcredits do |edge|
360
- edge.get 'ExtendedCredit'
356
+ edge.get 'ExtendedCredit' do |api|
357
+ api.has_param :order_by_is_owned_credential, 'bool'
358
+ end
361
359
  end
362
360
 
363
361
  has_edge :images do |edge|
@@ -527,8 +525,7 @@ module FacebookAds
527
525
  end
528
526
 
529
527
  has_edge :pixel_tos do |edge|
530
- edge.get 'BusinessPixelTos'
531
- edge.post 'BusinessPixelTos'
528
+ edge.post
532
529
  end
533
530
 
534
531
  has_edge :received_audience_sharing_requests do |edge|
@@ -54,10 +54,6 @@ module FacebookAds
54
54
  "MODERATE_COMMUNITY",
55
55
  "PAGES_MESSAGING",
56
56
  "PAGES_MESSAGING_SUBSCRIPTIONS",
57
- "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
58
- "PLATFORM_PAGE_ADMINISTER",
59
- "PLATFORM_PAGE_BASIC_ADMIN",
60
- "PLATFORM_READ_INSIGHTS",
61
57
  "PROFILE_PLUS_ADVERTISE",
62
58
  "PROFILE_PLUS_ANALYZE",
63
59
  "PROFILE_PLUS_CREATE_CONTENT",
@@ -175,10 +175,8 @@ module FacebookAds
175
175
 
176
176
  has_edge :ads do |edge|
177
177
  edge.get 'Ad' do |api|
178
- api.has_param :ad_draft_id, 'string'
179
178
  api.has_param :date_preset, { enum: -> { Ad::DATE_PRESET }}
180
179
  api.has_param :effective_status, { list: 'string' }
181
- api.has_param :include_drafts, 'bool'
182
180
  api.has_param :time_range, 'object'
183
181
  api.has_param :updated_since, 'int'
184
182
  end
@@ -186,10 +184,8 @@ module FacebookAds
186
184
 
187
185
  has_edge :adsets do |edge|
188
186
  edge.get 'AdSet' do |api|
189
- api.has_param :ad_draft_id, 'string'
190
187
  api.has_param :date_preset, { enum: -> { AdSet::DATE_PRESET }}
191
188
  api.has_param :effective_status, { list: { enum: -> { AdSet::EFFECTIVE_STATUS }} }
192
- api.has_param :include_drafts, 'bool'
193
189
  api.has_param :is_completed, 'bool'
194
190
  api.has_param :time_range, 'object'
195
191
  end
@@ -30,7 +30,7 @@ module FacebookAds
30
30
  field :handle, 'string'
31
31
  field :item_id, 'int'
32
32
  field :status, 'string'
33
- field :use_cases, 'hash'
33
+ field :use_cases, { list: 'object' }
34
34
  has_no_id
35
35
  has_no_get
36
36
  has_no_post
@@ -87,6 +87,7 @@ module FacebookAds
87
87
  "WORK_SOCIAL",
88
88
  "WORK_TEAM",
89
89
  "WORK_TEAMWORK",
90
+ "WORK_VC_CALL",
90
91
  ]
91
92
 
92
93
  GROUP_TYPE = [
@@ -138,6 +139,7 @@ module FacebookAds
138
139
  "WORK_SOCIAL",
139
140
  "WORK_TEAM",
140
141
  "WORK_TEAMWORK",
142
+ "WORK_VC_CALL",
141
143
  ]
142
144
 
143
145
  SUGGESTION_CATEGORY = [
@@ -385,42 +387,6 @@ module FacebookAds
385
387
  end
386
388
  end
387
389
 
388
- has_edge :open_graph_action_feed do |edge|
389
- edge.post do |api|
390
- api.has_param :added, 'string'
391
- api.has_param :alias, 'string'
392
- api.has_param :android_key_hash, 'string'
393
- api.has_param :client_secret, 'string'
394
- api.has_param :created_time, 'datetime'
395
- api.has_param :end_time, 'datetime'
396
- api.has_param :expires_in, 'int'
397
- api.has_param :fb_channel, 'string'
398
- api.has_param :fb_explicitly_shared, 'bool'
399
- api.has_param :image_height, 'int'
400
- api.has_param :image_secure_url, 'string'
401
- api.has_param :image_type, 'string'
402
- api.has_param :image_url, 'string'
403
- api.has_param :image_user_generated, 'bool'
404
- api.has_param :image_width, 'int'
405
- api.has_param :ios_bundle_id, 'string'
406
- api.has_param :message, 'string'
407
- api.has_param :no_action_link, 'bool'
408
- api.has_param :no_feed_story, 'bool'
409
- api.has_param :notify, 'bool'
410
- api.has_param :place, 'string'
411
- api.has_param :preview, 'bool'
412
- api.has_param :privacy, 'string'
413
- api.has_param :proxied_app_id, 'string'
414
- api.has_param :ref, 'string'
415
- api.has_param :scrape, 'bool'
416
- api.has_param :start_time, 'datetime'
417
- api.has_param :tags, { list: 'int' }
418
- api.has_param :to, 'string'
419
- api.has_param :user_selected_place, 'bool'
420
- api.has_param :user_selected_tags, 'bool'
421
- end
422
- end
423
-
424
390
  has_edge :opted_in_members do |edge|
425
391
  edge.get 'User'
426
392
  end
@@ -38,6 +38,7 @@ module FacebookAds
38
38
  field :mentioned_media, 'IgMedia'
39
39
  field :name, 'string'
40
40
  field :profile_picture_url, 'string'
41
+ field :shopping_review_status, 'string'
41
42
  field :username, 'string'
42
43
  field :website, 'string'
43
44
  has_no_post
@@ -111,10 +111,6 @@ module FacebookAds
111
111
  "MODERATE_COMMUNITY",
112
112
  "PAGES_MESSAGING",
113
113
  "PAGES_MESSAGING_SUBSCRIPTIONS",
114
- "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
115
- "PLATFORM_PAGE_ADMINISTER",
116
- "PLATFORM_PAGE_BASIC_ADMIN",
117
- "PLATFORM_READ_INSIGHTS",
118
114
  "PROFILE_PLUS_ADVERTISE",
119
115
  "PROFILE_PLUS_ANALYZE",
120
116
  "PROFILE_PLUS_CREATE_CONTENT",
@@ -137,10 +133,6 @@ module FacebookAds
137
133
  "MODERATE_COMMUNITY",
138
134
  "PAGES_MESSAGING",
139
135
  "PAGES_MESSAGING_SUBSCRIPTIONS",
140
- "PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
141
- "PLATFORM_PAGE_ADMINISTER",
142
- "PLATFORM_PAGE_BASIC_ADMIN",
143
- "PLATFORM_READ_INSIGHTS",
144
136
  "PROFILE_PLUS_ADVERTISE",
145
137
  "PROFILE_PLUS_ANALYZE",
146
138
  "PROFILE_PLUS_CREATE_CONTENT",
@@ -280,6 +272,7 @@ module FacebookAds
280
272
  "hometown",
281
273
  "hours",
282
274
  "invoice_access_invoice_change",
275
+ "invoice_access_onboarding_status_active",
283
276
  "leadgen",
284
277
  "leadgen_fat",
285
278
  "live_videos",
@@ -327,6 +320,7 @@ module FacebookAds
327
320
  "ratings",
328
321
  "registration",
329
322
  "standby",
323
+ "user_action",
330
324
  "video_text_question_responses",
331
325
  "videos",
332
326
  "website",
@@ -385,6 +379,7 @@ module FacebookAds
385
379
  field :cover, 'CoverPhoto'
386
380
  field :culinary_team, 'string'
387
381
  field :current_location, 'string'
382
+ field :delivery_and_pickup_option_info, { list: 'string' }
388
383
  field :description, 'string'
389
384
  field :description_html, 'string'
390
385
  field :differently_open_offerings, 'hash'
@@ -32,6 +32,7 @@ module FacebookAds
32
32
  "EMAIL",
33
33
  "FACEBOOK_APP",
34
34
  "MESSENGER",
35
+ "MINI_SHOP",
35
36
  "NONE",
36
37
  "PHONE_CALL",
37
38
  "SHOP_ON_FACEBOOK",
@@ -44,6 +45,7 @@ module FacebookAds
44
45
  "EMAIL",
45
46
  "FACEBOOK_APP",
46
47
  "MESSENGER",
48
+ "MINI_SHOP",
47
49
  "NONE",
48
50
  "PHONE_CALL",
49
51
  "SHOP_ON_FACEBOOK",
@@ -71,11 +73,13 @@ module FacebookAds
71
73
  "OPEN_APP",
72
74
  "PLAY_MUSIC",
73
75
  "PLAY_NOW",
76
+ "PURCHASE_GIFT_CARDS",
74
77
  "REQUEST_APPOINTMENT",
75
78
  "REQUEST_QUOTE",
76
79
  "SHOP_NOW",
77
80
  "SHOP_ON_FACEBOOK",
78
81
  "SIGN_UP",
82
+ "VIEW_SHOP",
79
83
  "VISIT_GROUP",
80
84
  "WATCH_NOW",
81
85
  "WOODHENGE_SUPPORT",
@@ -76,6 +76,7 @@ module FacebookAds
76
76
  field :is_eligible_for_promotion, 'bool'
77
77
  field :is_expired, 'bool'
78
78
  field :is_hidden, 'bool'
79
+ field :is_inline_created, 'bool'
79
80
  field :is_instagram_eligible, 'bool'
80
81
  field :is_popular, 'bool'
81
82
  field :is_published, 'bool'
@@ -48,9 +48,5 @@ module FacebookAds
48
48
  has_no_post
49
49
  has_no_delete
50
50
 
51
- has_edge :submitters do |edge|
52
- edge.get 'User'
53
- end
54
-
55
51
  end
56
52
  end
@@ -74,6 +74,7 @@ module FacebookAds
74
74
  field :is_eligible_for_promotion, 'bool'
75
75
  field :is_expired, 'bool'
76
76
  field :is_hidden, 'bool'
77
+ field :is_inline_created, 'bool'
77
78
  field :is_instagram_eligible, 'bool'
78
79
  field :is_popular, 'bool'
79
80
  field :is_published, 'bool'
@@ -165,11 +166,11 @@ module FacebookAds
165
166
  edge.post do |api|
166
167
  api.has_param :ad_account_id, 'string'
167
168
  api.has_param :ad_conversion_pixel_id, 'int'
168
- api.has_param :audience, { enum: %w{AUTO_LOOKALIKE AUTO_PAGE_LOOKALIKE AUTO_TARGETING CREATE_NEW CUSTOM_AUDIENCE DISTRICT EVENT_CUSTOM_AUDIENCES EVENT_ENGAGEMENT FANS GROUPER HEC_AUDIENCE IG_PROMOTED_POST_AUTO LOCAL LOOKALIKE MULT_CUSTOM_AUDIENCES NCPP SAVED_AUDIENCE SMART_AUDIENCE }}
169
+ 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 }}
169
170
  api.has_param :audience_id, 'string'
170
171
  api.has_param :bid_amount, 'int'
171
172
  api.has_param :budget, 'int'
172
- api.has_param :cta_type, { enum: %w{ADD_TO_CART APPLY_NOW BOOK_TRAVEL BUY BUY_NOW BUY_TICKETS CALL CALL_ME CONTACT CONTACT_US DONATE DONATE_NOW DOWNLOAD EVENT_RSVP FIND_A_GROUP FIND_YOUR_GROUPS FOLLOW_NEWS_STORYLINE GET_DIRECTIONS GET_OFFER GET_OFFER_VIEW GET_QUOTE GET_SHOWTIMES INSTALL_APP INSTALL_MOBILE_APP LEARN_MORE LIKE_PAGE LISTEN_MUSIC LISTEN_NOW MESSAGE_PAGE MOBILE_DOWNLOAD MOMENTS NO_BUTTON OPEN_LINK ORDER_NOW PLAY_GAME RECORD_NOW SAY_THANKS SEE_MORE SELL_NOW SHARE SHOP_NOW SIGN_UP SOTTO_SUBSCRIBE SUBSCRIBE UPDATE_APP USE_APP USE_MOBILE_APP VIDEO_ANNOTATION VISIT_PAGES_FEED WATCH_MORE WATCH_VIDEO WHATSAPP_MESSAGE WOODHENGE_SUPPORT }}
173
+ api.has_param :cta_type, { enum: %w{ADD_TO_CART APPLY_NOW BOOK_TRAVEL BUY BUY_NOW BUY_TICKETS CALL CALL_ME CONTACT CONTACT_US DONATE DONATE_NOW DOWNLOAD EVENT_RSVP FIND_A_GROUP FIND_YOUR_GROUPS FOLLOW_NEWS_STORYLINE FOLLOW_USER GET_DIRECTIONS GET_OFFER GET_OFFER_VIEW GET_QUOTE GET_SHOWTIMES INSTALL_APP INSTALL_MOBILE_APP LEARN_MORE LIKE_PAGE LISTEN_MUSIC LISTEN_NOW MESSAGE_PAGE MOBILE_DOWNLOAD MOMENTS NO_BUTTON OPEN_LINK ORDER_NOW PAY_TO_ACCESS PLAY_GAME RECORD_NOW REQUEST_TIME SAY_THANKS SEE_MORE SELL_NOW SHARE SHOP_NOW SIGN_UP SOTTO_SUBSCRIBE SUBSCRIBE UPDATE_APP USE_APP USE_MOBILE_APP VIDEO_ANNOTATION VISIT_PAGES_FEED WATCH_MORE WATCH_VIDEO WHATSAPP_MESSAGE WOODHENGE_SUPPORT }}
173
174
  api.has_param :currency, 'string'
174
175
  api.has_param :flow_id, 'string'
175
176
  api.has_param :placement, 'string'
@@ -33,6 +33,7 @@ module FacebookAds
33
33
  "flights",
34
34
  "home_listings",
35
35
  "hotels",
36
+ "jobs",
36
37
  "offer_items",
37
38
  "offline_commerce",
38
39
  "ticketed_experiences",
@@ -61,6 +61,7 @@ module FacebookAds
61
61
  "LOCAL_INVENTORY",
62
62
  "MARKET",
63
63
  "MEDIA_TITLE",
64
+ "OFFER",
64
65
  "PRODUCTS",
65
66
  "VEHICLES",
66
67
  "VEHICLE_OFFER",
@@ -25,10 +25,12 @@ 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 BusinessPixelTos < AdObject
28
+ class ProductFeedUploadDiagnostics < AdObject
29
29
 
30
- field :accept_time, 'int'
31
- field :id, 'string'
30
+ field :last_modified_time, 'string'
31
+ field :report_url, 'string'
32
+ has_no_id
33
+ has_no_get
32
34
  has_no_post
33
35
  has_no_delete
34
36
 
@@ -50,10 +50,6 @@ module FacebookAds
50
50
  end
51
51
  end
52
52
 
53
- has_edge :instagram_comments do |edge|
54
- edge.get 'InstagramComment'
55
- end
56
-
57
53
  has_edge :likes do |edge|
58
54
  edge.get 'Profile'
59
55
  end
@@ -26,17 +26,13 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class VideoGameShow < AdObject
29
- ACTION = [
30
- "END_GAME",
31
- "START_GAME",
32
- ]
33
-
34
29
 
35
30
  field :end_time, 'datetime'
36
31
  field :game_status, 'string'
37
32
  field :game_type, 'string'
38
33
  field :id, 'string'
39
34
  field :start_time, 'datetime'
35
+ has_no_post
40
36
  has_no_delete
41
37
 
42
38
  end
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.6.0.3'
22
+ VERSION = '0.6.0.4'
23
23
  API_VERSION = '6.0'
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.6.0.3
4
+ version: 0.6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -368,7 +368,6 @@ files:
368
368
  - lib/facebook_ads/ad_objects/business_image.rb
369
369
  - lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb
370
370
  - lib/facebook_ads/ad_objects/business_page_request.rb
371
- - lib/facebook_ads/ad_objects/business_pixel_tos.rb
372
371
  - lib/facebook_ads/ad_objects/business_role_request.rb
373
372
  - lib/facebook_ads/ad_objects/business_unit.rb
374
373
  - lib/facebook_ads/ad_objects/business_user.rb
@@ -446,7 +445,6 @@ files:
446
445
  - lib/facebook_ads/ad_objects/ig_media.rb
447
446
  - lib/facebook_ads/ad_objects/ig_user.rb
448
447
  - lib/facebook_ads/ad_objects/insights_result.rb
449
- - lib/facebook_ads/ad_objects/instagram_comment.rb
450
448
  - lib/facebook_ads/ad_objects/instagram_insights_result.rb
451
449
  - lib/facebook_ads/ad_objects/instagram_insights_value.rb
452
450
  - lib/facebook_ads/ad_objects/instagram_user.rb
@@ -537,6 +535,7 @@ files:
537
535
  - lib/facebook_ads/ad_objects/product_feed_rule_suggestion.rb
538
536
  - lib/facebook_ads/ad_objects/product_feed_schedule.rb
539
537
  - lib/facebook_ads/ad_objects/product_feed_upload.rb
538
+ - lib/facebook_ads/ad_objects/product_feed_upload_diagnostics.rb
540
539
  - lib/facebook_ads/ad_objects/product_feed_upload_error.rb
541
540
  - lib/facebook_ads/ad_objects/product_feed_upload_error_report.rb
542
541
  - lib/facebook_ads/ad_objects/product_feed_upload_error_sample.rb
@@ -1,47 +0,0 @@
1
- # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
- #
3
- # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
- # copy, modify, and distribute this software in source code or binary form for use
5
- # in connection with the web services and APIs provided by Facebook.
6
- #
7
- # As with any software that integrates with the Facebook platform, your use of
8
- # this software is subject to the Facebook Platform Policy
9
- # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
- # included in all copies or substantial portions of the software.
11
- #
12
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
- # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
- # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
- # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
- # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
-
19
- # FB:AUTOGEN
20
-
21
- module FacebookAds
22
- # This class is auto-generated.
23
-
24
- # For any issues or feature requests related to this class, please let us know
25
- # on github and we'll fix in our codegen framework. We'll not be able to accept
26
- # pull request for this class.
27
-
28
- class InstagramComment < AdObject
29
-
30
- field :comment_type, 'string'
31
- field :created_at, 'datetime'
32
- field :id, 'string'
33
- field :instagram_comment_id, 'string'
34
- field :instagram_user, 'InstagramUser'
35
- field :mentioned_instagram_users, { list: 'InstagramUser' }
36
- field :message, 'string'
37
-
38
- has_edge :replies do |edge|
39
- edge.get 'InstagramComment'
40
- edge.post 'InstagramComment' do |api|
41
- api.has_param :ad_id, 'object'
42
- api.has_param :message, 'string'
43
- end
44
- end
45
-
46
- end
47
- end