facebookbusiness 0.4.0.5 → 0.4.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b82568e6d37156964d22085d8ca07df0e0aa9353d3b4e87c3b61f802642cb009
4
- data.tar.gz: 3b684db3962121dfd6dcc6b21ce6a1f6c7bc68bd98319498419dd75903309734
3
+ metadata.gz: fca266b71edc3301eddb038152a5d95decd91ade1a34f9f9d879d5903bd82fa2
4
+ data.tar.gz: bef3bb9e6bf3d233345e4e08426f84be590462a4373168924dbe74396bffd6c8
5
5
  SHA512:
6
- metadata.gz: 7d422216a49360673ec8c50a77d291078d3180310ded3ea4109e80febeddcdf0d903edeaf98c252686a716e27651fdf25b48eff9a81174ea9154261756cf748d
7
- data.tar.gz: 33b3a941b916f780eef1b9b9cbcf2ea019f9e8f3fd49ded7a2d93964a2a6cf82c9fb3a64e629a9691ff4b4ccff5e9215fb3c0315b79a3916cb3e8f9af009cba5
6
+ metadata.gz: 8591b79d2a52c943d0a79ba1982383facc775c4573de0fa4cb5e0516df08e198fe3a5e060d190595ab02fcd4f89f3230dafacb371282959d9696a3a492ac3b43
7
+ data.tar.gz: 3c649fe2d674bc212baf25d50f98ceeefdfc48f39b186587ad09eb75e52cf473743c8770b3d78f5ac5450083ab1145858a851a8f97d5e05c0c2a51bb7157a503
@@ -291,6 +291,7 @@ module FacebookAds
291
291
  api.has_param :time_start, 'datetime'
292
292
  api.has_param :time_stop, 'datetime'
293
293
  api.has_param :topline_id, 'string'
294
+ api.has_param :tune_for_category, { enum: -> { AdSet::TUNE_FOR_CATEGORY }}
294
295
  api.has_param :upstream_events, 'hash'
295
296
  end
296
297
  end
@@ -395,10 +396,6 @@ module FacebookAds
395
396
  end
396
397
  end
397
398
 
398
- has_edge :adreportruns do |edge|
399
- edge.delete
400
- end
401
-
402
399
  has_edge :adreportschedules do |edge|
403
400
  edge.get
404
401
  edge.post do |api|
@@ -613,6 +610,7 @@ module FacebookAds
613
610
  api.has_param :replace_video_id, 'string'
614
611
  api.has_param :sales_promo_id, 'int'
615
612
  api.has_param :slideshow_spec, 'hash'
613
+ api.has_param :source, file
616
614
  api.has_param :spherical, 'bool'
617
615
  api.has_param :start_offset, 'int'
618
616
  api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }}
@@ -626,7 +624,7 @@ module FacebookAds
626
624
  api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }}
627
625
  api.has_param :upload_session_id, 'string'
628
626
  api.has_param :upload_setting_properties, 'string'
629
- api.has_param :video_file_chunk, 'string'
627
+ api.has_param :video_file_chunk, file
630
628
  api.has_param :video_start_time_ms, 'int'
631
629
  api.has_param :waterfall_id, 'string'
632
630
  api.accepts_files!
@@ -761,6 +759,7 @@ module FacebookAds
761
759
  api.has_param :pacing_type, { list: 'string' }
762
760
  api.has_param :promoted_object, 'object'
763
761
  api.has_param :source_campaign_id, 'string'
762
+ api.has_param :special_ad_category, { enum: -> { Campaign::SPECIAL_AD_CATEGORY }}
764
763
  api.has_param :spend_cap, 'int'
765
764
  api.has_param :status, { enum: -> { Campaign::STATUS }}
766
765
  api.has_param :topline_id, 'string'
@@ -1115,7 +1114,7 @@ module FacebookAds
1115
1114
  edge.delete do |api|
1116
1115
  api.has_param :app_id, 'string'
1117
1116
  end
1118
- edge.post 'Application' do |api|
1117
+ edge.post do |api|
1119
1118
  api.has_param :app_id, 'string'
1120
1119
  end
1121
1120
  end
@@ -155,7 +155,6 @@ module FacebookAds
155
155
  "product_audience_specs",
156
156
  "prospecting_audience",
