facebookbusiness 0.5.0.4 → 0.5.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +6 -0
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +91 -1
  4. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +1 -4
  5. data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +172 -0
  6. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
  7. data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -0
  8. data/lib/facebook_ads/ad_objects/ad_saved_location.rb +42 -0
  9. data/lib/facebook_ads/ad_objects/ad_video.rb +23 -0
  10. data/lib/facebook_ads/ad_objects/ads_data_partner.rb +41 -0
  11. data/lib/facebook_ads/ad_objects/ads_pixel.rb +15 -0
  12. data/lib/facebook_ads/ad_objects/album.rb +6 -0
  13. data/lib/facebook_ads/ad_objects/application.rb +66 -0
  14. data/lib/facebook_ads/ad_objects/atlas_campaign.rb +0 -9
  15. data/lib/facebook_ads/ad_objects/audience_insights_rule.rb +42 -0
  16. data/lib/facebook_ads/ad_objects/audio_copyright.rb +6 -1
  17. data/lib/facebook_ads/ad_objects/business.rb +66 -0
  18. data/lib/facebook_ads/ad_objects/business_image.rb +1 -1
  19. data/lib/facebook_ads/ad_objects/business_setting_logs_data.rb +41 -0
  20. data/lib/facebook_ads/ad_objects/business_user.rb +4 -0
  21. data/lib/facebook_ads/ad_objects/calibrator_existing_rule.rb +44 -0
  22. data/lib/facebook_ads/ad_objects/custom_audience.rb +0 -1
  23. data/lib/facebook_ads/ad_objects/custom_conversion.rb +14 -0
  24. data/lib/facebook_ads/ad_objects/custom_conversion_activities.rb +46 -0
  25. data/lib/facebook_ads/ad_objects/custom_user_settings.rb +38 -0
  26. data/lib/facebook_ads/ad_objects/destination.rb +1 -1
  27. data/lib/facebook_ads/ad_objects/dog_notification_settings.rb +36 -0
  28. data/lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb +2 -0
  29. data/lib/facebook_ads/ad_objects/education_experience.rb +42 -0
  30. data/lib/facebook_ads/ad_objects/event.rb +118 -0
  31. data/lib/facebook_ads/ad_objects/expirable_post.rb +56 -0
  32. data/lib/facebook_ads/ad_objects/extended_credit.rb +4 -0
  33. data/lib/facebook_ads/ad_objects/flight_catalog_settings.rb +36 -0
  34. data/lib/facebook_ads/ad_objects/group.rb +6 -0
  35. data/lib/facebook_ads/ad_objects/hotel.rb +13 -0
  36. data/lib/facebook_ads/ad_objects/hotel_room.rb +1 -0
  37. data/lib/facebook_ads/ad_objects/instagram_user.rb +9 -0
  38. data/lib/facebook_ads/ad_objects/lead_gen_data_draft.rb +89 -0
  39. data/lib/facebook_ads/ad_objects/leadgen_form.rb +5 -0
  40. data/lib/facebook_ads/ad_objects/life_event.rb +15 -2
  41. data/lib/facebook_ads/ad_objects/link.rb +13 -0
  42. data/lib/facebook_ads/ad_objects/live_video.rb +4 -0
  43. data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +22 -0
  44. data/lib/facebook_ads/ad_objects/open_graph_context.rb +4 -0
  45. data/lib/facebook_ads/ad_objects/open_graph_object.rb +22 -1
  46. data/lib/facebook_ads/ad_objects/owned_domain.rb +36 -0
  47. data/lib/facebook_ads/ad_objects/page.rb +211 -0
  48. data/lib/facebook_ads/ad_objects/page_insights_async_export_run.rb +4 -0
  49. data/lib/facebook_ads/ad_objects/page_label.rb +4 -0
  50. data/lib/facebook_ads/ad_objects/page_post.rb +23 -0
  51. data/lib/facebook_ads/ad_objects/page_saved_filter.rb +117 -1
  52. data/lib/facebook_ads/ad_objects/page_upcoming_change.rb +1 -0
  53. data/lib/facebook_ads/ad_objects/page_videos_you_can_use.rb +38 -0
  54. data/lib/facebook_ads/ad_objects/partner_category.rb +51 -0
  55. data/lib/facebook_ads/ad_objects/partner_integration_linked.rb +129 -0
  56. data/lib/facebook_ads/ad_objects/partner_study.rb +4 -0
  57. data/lib/facebook_ads/ad_objects/photo.rb +100 -1
  58. data/lib/facebook_ads/ad_objects/place_tag.rb +37 -0
  59. data/lib/facebook_ads/ad_objects/post.rb +62 -0
  60. data/lib/facebook_ads/ad_objects/product_catalog.rb +109 -1
  61. data/lib/facebook_ads/ad_objects/product_da_event_samples_batch.rb +55 -0
  62. data/lib/facebook_ads/ad_objects/product_group.rb +18 -0
  63. data/lib/facebook_ads/ad_objects/product_item.rb +18 -0
  64. data/lib/facebook_ads/ad_objects/product_set.rb +6 -0
  65. data/lib/facebook_ads/ad_objects/rtb_dynamic_post.rb +0 -1
  66. data/lib/facebook_ads/ad_objects/saved_message_response.rb +21 -2
  67. data/lib/facebook_ads/ad_objects/saved_message_response_macro.rb +39 -0
  68. data/lib/facebook_ads/ad_objects/status.rb +94 -0
  69. data/lib/facebook_ads/ad_objects/stream_filter.rb +39 -0
  70. data/lib/facebook_ads/ad_objects/system_user.rb +4 -0
  71. data/lib/facebook_ads/ad_objects/thread_setting.rb +37 -0
  72. data/lib/facebook_ads/ad_objects/timezone_offset.rb +41 -0
  73. data/lib/facebook_ads/ad_objects/user.rb +135 -38
  74. data/lib/facebook_ads/ad_objects/user_context.rb +39 -0
  75. data/lib/facebook_ads/ad_objects/video_copyright.rb +0 -1
  76. data/lib/facebook_ads/ad_objects/video_copyright_rule.rb +0 -1
  77. data/lib/facebook_ads/ad_objects/video_list.rb +24 -0
  78. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +0 -2
  79. data/lib/facebook_ads/ad_objects/with_asset3_d.rb +35 -0
  80. data/lib/facebook_ads/ad_objects/work_experience.rb +44 -0
  81. data/lib/facebook_ads/version.rb +1 -1
  82. metadata +28 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2f3364c15486538d87f8ff31c8fc6ab3d8d76f88e7346e67f70b54467ad870b