157
157
  "publisher_platforms",
158
- "publisher_visibility_categories",
159
158
  "radius",
160
159
  "regions",
161
160
  "relationship_statuses",
@@ -130,6 +130,13 @@ module FacebookAds
130
130
  "VIDEO_SOUND_ON",
131
131
  ]
132
132
 
133
+ TUNE_FOR_CATEGORY = [
134
+ "CREDIT",
135
+ "EMPLOYMENT",
136
+ "HOUSING",
137
+ "NONE",
138
+ ]
139
+
133
140
  DATE_PRESET = [
134
141
  "LAST_14D",
135
142
  "LAST_28D",
@@ -224,6 +231,7 @@ module FacebookAds
224
231
  field :time_start, 'datetime'
225
232
  field :time_stop, 'datetime'
226
233
  field :topline_id, 'string'
234
+ field :tune_for_category, { enum: -> { TUNE_FOR_CATEGORY }}
227
235
  field :upstream_events, 'hash'
228
236
 
229
237
  has_edge :activities do |edge|
@@ -113,6 +113,7 @@ module FacebookAds
113
113
  "SHOWREEL_NATIVE_DUMMY_VIDEO",
114
114
  "SLIDESHOW_ANIMOTO",
115
115
  "SLIDESHOW_SHAKR",
116
+ "SLIDESHOW_VARIATION_VIDEO",
116
117
  "SOTTO_CONTENT",
117
118
  "STORIES_VIDEO",
118
119
  "STORYLINE",
@@ -170,6 +171,7 @@ module FacebookAds
170
171
  "DRAFT",
171
172
  "INLINE_CREATED",
172
173
  "PUBLISHED",
174
+ "REVIEWABLE_BRANDED_CONTENT",
173
175
  "SCHEDULED",
174
176
  "SCHEDULED_RECURRING",
175
177
  ]
@@ -347,6 +347,7 @@ module FacebookAds
347
347
  field :video_p25_watched_actions, { list: 'AdsActionStats' }
348
348
  field :video_p50_watched_actions, { list: 'AdsActionStats' }
349
349
  field :video_p75_watched_actions, { list: 'AdsActionStats' }
350
+ field :video_p95_watched_actions, { list: 'AdsActionStats' }
350
351
  field :video_play_actions, { list: 'AdsActionStats' }
351
352
  field :video_play_curve_actions, { list: 'object' }
352
353
  field :video_play_retention_0_to_15s_actions, { list: 'object' }
@@ -104,11 +104,9 @@ module FacebookAds
104
104
 
105
105
  has_edge :events do |edge|
106
106
  edge.post 'AdsPixel' do |api|
107
- api.has_param :agent, 'string'
108
107
  api.has_param :data, { list: 'string' }
109
108
  api.has_param :test_event_code, 'string'
110
109
  api.has_param :trace, 'int'
111
- api.has_param :upload_tag, 'string'
112
110
  end
113
111
  end
114
112
 
@@ -93,6 +93,7 @@ module FacebookAds
93
93
  ]
94
94
 
95
95
 
96
+ field :aam_rules, 'string'
96
97
  field :an_ad_space_limit, 'int'
97
98
  field :an_platforms, { list: 'string' }
98
99
  field :android_key_hash, { list: 'string' }
@@ -191,7 +192,6 @@ module FacebookAds
191
192
  field :user_support_url, 'string'
192
193
  field :website_url, 'string'
193
194
  field :weekly_active_users, 'string'
194
- field :app_id, 'string'
195
195
  has_no_delete
196
196
 
197
197
  has_edge :accounts do |edge|
@@ -422,6 +422,7 @@ module FacebookAds
422
422
  end
423
423
 
424
424
  has_edge :insights_push_schedule do |edge|
425
+ edge.get
425
426
  edge.post do |api|
426
427
  api.has_param :ad_account_ids, { list: 'string' }
427
428
  api.has_param :breakdowns, { list: 'string' }
@@ -432,14 +433,9 @@ module FacebookAds
432
433
  api.has_param :owner_id, 'object'
433
434
  api.has_param :schedule, { enum: %w{DAILY FINE_15_MIN FINE_5_MIN MONTHLY WEEKLY }}
434
435
  api.has_param :status, { enum: %w{ACTIVE DISABLED ERROR }}
435
- api.has_param :time_created, 'datetime'
436
436
  api.has_param :time_increment, 'int'
437
- api.has_param :time_last_fail, 'datetime'
438
- api.has_param :time_last_run, 'datetime'
439
- api.has_param :time_last_success, 'datetime'
440
437
  api.has_param :time_start, 'datetime'
441
438
  api.has_param :time_stop, 'datetime'
442
- api.has_param :time_updated, 'datetime'
443
439
  end
444
440
  end
445
441
 
@@ -577,12 +573,6 @@ module FacebookAds
577
573
  edge.get
578
574
  end
579
575
 
580
- has_edge :staging_resources do |edge|
581
- edge.post 'Application' do |api|
582
- api.has_param :file, 'file'
583
- end
584
- end
585
-
586
576
  has_edge :subscribed_domains do |edge|
587
577
  edge.get
588
578
  edge.post 'Application' do |api|
@@ -66,6 +66,7 @@ module FacebookAds
66
66
 
67
67
  has_edge :insights do |edge|
68
68
  edge.get do |api|
69
+ api.has_param :breakdowns, { list: { enum: %w{age country gender }} }
69
70
  api.has_param :time_range, 'object'
70
71
  end
71
72
  end
@@ -99,6 +99,13 @@ module FacebookAds
99
99
  "VIDEO_VIEWS",
100
100
  ]
101
101
 
102
+ SPECIAL_AD_CATEGORY = [
103
+ "CREDIT",
104
+ "EMPLOYMENT",
105
+ "HOUSING",
106
+ "NONE",
107
+ ]
108
+
102
109
  OPERATOR = [
103
110
  "ALL",
104
111
  "ANY",
@@ -136,6 +143,7 @@ module FacebookAds
136
143
  field :recommendations, { list: 'AdRecommendation' }
137
144
  field :source_campaign, 'Campaign'
138
145
  field :source_campaign_id, 'string'
146
+ field :special_ad_category, 'string'
139
147
  field :spend_cap, 'string'
140
148
  field :start_time, 'datetime'
141
149
  field :status, { enum: -> { STATUS }}
@@ -72,13 +72,6 @@ module FacebookAds
72
72
  field :event_source_id, 'string'
73
73
  field :custom_conversion_id, 'string'
74
74
 
75
- has_edge :adaccounts do |edge|
76
- edge.delete do |api|
77
- api.has_param :account_id, 'string'
78
- api.has_param :business, 'string'
79
- end
80
- end
81
-
82
75
  has_edge :stats do |edge|
83
76
  edge.get 'CustomConversionStatsResult' do |api|
84
77
  api.has_param :aggregation, { enum: -> { CustomConversionStatsResult::AGGREGATION }}
@@ -226,7 +226,7 @@ module FacebookAds
226
226
  api.has_param :time_since_original_post, 'int'
227
227
  api.has_param :title, 'string'
228
228
  api.has_param :tracking_info, 'string'
229
- api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED SCHEDULED SCHEDULED_RECURRING }}
229
+ api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED REVIEWABLE_BRANDED_CONTENT SCHEDULED SCHEDULED_RECURRING }}
230
230
  api.has_param :user_selected_tags, 'bool'
231
231
  api.has_param :video_start_time_ms, 'int'
232
232
  api.has_param :viewer_coordinates, 'object'
@@ -67,6 +67,7 @@ module FacebookAds
67
67
  "REAL_WORLD_AT_WORK",
68
68
  "SCHOOL_CLASS",
69
69
  "SORORITY",
70
+ "SPORTS",
70
71
  "STUDY_GROUP",
71
72
  "SUPPORT",
72
73
  "TEAMMATES",
@@ -115,6 +116,7 @@ module FacebookAds
115
116
  "REAL_WORLD_AT_WORK",
116
117
  "SCHOOL_CLASS",
117
118
  "SORORITY",
119
+ "SPORTS",
118
120
  "STUDY_GROUP",
119
121
  "SUPPORT",
120
122
  "TEAMMATES",
@@ -322,7 +324,7 @@ module FacebookAds
322
324
  api.has_param :time_since_original_post, 'int'
323
325
  api.has_param :title, 'string'
324
326
  api.has_param :tracking_info, 'string'