4
- data.tar.gz: 3044a1c8aeda9827dc9d8e5f01b6d5f86e627de1b77c04b807681710ea599ef9
3
+ metadata.gz: fcda16932827aa975182f17dee963e67a4c54e21aeab3206f23eabc26d813ff5
4
+ data.tar.gz: b3f91578aec03e5d930e675565cf702ab84404f77de7837cfbf11df628768fe4
5
5
  SHA512:
6
- metadata.gz: 9a0a9d0869a1025476e970fc6be613b6afdbe6367204350187c6b2113e3a5bdd15091504ff804c5174128d45814794c7262325662a26457d018097f447543d83
7
- data.tar.gz: 5f1510cde5f6118f2a0dab4cd34e8897691b5394d01c39c33eebc54d551a213ab8b51807412eb3cb14fee08afd806bb4bffd68193f5fcea5b2dad66006776ed3
6
+ metadata.gz: ace1378cf0beb8d368abcf5b796f570172f9b153e7c1b32858127c67ca20d91fa26fce7a6e76823c18d937edb9fa0e7fa6a22fc6c66e3e55d9007d34bd644426
7
+ data.tar.gz: eb1bea9475b4d2bd572e2823dc07f0a954dd45e7dddfa735275fe62d29e3d65abe3f25ac54675e9c6933ade68969104b7b16a7aeffa7381481b94cb3e336ab62
@@ -229,6 +229,11 @@ module FacebookAds
229
229
 