325
- api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED SCHEDULED SCHEDULED_RECURRING }}
327
+ api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED REVIEWABLE_BRANDED_CONTENT SCHEDULED SCHEDULED_RECURRING }}
326
328
  api.has_param :user_selected_tags, 'bool'
327
329
  api.has_param :video_start_time_ms, 'int'
328
330
  api.has_param :viewer_coordinates, 'object'
@@ -35,6 +35,7 @@ module FacebookAds
35
35
  RELATIONSHIP_TYPE = [
36
36
  "AD_MANAGER",
37
37
  "AGENCY",
38
+ "AGGREGATOR",
38
39
  "AUDIENCE_MANAGER",
39
40
  "OTHER",
40
41
  ]
@@ -1018,10 +1018,6 @@ module FacebookAds
1018
1018
  edge.post 'InstagramUser'
1019
1019
  end
1020
1020
 
1021
- has_edge :partner_coupon_offer do |edge|
1022
- edge.get 'PartnerCouponOffer'
1023
- end
1024
-
1025
1021
  has_edge :pass_thread_control do |edge|
1026
1022
  edge.post 'Page' do |api|
1027
1023
  api.has_param :metadata, 'string'
@@ -75,6 +75,7 @@ module FacebookAds
75
75
  "DRAFT",
76
76
  "INLINE_CREATED",
77
77
  "PUBLISHED",
78
+ "REVIEWABLE_BRANDED_CONTENT",
78
79
  "SCHEDULED",
79
80
  "SCHEDULED_RECURRING",
80
81
  ]
@@ -219,10 +220,6 @@ module FacebookAds
219
220
  end
220
221
  end
221
222
 
222
- has_edge :seen do |edge|
223
- edge.get 'User'
224
- end
225
-
226
223
  has_edge :sharedposts do |edge|
227
224
  edge.get 'Post'
228
225
  end
@@ -40,6 +40,7 @@ module FacebookAds
40
40
  "DRAFT",
41
41
  "INLINE_CREATED",
42
42
  "PUBLISHED",
43
+ "REVIEWABLE_BRANDED_CONTENT",
43
44
  "SCHEDULED",
44
45
  "SCHEDULED_RECURRING",
45
46
  ]
@@ -194,10 +194,6 @@ module FacebookAds
194
194
  end
195
195
  end
196
196
 
197
- has_edge :seen do |edge|
198
- edge.get 'User'
199
- end
200
-
201
197
  has_edge :sharedposts do |edge|
202
198
  edge.get 'Post'
203
199
  end
@@ -323,6 +323,7 @@ module FacebookAds
323
323
  api.has_param :return_only_approved_products, 'bool'
324
324
  end
325
325
  edge.post 'ProductItem' do |api|
326
+ api.has_param :additional_image_files, { list: 'file' }
326
327
  api.has_param :additional_image_urls, { list: 'string' }
327
328
  api.has_param :additional_variant_attributes, 'hash'
328
329
  api.has_param :android_app_name, 'string'
@@ -334,6 +335,7 @@ module FacebookAds
334
335
  api.has_param :category, 'string'
335
336
  api.has_param :checkout_url, 'string'
336
337
  api.has_param :color, 'string'
338
+ api.has_param :commerce_tax_category, { enum: -> { ProductItem::COMMERCE_TAX_CATEGORY }}
337
339
  api.has_param :condition, { enum: -> { ProductItem::CONDITION }}
338
340
  api.has_param :currency, 'string'
339
341
  api.has_param :custom_data, 'hash'
@@ -371,6 +373,7 @@ module FacebookAds
371
373
  api.has_param :product_type, 'string'
372
374
  api.has_param :retailer_id, 'string'
373
375
  api.has_param :retailer_product_group_id, 'string'
376
+ api.has_param :return_policy_days, 'int'
374
377
  api.has_param :sale_price, 'int'
375
378
  api.has_param :sale_price_end_date, 'datetime'
376
379
  api.has_param :sale_price_start_date, 'datetime'
@@ -46,6 +46,7 @@ module FacebookAds
46
46
  api.has_param :category, 'string'
47
47
  api.has_param :checkout_url, 'string'
48
48
  api.has_param :color, 'string'
49
+ api.has_param :commerce_tax_category, { enum: -> { ProductItem::COMMERCE_TAX_CATEGORY }}
49
50
  api.has_param :condition, { enum: -> { ProductItem::CONDITION }}
50
51
  api.has_param :currency, 'string'
51
52
  api.has_param :custom_data, 'hash'
@@ -82,6 +83,7 @@ module FacebookAds
82
83
  api.has_param :price, 'int'
83
84
  api.has_param :product_type, 'string'
84
85
  api.has_param :retailer_id, 'string'
86
+ api.has_param :return_policy_days, 'int'
85
87
  api.has_param :sale_price, 'int'
86
88
  api.has_param :sale_price_end_date, 'datetime'
87
89
  api.has_param :sale_price_start_date, 'datetime'
@@ -79,6 +79,211 @@ module FacebookAds
79
79
  "staging",
80
80
  ]
81
81
 
82
+ COMMERCE_TAX_CATEGORY = [
83
+ "FB_ANIMAL",
84
+ "FB_ANIMAL_SUPP",
85
+ "FB_APRL",
86
+ "FB_APRL_ACCESSORIES",
87
+ "FB_APRL_ATHL_UNIF",
88
+ "FB_APRL_CASES",
89
+ "FB_APRL_CLOTHING",
90
+ "FB_APRL_COSTUME",
91
+ "FB_APRL_CSTM",
92
+ "FB_APRL_HANDBAG",
93
+ "FB_APRL_JEWELRY",
94
+ "FB_APRL_SHOE",
95
+ "FB_APRL_SHOE_ACC",
96
+ "FB_APRL_SWIM",
97
+ "FB_APRL_SWIM_CHIL",
98
+ "FB_APRL_SWIM_CVR",
99
+ "FB_ARTS",
100
+ "FB_ARTS_HOBBY",
101
+ "FB_ARTS_PARTY",
102
+ "FB_ARTS_PARTY_GIFT_CARD",
103
+ "FB_ARTS_TICKET",
104
+ "FB_BABY",
105
+ "FB_BABY_BATH",
106
+ "FB_BABY_BLANKET",
107
+ "FB_BABY_DIAPER",
108
+ "FB_BABY_GIFT_SET",
109
+ "FB_BABY_HEALTH",
110
+ "FB_BABY_NURSING",
111
+ "FB_BABY_POTTY_TRN",
112
+ "FB_BABY_SAFE",
113
+ "FB_BABY_TOYS",
114
+ "FB_BABY_TRANSPORT",
115
+ "FB_BABY_TRANSPORT_ACC",
116
+ "FB_BAGS",
117
+ "FB_BAGS_BKPK",
118
+ "FB_BAGS_BOXES",
119
+ "FB_BAGS_BRFCS",
120
+ "FB_BAGS_CSMT_BAG",
121
+ "FB_BAGS_DFFL",
122
+ "FB_BAGS_DIPR",
123
+ "FB_BAGS_FNNY",
124
+ "FB_BAGS_GRMT",
125
+ "FB_BAGS_LUGG",
126
+ "FB_BAGS_LUG_ACC",
127
+ "FB_BAGS_MSGR",
128
+ "FB_BAGS_TOTE",
129
+ "FB_BAGS_TRN_CAS",
130
+ "FB_BLDG",
131
+ "FB_BLDG_ACC",
132
+ "FB_BLDG_CNSMB",
133
+ "FB_BLDG_FENCE",
134
+ "FB_BLDG_FUEL_TNK",
135
+ "FB_BLDG_HT_VNT",
136
+ "FB_BLDG_LOCK",
137
+ "FB_BLDG_MATRL",
138
+ "FB_BLDG_PLMB",
139
+ "FB_BLDG_PUMP",
140
+ "FB_BLDG_PWRS",
141
+ "FB_BLDG_STR_TANK",
142
+ "FB_BLDG_S_ENG",
143
+ "FB_BLDG_TL_ACC",
144
+ "FB_BLDG_TOOL",
145
+ "FB_BUSIND",
146
+ "FB_BUSIND_ADVERTISING",
147
+ "FB_BUSIND_AGRICULTURE",
148
+ "FB_BUSIND_AUTOMATION",
149
+ "FB_BUSIND_HEAVY_MACH",
150
+ "FB_BUSIND_LAB",
151
+ "FB_BUSIND_MEDICAL",
152
+ "FB_BUSIND_RETAIL",
153
+ "FB_BUSIND_SANITARY_CT",
154
+ "FB_BUSIND_SIGN",
155
+ "FB_BUSIND_STORAGE",
156
+ "FB_BUSIND_STORAGE_ACC",
157
+ "FB_BUSIND_WORK_GEAR",
158
+ "FB_CAMERA_ACC",
159
+ "FB_CAMERA_CAMERA",
160
+ "FB_CAMERA_OPTIC",
161
+ "FB_CAMERA_OPTICS",
162
+ "FB_CAMERA_PHOTO",
163
+ "FB_ELEC",
164
+ "FB_ELEC_ACC",
165
+ "FB_ELEC_ARCDADE",
166
+ "FB_ELEC_AUDIO",
167
+ "FB_ELEC_CIRCUIT",
168
+ "FB_ELEC_COMM",
169
+ "FB_ELEC_COMPUTER",
170
+ "FB_ELEC_GPS_ACC",
171
+ "FB_ELEC_GPS_NAV",
172
+ "FB_ELEC_GPS_TRK",
173
+ "FB_ELEC_MARINE",
174
+ "FB_ELEC_NETWORK",
175
+ "FB_ELEC_PART",
176
+ "FB_ELEC_PRINT",
177
+ "FB_ELEC_RADAR",
178
+ "FB_ELEC_SPEED_RDR",
179
+ "FB_ELEC_TOLL",
180
+ "FB_ELEC_VIDEO",
181
+ "FB_ELEC_VID_GM_ACC",
182
+ "FB_ELEC_VID_GM_CNSL",
183
+ "FB_FOOD",
184
+ "FB_FURN",
185
+ "FB_FURN_BABY",
186
+ "FB_FURN_BENCH",
187
+ "FB_FURN_CART",
188
+ "FB_FURN_CHAIR",
189
+ "FB_FURN_CHAIR_ACC",
190
+ "FB_FURN_DIVIDE",
191
+ "FB_FURN_DIVIDE_ACC",
192
+ "FB_FURN_ENT_CTR",
193
+ "FB_FURN_FUTN",
194
+ "FB_FURN_FUTN_PAD",
195
+ "FB_FURN_OFFICE",
196
+ "FB_FURN_OFFICE_ACC",
197
+ "FB_FURN_OTTO",
198
+ "FB_FURN_OUTDOOR",
199
+ "FB_FURN_OUTDOOR_ACC",
200
+ "FB_FURN_SETS",
201
+ "FB_FURN_SHELVE_ACC",
202
+ "FB_FURN_SHLF",
203
+ "FB_FURN_SOFA",
204
+ "FB_FURN_SOFA_ACC",
205
+ "FB_FURN_STORAGE",
206
+ "FB_FURN_TABL",
207
+ "FB_FURN_TABL_ACC",
208
+ "FB_GENERIC_TAXABLE",
209
+ "FB_HLTH",
210
+ "FB_HLTH_HLTH",
211
+ "FB_HLTH_JWL_CR",
212
+ "FB_HLTH_LILP_BLM",
213
+ "FB_HLTH_LTN_SPF",
214
+ "FB_HLTH_PRSL_CR",
215
+ "FB_HLTH_SKN_CR",
216
+ "FB_HMGN",
217
+ "FB_HMGN_BATH",
218
+ "FB_HMGN_DCOR",
219
+ "FB_HMGN_EMGY",
220
+ "FB_HMGN_FPLC",
221
+ "FB_HMGN_FPLC_ACC",
222
+ "FB_HMGN_GS_SFT",
223
+ "FB_HMGN_HS_ACC",
224
+ "FB_HMGN_HS_APP",
225
+ "FB_HMGN_HS_SPL",
226
+ "FB_HMGN_KTCN",
227
+ "FB_HMGN_LAWN",
228
+ "FB_HMGN_LGHT",
229
+ "FB_HMGN_LINN",
230
+ "FB_HMGN_LT_ACC",
231
+ "FB_HMGN_OTDR",
232
+ "FB_HMGN_POOL",
233
+ "FB_HMGN_SCTY",
234
+ "FB_HMGN_SMK_ACC",
235
+ "FB_HMGN_UMBR",
236
+ "FB_HMGN_UMBR_ACC",
237
+ "FB_MDIA",
238
+ "FB_MDIA_BOOK",
239
+ "FB_MDIA_DVDS",
240
+ "FB_MDIA_MAG",
241
+ "FB_MDIA_MANL",
242
+ "FB_MDIA_MUSC",
243
+ "FB_MDIA_PRJ_PLN",
244
+ "FB_MDIA_SHT_MUS",
245
+ "FB_OFFC",
246
+ "FB_OFFC_BKAC",
247
+ "FB_OFFC_CRTS",
248
+ "FB_OFFC_DSKP",
249
+ "FB_OFFC_EQIP",
250
+ "FB_OFFC_FLNG",
251
+ "FB_OFFC_GNRL",
252
+ "FB_OFFC_INSTM",
253
+ "FB_OFFC_LP_DSK",
254
+ "FB_OFFC_MATS",
255
+ "FB_OFFC_NM_PLT",
256
+ "FB_OFFC_PPR_HNDL",
257
+ "FB_OFFC_PRSNT_SPL",
258
+ "FB_OFFC_SEALR",
259
+ "FB_OFFC_SHIP_SPL",
260
+ "FB_RLGN",
261
+ "FB_RLGN_CMNY",
262
+ "FB_RLGN_ITEM",
263
+ "FB_RLGN_WEDD",
264
+ "FB_SFTWR",
265
+ "FB_SFWR_CMPTR",
266
+ "FB_SFWR_DGTL_GD",
267
+ "FB_SFWR_GAME",
268
+ "FB_SHIPPING",
269
+ "FB_SPOR",
270
+ "FB_SPORT_ATHL",
271
+ "FB_SPORT_ATHL_CLTH",
272
+ "FB_SPORT_ATHL_SHOE",
273
+ "FB_SPORT_ATHL_SPRT",
274
+ "FB_SPORT_EXRCS",
275
+ "FB_SPORT_INDR_GM",
276
+ "FB_SPORT_OTDR_GM",
277
+ "FB_TOYS",
278
+ "FB_TOYS_EQIP",
279
+ "FB_TOYS_GAME",
280
+ "FB_TOYS_PZZL",
281
+ "FB_TOYS_TMRS",
282
+ "FB_TOYS_TOYS",
283
+ "FB_VEHI",
284
+ "FB_VEHI_PART",
285
+ ]
286
+
82
287
 