230
230
  has_edge :leads do |edge|
231
231
  edge.get 'Lead'
232
+ edge.post 'Lead' do |api|
233
+ api.has_param :end_time, 'datetime'
234
+ api.has_param :session_id, 'string'
235
+ api.has_param :start_time, 'datetime'
236
+ end
232
237
  end
233
238
 
234
239
  has_edge :previews do |edge|
@@ -254,6 +259,7 @@ module FacebookAds
254
259
  end
255
260
 
256
261
  has_edge :trackingtag do |edge|
262
+ edge.delete
257
263
  edge.post do |api|
258
264
  api.has_param :add_template_param, 'bool'
259
265
  api.has_param :url, 'string'
@@ -241,6 +241,22 @@ module FacebookAds
241
241
  end
242
242
  end
243
243
 
244
+ has_edge :ad_saved_locations do |edge|
245
+ edge.get 'AdSavedLocation' do |api|
246
+ api.has_param :fields, { list: 'string' }
247
+ end
248
+ edge.post 'AdSavedLocation' do |api|
249
+ api.has_param :cities, { list: 'object' }
250
+ api.has_param :countries, { list: 'string' }
251
+ api.has_param :country_groups, { list: 'string' }
252
+ api.has_param :custom_locations, { list: 'object' }
253
+ api.has_param :geo_markets, { list: 'object' }
254
+ api.has_param :name, 'string'
255
+ api.has_param :regions, { list: 'object' }
256
+ api.has_param :zips, { list: 'object' }
257
+ end
258
+ end
259
+
244
260
  has_edge :ad_sets do |edge|
245
261
  edge.delete do |api|
246
262
  api.has_param :before_date, 'datetime'
@@ -302,6 +318,13 @@ module FacebookAds
302
318
  end
303
319
  end
304
320
 
321
+ has_edge :adcreatives_from_mockups do |edge|
322
+ edge.post 'AdCreative' do |api|
323
+ api.has_param :mockup_id, 'string'
324
+ api.has_param :page_id, 'string'
325
+ end
326
+ end
327
+
305
328
  has_edge :adcreativesbylabels do |edge|
306
329
  edge.get 'AdCreative' do |api|
307
330
  api.has_param :ad_label_ids, { list: 'string' }
@@ -346,6 +369,10 @@ module FacebookAds
346
369
  end
347
370
  end
348
371
 
372
+ has_edge :adreportruns do |edge|
373
+ edge.get 'AdReportRun'
374
+ end
375
+
349
376
  has_edge :adreportschedules do |edge|
350
377
  edge.get
351
378
  edge.post do |api|
@@ -717,6 +744,10 @@ module FacebookAds
717
744
  end
718
745
  end
719
746
 
747
+ has_edge :businesssettinglogs do |edge|
748
+ edge.get 'BusinessSettingLogsData'
749
+ end
750
+
720
751
  has_edge :campaigns do |edge|
721
752
  edge.delete do |api|
722
753
  api.has_param :before_date, 'datetime'
@@ -823,7 +854,6 @@ module FacebookAds
823
854
  api.has_param :rule_aggregation, 'string'
824
855
  api.has_param :seed_audience, 'int'
825
856
  api.has_param :source, 'string'
826
- api.has_param :study_spec, 'hash'
827
857
  api.has_param :subtype, { enum: -> { CustomAudience::SUBTYPE }}
828
858
  api.has_param :tags, { list: 'string' }
829
859
  api.has_param :video_group_ids, { list: 'string' }
@@ -970,16 +1000,54 @@ module FacebookAds
970
1000
  end
971
1001
  end
972
1002
 
1003
+ has_edge :mockups do |edge|
1004
+ edge.post do |api|
1005
+ api.has_param :mockup_access_token, 'string'
1006
+ api.has_param :page_id, 'string'
1007
+ api.has_param :source_mockup_id, 'string'
1008
+ end
1009
+ end
1010
+
973
1011
  has_edge :offline_conversion_data_sets do |edge|
974
1012
  edge.get 'OfflineConversionDataSet'
975
1013
  end
976
1014
 
1015
+ has_edge :offsitepixels do |edge|
1016
+ edge.get 'OffsitePixel'
1017
+ end
1018
+
977
1019
  has_edge :onbehalf_requests do |edge|
978
1020
  edge.get 'BusinessOwnedObjectOnBehalfOfRequest' do |api|
979
1021
  api.has_param :status, { enum: -> { BusinessOwnedObjectOnBehalfOfRequest::STATUS }}
980
1022
  end
981
1023
  end
982
1024
 
1025
+ has_edge :partner_integrations do |edge|
1026
+ edge.get 'PartnerIntegrationLinked'
1027
+ edge.post 'PartnerIntegrationLinked' do |api|
1028
+ api.has_param :external_id, 'string'
1029
+ api.has_param :gtm_account_id, 'string'
1030
+ api.has_param :gtm_container_id, 'string'
1031
+ api.has_param :name, 'string'
1032
+ api.has_param :page_id, 'string'
1033
+ api.has_param :partner, { enum: -> { PartnerIntegrationLinked::PARTNER }}
1034
+ end
1035
+ end
1036
+
1037
+ has_edge :partnercategories do |edge|
1038
+ edge.get 'PartnerCategory' do |api|
1039
+ api.has_param :hide_pc, 'bool'
1040
+ api.has_param :is_exclusion, 'bool'
1041
+ api.has_param :limit, 'int'
1042
+ api.has_param :private_or_public, { enum: -> { PartnerCategory::PRIVATE_OR_PUBLIC }}
1043
+ api.has_param :targeting_type, 'string'
1044
+ end
1045
+ end
1046
+
1047
+ has_edge :partners do |edge|
1048
+ edge.get 'AdsDataPartner'
1049
+ end
1050
+
983
1051
  has_edge :product_audiences do |edge|
984
1052
  edge.post 'CustomAudience' do |api|
985
1053
  api.has_param :allowed_domains, { list: 'string' }
@@ -1075,6 +1143,22 @@ module FacebookAds
1075
1143
  end
1076
1144
  end
1077
1145
 
1146
+ has_edge :referral do |edge|
1147
+ edge.get 'Referral'
1148
+ edge.post 'Referral' do |api|
1149
+ api.has_param :invite_limit, 'int'
1150
+ api.has_param :messenger_cta, 'string'
1151
+ api.has_param :messenger_promotion_text, 'string'
1152
+ api.has_param :namespace, 'int'
1153
+ api.has_param :need_promo_code, 'bool'
1154
+ api.has_param :offer_origin, 'string'
1155
+ api.has_param :promotion_text, 'string'
1156
+ api.has_param :receiver_benefits_text, 'string'
1157
+ api.has_param :referral_link_uri, 'string'
1158
+ api.has_param :sender_benefits_text, 'string'
1159
+ end
1160
+ end
1161
+
1078
1162
  has_edge :roas do |edge|
1079
1163
  edge.get 'AdAccountRoas' do |api|
1080
1164
  api.has_param :fields, { list: 'string' }
@@ -1168,6 +1252,12 @@ module FacebookAds
1168
1252
  end
1169
1253
  end
1170
1254
 
1255
+ has_edge :timezoneoffsets do |edge|
1256
+ edge.get 'TimezoneOffset' do |api|
1257
+ api.has_param :start_year, 'int'
1258
+ end
1259
+ end
1260
+
1171
1261
  has_edge :tracking do |edge|
1172
1262
  edge.delete do |api|
1173
1263
  api.has_param :tracking_specs, 'object'
@@ -29,10 +29,7 @@ module FacebookAds
29
29
 