83
288
  field :additional_image_cdn_urls, { list: 'hash' }
84
289
  field :additional_image_urls, { list: 'string' }
@@ -132,11 +337,13 @@ module FacebookAds
132
337
  field :start_date, 'string'
133
338
  field :url, 'string'
134
339
  field :visibility, { enum: -> { VISIBILITY }}
340
+ field :additional_image_files, { list: 'file' }
135
341
  field :android_app_name, 'string'
136
342
  field :android_class, 'string'
137
343
  field :android_package, 'string'
138
344
  field :android_url, 'string'
139
345
  field :checkout_url, 'string'
346
+ field :commerce_tax_category, { enum: -> { COMMERCE_TAX_CATEGORY }}
140
347
  field :ios_app_name, 'string'
141
348
  field :ios_app_store_id, 'int'
142
349
  field :ios_url, 'string'
@@ -150,6 +357,7 @@ module FacebookAds
150
357
  field :offer_price_amount, 'int'
151
358
  field :offer_price_end_date, 'datetime'
152
359
  field :offer_price_start_date, 'datetime'
360
+ field :return_policy_days, 'int'
153
361
  field :windows_phone_app_id, 'string'
154
362
  field :windows_phone_app_name, 'string'
155
363
  field :windows_phone_url, 'string'