30
30
  field :actor_id, 'string'
31
31
  field :ads_running_or_in_review_count, 'int'
32
- field :has_hit_total_live_ads_limit, 'bool'
33
- field :live_ads_quota_left, 'int'
34
- field :total_live_ads_in_current_account, 'int'
35
- field :total_live_ads_limit, 'int'
32
+ field :current_account_ads_running_or_in_review_count, 'int'
36
33
  has_no_id
37
34
  has_no_get
38
35
  has_no_post
@@ -26,6 +26,152 @@ module FacebookAds
26
26
  # pull request for this class.
27
27
 
28
28
  class AdAccountCreationRequest < AdObject
29
+ SUBVERTICAL = [
30
+ "ACCOUNTING_AND_TAXES_AND_LEGAL",
31
+ "AGRICULTURE_AND_FARMING",
32
+ "AIR",
33
+ "AIR_FREIGHT_OR_PACKAGE",
34
+ "APPAREL_AND_ACCESSORIES",
35
+ "ARTS",
36
+ "AUCTIONS",
37
+ "AUTOMOTIVE_MANUFACTURER",
38
+ "AUTO_AGENCY",
39
+ "AUTO_RENTAL",
40
+ "B2B",
41
+ "B2B_MANUFACTURING",
42
+ "BEAUTY_AND_PERSONAL_CARE",
43
+ "BEER_AND_WINE_AND_LIQUOR",
44
+ "BOOKSTORES",
45
+ "BUSINESS_SUPPORT_SERVICES",
46
+ "BUS_AND_TAXI_AND_AUTO_RETAL",
47
+ "CABLE_AND_SATELLITE",
48
+ "CAREER",
49
+ "COMPUTING_AND_PERIPHERALS",
50
+ "CONSOLE_DEVELOPER",
51
+ "CONSOLE_DEVICE",
52
+ "CONSTRUCTION_AND_MINING",
53
+ "CONSULTING",
54
+ "CONSUMER_ELECTRONICS",
55
+ "CONSUMER_TECH",
56
+ "CREDIT_AND_FINANCING_AND_MORTAGES",
57
+ "CRUISES_AND_MARINE",
58
+ "CVB_CONVENTION_AND_VISITORS_BUREAU",
59
+ "DAILYDEALS",
60
+ "DATING",
61
+ "DEALERSHIP",
62
+ "DEPARTMENT_STORE",
63
+ "DESKTOP_SOFTWARE",
64
+ "DIGITAL_ADVERTISING_AND_MARKETING_OR_UNTAGGED_AGENCIES",
65
+ "ECATALOG",
66
+ "ECOMMERCE_AGRICULTURE_AND_FARMING",
67
+ "EDUCATION_RESOURCES",
68
+ "ED_TECH",
69
+ "ELEARNING_AND_MASSIVE_ONLINE_OPEN_COURSES",
70
+ "ENGINEERING_AND_DESIGN",
71
+ "EVENTS",
72
+ "FAMILY_AND_HEALTH",
73
+ "FITNESS",
74
+ "FOOD",
75
+ "FOOTWEAR",
76
+ "FOR_PROFIT_COLLEGES_AND_UNIVERSITIES",
77
+ "GAMBLING",
78
+ "GOVERNMENT",
79
+ "GROCERY_AND_DRUG_AND_CONVENIENCE",
80
+ "HIGHWAYS",
81
+ "HOME_AND_OFFICE",
82
+ "HOME_IMPROVEMENT",
83
+ "HOME_SERVICE",
84
+ "HOTEL_AND_ACCOMODATION",
85
+ "HOUSEHOLD_GOODS",
86
+ "INDUSTRIAL_AND_FARM_VEHICLE",
87
+ "INSURANCE",
88
+ "INVESTMENT_BANK_AND_BROKERAGE",
89
+ "MEDIA",
90
+ "MOBILE_AND_SOCIAL",
91
+ "MOBILE_APPS",
92
+ "MOTORCYCLES",
93
+ "MOVIES",
94
+ "MUSEUMS_AND_PARKS_AND_LIBRARIES",
95
+ "MUSIC_AND_RADIO",
96
+ "NON_PROFIT",
97
+ "NOT_FOR_PROFIT_COLLEGES_AND_UNIVERSITIES",
98
+ "OFFICE",
99
+ "OIL_AND_GAS_AND_CONSUMABLE_FUEL",
100
+ "ONLINE_OR_SOFTWARE",
101
+ "OTHER_WIRELINE_SERVICES",
102
+ "PARTS_AND_SERVICE",
103
+ "PET",
104
+ "PET_RETAIL",
105
+ "PHARMACEUTICAL_OR_HEALTH",
106
+ "PHOTOGRAPHY_AND_FILMING_SERVICES",
107
+ "POLITICAL",
108
+ "PR",
109
+ "PUBLISHING_INTERNET",
110
+ "RAILROADS",
111
+ "REAL_ESTATE",
112
+ "REAL_MONEY_OR_SKILLED_GAMING",
113
+ "RECREATIONAL",
114
+ "RELIGIOUS",
115
+ "RESTAURANT",
116
+ "RETAIL_AND_CREDIT_UNION_AND_COMMERCIAL_BANK",
117
+ "SCHOOL_AND_EARLY_CHILDREN_EDCATION",
118
+ "SEASONAL_POLITICAL_SPENDERS",
119
+ "SMB_AGENTS_AND_PROMOTERS",
120
+ "SMB_ARTISTS_AND_PERFORMERS",
121
+ "SMB_CANVAS",
122
+ "SMB_CATALOG",
123
+ "SMB_CONSUMER_MOBILE_DEVICE",
124
+ "SMB_CROSS_PLATFORM",
125
+ "SMB_ELECTRONICS_AND_APPLIANCES",
126
+ "SMB_ENERGY",
127
+ "SMB_GAME_AND_TOY",
128
+ "SMB_INFORMATION",
129
+ "SMB_NAVIGATION_AND_MEASUREMENT",
130
+ "SMB_OPERATIONS_AND_OTHER",
131
+ "SMB_OTHER",
132
+ "SMB_PERSONAL_CARE",
133
+ "SMB_RELIGIOUS",
134
+ "SMB_RENTALS",
135
+ "SMB_REPAIR_AND_MAINTENANCE",
136
+ "SOFTWARE",
137
+ "SPORTING",
138
+ "SPORTS",
139
+ "STREAMING",
140
+ "TELEVISION",
141
+ "TOBACCO",
142
+ "TOY_AND_HOBBY",
143
+ "TRADE_SCHOOL",
144
+ "TRANSPORTATION_EQUIPMENT",
145
+ "TRAVAL_AGENCY",
146
+ "TRUCK_AND_MOVING",
147
+ "UTILITIES_AND_ENERGY_EQUIPMENT_AND_SERVICES",
148
+ "WATER_AND_SOFT_DRINK_AND_BAVERAGE",
149
+ "WIRELESS_SERVICES",
150
+ ]
151
+
152
+ VERTICAL = [
153
+ "ADVERTISING_AND_MARKETING",
154
+ "AUTOMOTIVE",
155
+ "AUTO_AGENCY",
156
+ "CONSUMER_PACKAGED_GOODS",
157
+ "CPG_AND_BEVERAGE",
158
+ "ECOMMERCE",
159
+ "EDUCATION",
160
+ "ENERGY_AND_UTILITIES",
161
+ "ENTERTAINMENT_AND_MEDIA",
162
+ "FINANCIAL_SERVICES",
163
+ "GAMING",
164
+ "GOVERMENT_AND_POLITICS",
165
+ "MOTORCYCLES",
166
+ "ORGANIZATIONS_AND_ASSOCIATIONS",
167
+ "OTHER",
168
+ "PROFESSIONAL_SERVICES",
169
+ "RETAIL",
170
+ "TECHNOLOGY",
171
+ "TELECOM",
172
+ "TRAVEL",
173
+ ]
174
+
29
175
 
30
176
  field :ad_accounts_currency, 'string'
31
177
  field :ad_accounts_info, { list: 'object' }
@@ -61,6 +207,9 @@ module FacebookAds
61
207
  field :subvertical, 'string'
62
208
  field :time_created, 'datetime'
63
209
  field :vertical, 'string'
210
+ field :advertiser_business_id, 'string'
211
+ field :business_registration, 'file'
212
+ field :promotable_page_urls, { list: 'string' }
64
213
  has_no_post
65
214
  has_no_delete
66
215
 
@@ -68,5 +217,28 @@ module FacebookAds
68
217
  edge.get 'AdAccount'
69
218
  end
70
219
 
220
+ has_edge :vietnam do |edge|
221
+ edge.post 'AdAccountCreationRequest' do |api|
222
+ api.has_param :ad_accounts_info, { list: 'object' }
223
+ api.has_param :additional_comment, 'string'
224
+ api.has_param :address_in_english, 'object'
225
+ api.has_param :address_in_local_language, 'string'
226
+ api.has_param :advertiser_business_id, 'string'
227
+ api.has_param :business_registration, 'file'
228
+ api.has_param :business_registration_id, 'string'
229
+ api.has_param :contact, 'object'
230
+ api.has_param :english_legal_entity_name, 'string'
231
+ api.has_param :legal_entity_name_in_local_language, 'string'
232
+ api.has_param :official_website_url, 'string'
233
+ api.has_param :planning_agency_business_id, 'string'
234
+ api.has_param :promotable_app_ids, { list: 'string' }
235
+ api.has_param :promotable_page_ids, { list: 'int' }
236
+ api.has_param :promotable_page_urls, { list: 'string' }
237
+ api.has_param :promotable_urls, { list: 'string' }
238
+ api.has_param :subvertical, { enum: -> { AdAccountCreationRequest::SUBVERTICAL }}
239
+ api.has_param :vertical, { enum: -> { AdAccountCreationRequest::VERTICAL }}
240
+ end
241
+ end
242
+
71
243
  end