@@ -114,7 +114,6 @@ module FacebookAds
114
114
  field :product_audience_specs, { list: 'TargetingProductAudienceSpec' }
115
115
  field :prospecting_audience, 'TargetingProspectingAudience'
116
116
  field :publisher_platforms, { list: 'string' }
117
- field :publisher_visibility_categories, { list: 'string' }
118
117
  field :radius, 'string'
119
118
  field :regions, { list: 'IdName' }
120
119
  field :relationship_statuses, { list: 'int' }
@@ -321,10 +321,6 @@ module FacebookAds
321
321
  edge.get 'User'
322
322
  end
323
323
 
324
- has_edge :favorite_requests do |edge|
325
- edge.get
326
- end
327
-
328
324
  has_edge :feed do |edge|
329
325
  edge.post do |api|
330
326
  api.has_param :actions, 'object'
@@ -434,7 +430,7 @@ module FacebookAds
434
430
  api.has_param :time_since_original_post, 'int'
435
431
  api.has_param :title, 'string'
436
432
  api.has_param :tracking_info, 'string'
437
- api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED SCHEDULED SCHEDULED_RECURRING }}
433
+ api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED REVIEWABLE_BRANDED_CONTENT SCHEDULED SCHEDULED_RECURRING }}
438
434
  api.has_param :user_selected_tags, 'bool'
439
435
  api.has_param :video_start_time_ms, 'int'
440
436
  api.has_param :viewer_coordinates, 'object'
@@ -673,10 +669,6 @@ module FacebookAds
673
669
  end
674
670
  end
675
671
 
676
- has_edge :partner_coupon_offer do |edge|
677
- edge.get 'PartnerCouponOffer'
678
- end
679
-
680
672
  has_edge :permissions do |edge|
681
673
  edge.delete do |api|
682
674
  api.has_param :permission, 'string'
@@ -759,27 +751,6 @@ module FacebookAds
759
751
  end
760
752
  end
761
753
 
762
- has_edge :places do |edge|
763
- edge.post do |api|
764
- api.has_param :address, 'object'
765
- api.has_param :city_id, 'string'
766
- api.has_param :coords, 'object'
767
- api.has_param :custom_provider, 'string'
768
- api.has_param :description, 'string'
769
- api.has_param :geometry, 'object'
770
- api.has_param :name, 'string'
771
- api.has_param :neighborhood_name, 'string'
772
- api.has_param :override_ids, { list: 'int' }
773
- api.has_param :phone, 'string'
774
- api.has_param :pin_source, 'string'
775
- api.has_param :privacy, 'string'
776
- api.has_param :topics, { list: 'string' }
777
- api.has_param :type, { enum: %w{CITY COUNTRY EVENT PLACE RESIDENCE STATE_PROVINCE TEXT }}
778
- api.has_param :uid, 'int'
779
- api.has_param :website, 'string'
780
- end
781
- end
782
-
783
754
  has_edge :posts do |edge|
784
755
  edge.get 'Post' do |api|
785
756
  api.has_param :include_hidden, 'bool'
@@ -19,6 +19,6 @@
19
19
  # FB:AUTOGEN
20
20
 
21
21
  module FacebookAds
22
- VERSION = '0.4.0.5'
22
+ VERSION = '0.4.0.6'
23
23
  API_VERSION = '4.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.4.0.5
4
+ version: 0.4.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-11 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -406,7 +406,6 @@ files:
406
406
  - lib/facebook_ads/ad_objects/fame_export_config.rb
407
407
  - lib/facebook_ads/ad_objects/flexible_targeting.rb
408
408
  - lib/facebook_ads/ad_objects/flight.rb
409
- - lib/facebook_ads/ad_objects/food_drink_order.rb
410
409
  - lib/facebook_ads/ad_objects/friend_list.rb
411
410
  - lib/facebook_ads/ad_objects/funding_source_details.rb
412
411
  - lib/facebook_ads/ad_objects/funding_source_details_coupon.rb
@@ -1,53 +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 FoodDrinkOrder < AdObject
29
- STATE = [
30
- "CANCELLED",
31
- "CONFIRMED",
32
- "DRAFT",
33
- "EXPIRED",
34
- "ON_DELIVERY",
35
- "PENDING",
36
- "READY_FOR_PICKUP",
37
- "SERVING",
38
- ]
39
-
40
-
41
- field :admin_note, 'string'
42
- field :creation_time, 'datetime'
43
- field :customer_name, 'string'
44
- field :customer_phone_number, 'string'
45
- field :id, 'string'
46
- field :note, 'string'
47
- field :order_details, { list: 'object' }
48
- field :state, 'string'
49
- field :update_time, 'datetime'
50
- has_no_delete
51
-
52
- end
53
- end