72
244
  end
@@ -74,6 +74,7 @@ module FacebookAds
74
74
  "brand_safety_content_severity_levels",
75
75
  "catalog_based_targeting",
76
76
  "cities",
77
+ "city_keys",
77
78
  "college_years",
78
79
  "conjunctive_user_adclusters",
79
80
  "connections",
@@ -158,6 +159,7 @@ module FacebookAds
158
159
  "prospecting_audience",
159
160
  "publisher_platforms",
160
161
  "radius",
162
+ "region_keys",
161
163
  "regions",
162
164
  "relationship_statuses",
163
165
  "rtb_flag",
@@ -198,6 +198,8 @@ module FacebookAds
198
198
  field :call_to_action, 'object'
199
199
  field :image_file, 'string'
200
200
  field :is_dco_internal, 'bool'
201
+ field :mockup_id, 'string'
202
+ field :page_id, 'string'
201
203
 
202
204
  has_edge :adlabels do |edge|
203
205
  edge.delete do |api|
@@ -0,0 +1,42 @@
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 AdSavedLocation < AdObject
29
+
30
+ field :cities, { list: 'TargetingGeoLocationCity' }
31
+ field :countries, { list: 'string' }
32
+ field :country_groups, { list: 'string' }
33
+ field :custom_locations, { list: 'TargetingGeoLocationCustomLocation' }
34
+ field :geo_markets, { list: 'TargetingGeoLocationMarket' }
35
+ field :id, 'string'
36
+ field :location_sentences, { list: 'string' }
37
+ field :name, 'string'
38
+ field :regions, { list: 'TargetingGeoLocationRegion' }
39
+ field :zips, { list: 'TargetingGeoLocationZip' }
40
+
41
+ end
42
+ end