facebookbusiness 26.0.1 → 26.0.2

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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +1 -0
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +4 -3
  4. data/lib/facebook_ads/ad_objects/ad_account_ad_videos.rb +2 -0
  5. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +6 -0
  6. data/lib/facebook_ads/ad_objects/ad_account_ads.rb +41 -0
  7. data/lib/facebook_ads/ad_objects/{product_catalog_product_sets_get.rb → ad_account_ads_get.rb} +1 -24
  8. data/lib/facebook_ads/ad_objects/ad_account_get.rb +27 -3
  9. data/lib/facebook_ads/ad_objects/ad_account_light_ads.rb +48 -0
  10. data/lib/facebook_ads/ad_objects/ad_account_light_ads_get.rb +86 -0
  11. data/lib/facebook_ads/ad_objects/ad_account_light_adsets.rb +49 -0
  12. data/lib/facebook_ads/ad_objects/ad_account_light_adsets_get.rb +86 -0
  13. data/lib/facebook_ads/ad_objects/ad_account_light_campaigns.rb +47 -0
  14. data/lib/facebook_ads/ad_objects/ad_account_light_campaigns_get.rb +86 -0
  15. data/lib/facebook_ads/ad_objects/ad_account_recommendations.rb +6 -0
  16. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +2 -0
  17. data/lib/facebook_ads/ad_objects/ad_campaign_goal.rb +2 -0
  18. data/lib/facebook_ads/ad_objects/ad_campaign_group_bid_constraints.rb +26 -0
  19. data/lib/facebook_ads/ad_objects/ad_campaign_placement_get.rb +1 -0
  20. data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
  21. data/lib/facebook_ads/ad_objects/ad_creative_get.rb +2 -0
  22. data/lib/facebook_ads/ad_objects/ad_creative_media_sourcing_spec.rb +1 -0
  23. data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +1 -0
  24. data/lib/facebook_ads/ad_objects/ad_limits_enforcement_data.rb +1 -0
  25. data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +1 -0
  26. data/lib/facebook_ads/ad_objects/ad_rule.rb +1 -0
  27. data/lib/facebook_ads/ad_objects/ad_set.rb +1 -7
  28. data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
  29. data/lib/facebook_ads/ad_objects/ads_auto_scale_config.rb +27 -0
  30. data/lib/facebook_ads/ad_objects/ads_insights.rb +10 -0
  31. data/lib/facebook_ads/ad_objects/ads_insights_adgroup.rb +66 -0
  32. data/lib/facebook_ads/ad_objects/ads_insights_adgroup_get.rb +27 -0
  33. data/lib/facebook_ads/ad_objects/ads_user_settings.rb +1 -0
  34. data/lib/facebook_ads/ad_objects/campaign.rb +1 -0
  35. data/lib/facebook_ads/ad_objects/creative_diagnostics.rb +28 -0
  36. data/lib/facebook_ads/ad_objects/creative_diagnostics_post.rb +27 -0
  37. data/lib/facebook_ads/ad_objects/ig_live_media_reactions.rb +26 -0
  38. data/lib/facebook_ads/ad_objects/ig_media.rb +14 -0
  39. data/lib/facebook_ads/ad_objects/ig_user_export_for_cam.rb +11 -4
  40. data/lib/facebook_ads/ad_objects/placement.rb +2 -0
  41. data/lib/facebook_ads/ad_objects/product_catalog_items_batch.rb +8 -1
  42. data/lib/facebook_ads/ad_objects/product_catalog_items_batch_post.rb +61 -0
  43. data/lib/facebook_ads/ad_objects/product_catalog_localized_items_batch.rb +34 -0
  44. data/lib/facebook_ads/ad_objects/product_catalog_localized_items_batch_post.rb +81 -0
  45. data/lib/facebook_ads/ad_objects/product_catalog_product_sets.rb +1 -15
  46. data/lib/facebook_ads/ad_objects/{product_set_post.rb → product_catalog_product_sets_post.rb} +2 -1
  47. data/lib/facebook_ads/ad_objects/product_catalog_products.rb +3 -1
  48. data/lib/facebook_ads/ad_objects/product_catalog_products_post.rb +133 -0
  49. data/lib/facebook_ads/ad_objects/product_catalog_version_items_batch.rb +35 -0
  50. data/lib/facebook_ads/ad_objects/product_catalog_version_items_batch_post.rb +81 -0
  51. data/lib/facebook_ads/ad_objects/product_item_delete.rb +25 -0
  52. data/lib/facebook_ads/ad_objects/product_item_product_sets.rb +33 -0
  53. data/lib/facebook_ads/ad_objects/product_item_product_sets_get.rb +26 -0
  54. data/lib/facebook_ads/ad_objects/product_item_videos_metadata.rb +34 -0
  55. data/lib/facebook_ads/ad_objects/product_item_videos_metadata_get.rb +26 -0
  56. data/lib/facebook_ads/ad_objects/product_set_da_checks.rb +36 -0
  57. data/lib/facebook_ads/ad_objects/product_set_da_checks_get.rb +118 -0
  58. data/lib/facebook_ads/ad_objects/{product_item_post.rb → product_set_delete.rb} +1 -1
  59. data/lib/facebook_ads/ad_objects/product_set_products.rb +42 -0
  60. data/lib/facebook_ads/ad_objects/product_set_products_get.rb +219 -0
  61. data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +8 -0
  62. data/lib/facebook_ads/ad_objects/shadow_ig_media_product_tags.rb +1 -0
  63. data/lib/facebook_ads/ad_objects/user_ad_accounts.rb +36 -0
  64. data/lib/facebook_ads/ad_objects/user_ad_accounts_get.rb +24 -0
  65. data/lib/facebook_ads/version.rb +1 -1
  66. metadata +34 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6bfd0834b5b9498579404af2e9af523329bfe6a3377c5791ff838f680631c75
4
- data.tar.gz: 7004d3586d10b4bce123083e35cb803a8f45ef0f2e48127e050814e9bb6454ef
3
+ metadata.gz: 10eb633778fff9d551815bba1e872650f6c8c82d536c1da6522c8d8d5dd91734
4
+ data.tar.gz: 5474181460a3b25e296626f5ef767f84f0242b81c9c0165956e498964cb479a7
5
5
  SHA512:
6
- metadata.gz: 56a003ae4d106338f1cd6341eaaec350a40b818d4e0d5c923711d995b3beac9d32d7a00ff326989d21055dcf5d6771186f0bdf4b8835d3aecae1c88a48e1f5e7
7
- data.tar.gz: 93c1e5103b56a693af31481b38a542e1b2dbfcdea233f4dcc684a12524f70b519e08a6bbb2483fd61e6b595eaf9e81973afaaa6293eba6f120206a6ebec6f6d9
6
+ metadata.gz: 6f81739ab50a764a0dcd4067b6316828826966af47e22a2f5cd61b3b051491855cd6aa52e1012e61967d6bef105116cea201c8b3541b9e1293570b3744bdb9b7
7
+ data.tar.gz: e7ad285853017f58475551488a44a7b1526b50dd025cf5cdbefb33c0e30d60974d9e5353bf20dfb503582666814e542dd38d9e4cb83604a91871f7aa6796fee7
@@ -111,6 +111,7 @@ module FacebookAds
111
111
  field :created_time, 'datetime'
112
112
  field :creative, 'AdCreative'
113
113
  field :creative_asset_groups_spec, 'AdCreativeAssetGroupsSpec'
114
+ field :creative_audience_pairing_persona, 'CreativeAudiencePairingPersona'
114
115
  field :creative_automation_spec, 'AdCreativeAutomationSpec'
115
116
  field :demolink_hash, 'string'
116
117
  field :display_sequence, 'int'
@@ -336,6 +336,7 @@ module FacebookAds
336
336
  api.has_param :link_og_id, 'string'
337
337
  api.has_param :link_url, 'string'
338
338
  api.has_param :marketing_message_structured_spec, 'hash'
339
+ api.has_param :media_optimization_spec, 'hash'
339
340
  api.has_param :media_sourcing_spec, 'hash'
340
341
  api.has_param :name, 'string'
341
342
  api.has_param :object_id, 'int'
@@ -452,6 +453,7 @@ module FacebookAds
452
453
  api.has_param :conversion_domain, 'string'
453
454
  api.has_param :creative, 'AdCreative'
454
455
  api.has_param :creative_asset_groups_spec, 'object'
456
+ api.has_param :creative_audience_pairing_persona, 'hash'
455
457
  api.has_param :creative_automation_spec, 'object'
456
458
  api.has_param :dataset_split_specs, { list: 'hash' }
457
459
  api.has_param :date_format, 'string'
@@ -521,7 +523,6 @@ module FacebookAds
521
523
  api.has_param :campaign_attribution, 'object'
522
524
  api.has_param :campaign_id, 'string'
523
525
  api.has_param :campaign_spec, 'object'
524
- api.has_param :cost_bidding_mode, { enum: %w{BALANCED COST_FOCUSED VOLUME_FOCUSED }}
525
526
  api.has_param :creative_sequence, { list: 'string' }
526
527
  api.has_param :creative_sequence_repetition_pattern, { enum: %w{FULL_SEQUENCE LAST_AD }}
527
528
  api.has_param :daily_budget, 'int'
@@ -562,7 +563,7 @@ module FacebookAds
562
563
  api.has_param :placement_soft_opt_out, 'object'
563
564
  api.has_param :promoted_object, 'object'
564
565
  api.has_param :rb_prediction_id, 'string'
565
- api.has_param :regional_regulated_categories, { list: { enum: %w{0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 }} }
566
+ api.has_param :regional_regulated_categories, { list: { enum: %w{0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 }} }
566
567
  api.has_param :regional_regulation_identities, 'hash'
567
568
  api.has_param :relative_value, 'double'
568
569
  api.has_param :rf_prediction_id, 'string'
@@ -1190,11 +1191,11 @@ module FacebookAds
1190
1191
  api.has_param :is_higher_average_frequency, 'bool'
1191
1192
  api.has_param :is_reach_and_frequency_io_buying, 'bool'
1192
1193
  api.has_param :is_reserved_buying, 'bool'
1193
- api.has_param :meta_moment_maker_spec, 'hash'
1194
1194
  api.has_param :num_curve_points, 'int'
1195
1195
  api.has_param :objective, 'string'
1196
1196
  api.has_param :optimization_goal, 'string'
1197
1197
  api.has_param :prediction_mode, 'int'
1198
+ api.has_param :product_type, { enum: -> { ReachFrequencyPrediction::PRODUCT_TYPE }}
1198
1199
  api.has_param :reach, 'int'
1199
1200
  api.has_param :rf_prediction_id, 'string'
1200
1201
  api.has_param :rf_prediction_id_to_release, 'string'
@@ -25,7 +25,9 @@ module FacebookAds
25
25
  api.has_param :ad_account_id, 'int'
26
26
  api.has_param :after, 'string'
27
27
  api.has_param :before, 'string'
28
+ api.has_param :date_format, 'string'
28
29
  api.has_param :fields, 'string'
30
+ api.has_param :filtering, 'string'
29
31
  api.has_param :has_integrity_violation, 'bool'
30
32
  api.has_param :limit, 'int'
31
33
  api.has_param :max_aspect_ratio, 'double'
@@ -23,6 +23,7 @@ module FacebookAds
23
23
  "ACCOUNT_SPEND_LIMIT_DUPLICATION",
24
24
  "ACO_TOGGLE",
25
25
  "ADD_FUNDS_TO_RUN_CAMPAIGN",
26
+ "ADOPT_3P_MTA_CLICKS_VIEWS_MEASUREMENT",
26
27
  "ADOPT_CATALOG_TO_RUN_PRODUCT_CENTRIC_ADS",
27
28
  "ADOPT_CLICK_TO_FLOWS",
28
29
  "ADOPT_CREATIVE_AUDIENCE_PAIRING",
@@ -31,7 +32,9 @@ module FacebookAds
31
32
  "ADOPT_DAYPARTING_CTX_DEEP_CONVERSATIONS",
32
33
  "ADOPT_GEN_AI_MVP_CHILD",
33
34
  "ADOPT_INBOX_QUESTIONS_IN_ADS_MANAGER_CTM",
35
+ "ADOPT_INCREMENTAL_OR_CUSTOM_ATTRIBUTION",
34
36
  "ADOPT_INSTANT_EXPERIENCE_DESTINATION",
37
+ "ADOPT_IN_APP_PURCHASE_VO_V2",
35
38
  "ADOPT_PRODUCT_EXTENSIONS_CHILD",
36
39
  "ADOPT_PRODUCT_EXTENSIONS_CTM_OR_CTWA",
37
40
  "ADOPT_RELATED_MEDIA_SUGGESTIONS",
@@ -322,6 +325,7 @@ module FacebookAds
322
325
  "OPT_INTO_NUDGE_FOLLOW_UP_MESSAGES_CTM",
323
326
  "OPT_INTO_REELS_GEN_AI_VIDEO_EXPANSION",
324
327
  "OPT_INTO_SINGLE_MEDIA_TO_COLLECTION_ADS",
328
+ "OPT_INTO_THREADS_PLACEMENTS",
325
329
  "OUTCOME_FORECASTER_BID_RECOMMENDATION",
326
330
  "OUTCOME_FORECASTER_BUDGET_RECOMMENDATION",
327
331
  "OUTCOME_FORECASTER_SHADOW_LOGGING",
@@ -350,6 +354,7 @@ module FacebookAds
350
354
  "PREPARING_STATUS",
351
355
  "PRODUCT_EXTENSIONS_GUIDANCE",
352
356
  "PRODUCT_EXTENSIONS_IMAGE_TO_CAROUSEL",
357
+ "PRODUCT_EXTENSIONS_ON_PARTNERSHIP_ADS",
353
358
  "PRODUCT_SET_BOOSTING",
354
359
  "PROMO_ADS_UPSELL_GUIDANCE",
355
360
  "PURCHASE_OPTIMIZATION",
@@ -445,6 +450,7 @@ module FacebookAds
445
450
  "WEBSITE_AND_INSTANT_FORM_L2",
446
451
  "WEBSITE_TO_MESSENGER",
447
452
  "WEB_APP_CONVERSION",
453
+ "WEB_APP_PURCHASE_TO_WEB_APP_IN_STORE",
448
454
  "WEB_ENGAGED_VIEW_CONVERSIONS",
449
455
  "WTWA_UPSELL_IN_DUPLICATION",
450
456
  "WTWA_UPSELL_IN_SYD_AND_AM_TABLE",
@@ -0,0 +1,41 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AdAccountAds < AdObject
17
+
18
+ field :id, 'string'
19
+ has_no_get
20
+ has_no_post
21
+ has_no_delete
22
+
23
+ has_edge :ads do |edge|
24
+ edge.get 'AdAccountAdsGet' do |api|
25
+ api.has_param :after, 'string'
26
+ api.has_param :before, 'string'
27
+ api.has_param :date_format, 'string'
28
+ api.has_param :effective_status, 'string'
29
+ api.has_param :fields, 'string'
30
+ api.has_param :filtering, 'string'
31
+ api.has_param :limit, 'int'
32
+ api.has_param :remove_pinned_sort, 'string'
33
+ api.has_param :sort, 'string'
34
+ api.has_param :summary, 'string'
35
+ api.has_param :timezone, 'string'
36
+ api.has_param :updated_since, 'string'
37
+ end
38
+ end
39
+
40
+ end
41
+ end
@@ -13,30 +13,7 @@ module FacebookAds
13
13
  # on github and we'll fix in our codegen framework. We'll not be able to accept
14
14
  # pull request for this class.
15
15
 
16
- class ProductCatalogProductSetsGet < AdObject
17
- INTEGRATED_CHECKOUT_ELIGIBILITY = [
18
- "ELIGIBLE",
19
- "NOT_ELIGIBLE",
20
- ]
21
-
22
- INTEGRATED_CHECKOUT_PARTNER = [
23
- "AMAZON",
24
- "JEST_E2E_AMAZON",
25
- "LOWES",
26
- "MELI",
27
- "NONE",
28
- "SHEIN",
29
- "SHOPEE_ID",
30
- "SHOPEE_MY",
31
- "SHOPEE_PH",
32
- "SHOPEE_SG",
33
- "SHOPEE_TH",
34
- "SHOPEE_TW",
35
- "SHOPEE_VN",
36
- "WALMART",
37
- "ZALANDO",
38
- ]
39
-
16
+ class AdAccountAdsGet < AdObject
40
17
 
41
18
  field :data, { list: 'object' }
42
19
  field :paging, 'object'
@@ -350,13 +350,18 @@ module FacebookAds
350
350
 
351
351
  field :account_controls, 'object'
352
352
  field :account_currency_ratio_to_usd, 'double'
353
- field :account_id, 'string'
353
+ field :account_id, 'int'
354
354
  field :account_status, 'int'
355
355
  field :active_billing_date_preference, 'object'
356
356
  field :activities, 'object'
357
+ field :ad_account_creation_request, 'object'
357
358
  field :ad_account_promotable_objects, 'object'
358
359
  field :ad_column_sizes, 'object'
359
360
  field :ad_limits_insights, 'object'
361
+ field :ad_place_page_sets, 'object'
362
+ field :ad_quick_views, 'object'
363
+ field :ad_report_builder_reports, 'object'
364
+ field :ad_studies, 'object'
360
365
  field :adcreatives, 'object'
361
366
  field :addrafts, 'object'
362
367
  field :adimages, 'object'
@@ -365,6 +370,7 @@ module FacebookAds
365
370
  field :adrules_history, 'object'
366
371
  field :adrules_library, 'object'
367
372
  field :ads, 'object'
373
+ field :ads_creation_saved_state, 'object'
368
374
  field :ads_paused, 'bool'
369
375
  field :ads_volume, 'object'
370
376
  field :adsets, 'object'
@@ -392,7 +398,9 @@ module FacebookAds
392
398
  field :asset_feed_spec_from_instagram_media, 'object'
393
399
  field :asset_score, 'double'
394
400
  field :assigned_partners, 'object'
401
+ field :assigned_users, 'object'
395
402
  field :attr_window_deprecation_group, 'string'
403
+ field :audiencesharing_recipientaccounts, 'object'
396
404
  field :auth_flow_for_trust_tier_state, { enum: -> { AUTH_FLOW_FOR_TRUST_TIER_STATE }}
397
405
  field :authorized_country_for_political_ads, { enum: -> { AUTHORIZED_COUNTRY_FOR_POLITICAL_ADS }}
398
406
  field :automatic_creative_optimization_test_framework_enrolled, 'bool'
@@ -431,6 +439,7 @@ module FacebookAds
431
439
  field :cpas_campaign_group_default_budget, 'int'
432
440
  field :created_time, 'mixed'
433
441
  field :creation_packages, 'object'
442
+ field :creative_text_suggestions, 'object'
434
443
  field :ctwa_smb_enforcing_days_left, 'int'
435
444
  field :ctx_advertiser_sabr_lifetime_duration_recommendation, 'int'
436
445
  field :ctx_dfo_objective_defaults, 'object'
@@ -441,6 +450,7 @@ module FacebookAds
441
450
  field :current_unpaid_unrepaid_invoice, 'object'
442
451
  field :custom_audience_info, 'object'
443
452
  field :customaudiences, 'object'
453
+ field :customaudiencestos, 'object'
444
454
  field :customconversions, 'object'
445
455
  field :customer_po_number, 'string'
446
456
  field :daily_spend_limit, 'object'
@@ -478,7 +488,9 @@ module FacebookAds
478
488
  field :has_value_rule_set, 'bool'
479
489
  field :id, 'string'
480
490
  field :if_viewer_has_permission_to_advertise, 'bool'
491
+ field :impacting_ad_studies, 'object'
481
492
  field :incremental_conversion_optimization_ad_studies, { list: 'object' }
493
+ field :insights, 'object'
482
494
  field :instagram_accounts, 'object'
483
495
  field :invoicing_emails, 'object'
484
496
  field :ios_fourteen_campaign_limits, 'object'
@@ -510,6 +522,8 @@ module FacebookAds
510
522
  field :is_prepay_account, 'bool'
511
523
  field :is_retail_media_network, 'bool'
512
524
  field :is_shopless_awpt_eligible, 'bool'
525
+ field :is_simplified_creation_only_111_eligible, 'bool'
526
+ field :is_simplified_creation_segment_eligible, 'bool'
513
527
  field :is_tax_id_required, 'bool'
514
528
  field :is_tier_0, 'bool'
515
529
  field :is_tier_0_full, 'bool'
@@ -526,6 +540,10 @@ module FacebookAds
526
540
  field :last_used_time, 'int'
527
541
  field :liable_address, 'object'
528
542
  field :liable_addresses, 'object'
543
+ field :liable_to_org, 'object'
544
+ field :light_adsets, 'object'
545
+ field :light_campaigns, 'object'
546
+ field :lightads, 'object'
529
547
  field :live_video_advertiser_details, 'object'
530
548
  field :marketing_message_enablement_status, { enum: -> { MARKETING_MESSAGE_ENABLEMENT_STATUS }}
531
549
  field :marketing_messages_settings, 'object'
@@ -542,12 +560,14 @@ module FacebookAds
542
560
  field :modeled_reporting_type, { enum: -> { MODELED_REPORTING_TYPE }}
543
561
  field :moo_default_conversion_bid, 'int'
544
562
  field :name, 'string'
545
- field :next_bill_date, 'int'
563
+ field :naming_templates, 'object'
564
+ field :next_bill_date, 'mixed'
565
+ field :offline_conversion_data_sets, 'object'
546
566
  field :offsite_pixels_tos_accepted, 'bool'
547
567
  field :onbehalf_requests, 'object'
548
568
  field :opportunity_score, 'double'
549
569
  field :opportunity_score_weight, 'int'
550
- field :owner, 'string'
570
+ field :owner, 'int'
551
571
  field :owner_business, 'object'
552
572
  field :page_authorized_country_for_political_ads, { list: 'object' }
553
573
  field :pages_in_authorizations, { list: 'object' }
@@ -555,6 +575,7 @@ module FacebookAds
555
575
  field :payment_options, 'object'
556
576
  field :pending_billing_date_preference, 'object'
557
577
  field :prepay_account_balance, 'object'
578
+ field :promote_pages, 'object'
558
579
  field :promotion_metadata, { list: 'object' }
559
580
  field :promotion_metadata_live_crawl, { list: 'object' }
560
581
  field :publisher_block_lists, 'object'
@@ -572,6 +593,7 @@ module FacebookAds
572
593
  field :site_links_live_crawl, { list: 'object' }
573
594
  field :sold_to_address, 'object'
574
595
  field :sold_to_addresses, 'object'
596
+ field :sold_to_org, 'object'
575
597
  field :spend_cap, 'string'
576
598
  field :spend_cap_history, { list: 'object' }
577
599
  field :spendlimits, 'object'
@@ -597,8 +619,10 @@ module FacebookAds
597
619
  field :user_settings, 'object'
598
620
  field :user_tasks, { list: 'string' }
599
621
  field :user_tos_accepted, 'hash'
622
+ field :userpermissions, 'object'
600
623
  field :users, 'object'
601
624
  field :value_rule_set, 'object'
625
+ field :video_ads, 'object'
602
626
  field :viewable_business, 'object'
603
627
  field :viewable_businesses, { list: 'object' }
604
628
  has_no_get
@@ -0,0 +1,48 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AdAccountLightAds < AdObject
17
+
18
+ field :id, 'string'
19
+ has_no_get
20
+ has_no_post
21
+ has_no_delete
22
+
23
+ has_edge :lightads do |edge|
24
+ edge.get 'AdAccountLightAdsGet' do |api|
25
+ api.has_param :ad_draft_id, 'int'
26
+ api.has_param :after, 'string'
27
+ api.has_param :am_call_tags, 'string'
28
+ api.has_param :before, 'string'
29
+ api.has_param :comparison_time_ranges, 'string'
30
+ api.has_param :date_preset, { enum: -> { AdAccountLightAdsGet::DATE_PRESET }}
31
+ api.has_param :effective_status, { list: 'string' }
32
+ api.has_param :fields, 'string'
33
+ api.has_param :filtering, 'string'
34
+ api.has_param :from_adtable, 'bool'
35
+ api.has_param :include_deleted, 'bool'
36
+ api.has_param :include_drafts, 'bool'
37
+ api.has_param :limit, 'int'
38
+ api.has_param :offset, 'int'
39
+ api.has_param :sort, { list: 'string' }
40
+ api.has_param :summary, 'string'
41
+ api.has_param :time_range, 'string'
42
+ api.has_param :updated_since, 'int'
43
+ api.has_param :use_employee_draft, 'bool'
44
+ end
45
+ end
46
+
47
+ end
48
+ end
@@ -0,0 +1,86 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AdAccountLightAdsGet < AdObject
17
+ DATE_PRESET = [
18
+ "DATA_MAXIMUM",
19
+ "LAST_14D",
20
+ "LAST_14_DAYS",
21
+ "LAST_180_DAYS",
22
+ "LAST_24M",
23
+ "LAST_28D",
24
+ "LAST_28_DAYS",
25
+ "LAST_2D",
26
+ "LAST_2_DAYS",
27
+ "LAST_30D",
28
+ "LAST_30_DAYS",
29
+ "LAST_3D",
30
+ "LAST_3_DAYS",
31
+ "LAST_3_MONTHS",
32
+ "LAST_40D",
33
+ "LAST_7D",
34
+ "LAST_7_DAYS",
35
+ "LAST_8_DAYS",
36
+ "LAST_90D",
37
+ "LAST_90_DAYS",
38
+ "LAST_MONTH",
39
+ "LAST_ND_3_2",
40
+ "LAST_ND_4_3",
41
+ "LAST_ND_5_4",
42
+ "LAST_ND_6_5",
43
+ "LAST_ND_7_6",
44
+ "LAST_ND_8_7",
45
+ "LAST_NM_1_0",
46
+ "LAST_NM_2_0",
47
+ "LAST_NM_3_0",
48
+ "LAST_NM_3_2",
49
+ "LAST_NM_4_3",
50
+ "LAST_NM_5_4",
51
+ "LAST_NQ_2_0",
52
+ "LAST_NQ_2_1",
53
+ "LAST_NQ_3_0",
54
+ "LAST_NQ_3_1",
55
+ "LAST_QUARTER",
56
+ "LAST_WEEK",
57
+ "LAST_WEEK_MON_SUN",
58
+ "LAST_WEEK_SUN_SAT",
59
+ "LAST_YEAR",
60
+ "LIFETIME",
61
+ "MAXIMUM",
62
+ "NONE",
63
+ "THIS_MONTH",
64
+ "THIS_MONTH_NO_TODAY",
65
+ "THIS_QUARTER",
66
+ "THIS_WEEK",
67
+ "THIS_WEEK_MON_NO_TODAY",
68
+ "THIS_WEEK_MON_TODAY",
69
+ "THIS_WEEK_SUN_NO_TODAY",
70
+ "THIS_WEEK_SUN_TODAY",
71
+ "THIS_YEAR",
72
+ "TODAY",
73
+ "YESTERDAY",
74
+ ]
75
+
76
+
77
+ field :data, { list: 'object' }
78
+ field :paging, 'object'
79
+ field :summary, 'object'
80
+ has_no_id
81
+ has_no_get
82
+ has_no_post
83
+ has_no_delete
84
+
85
+ end
86
+ end
@@ -0,0 +1,49 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AdAccountLightAdsets < AdObject
17
+
18
+ field :id, 'string'
19
+ has_no_get
20
+ has_no_post
21
+ has_no_delete
22
+
23
+ has_edge :light_adsets do |edge|
24
+ edge.get 'AdAccountLightAdsetsGet' do |api|
25
+ api.has_param :ad_draft_id, 'int'
26
+ api.has_param :after, 'string'
27
+ api.has_param :am_call_tags, 'string'
28
+ api.has_param :before, 'string'
29
+ api.has_param :comparison_time_ranges, 'string'
30
+ api.has_param :date_preset, { enum: -> { AdAccountLightAdsetsGet::DATE_PRESET }}
31
+ api.has_param :effective_status, { list: 'string' }
32
+ api.has_param :fields, 'string'
33
+ api.has_param :filtering, 'string'
34
+ api.has_param :from_adtable, 'bool'
35
+ api.has_param :include_deleted, 'bool'
36
+ api.has_param :include_drafts, 'bool'
37
+ api.has_param :is_completed, 'bool'
38
+ api.has_param :limit, 'int'
39
+ api.has_param :offset, 'int'
40
+ api.has_param :sort, { list: 'string' }
41
+ api.has_param :summary, 'string'
42
+ api.has_param :time_range, 'string'
43
+ api.has_param :updated_since, 'int'
44
+ api.has_param :use_employee_draft, 'bool'
45
+ end
46
+ end
47
+
48
+ end
49
+ end
@@ -0,0 +1,86 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AdAccountLightAdsetsGet < AdObject
17
+ DATE_PRESET = [
18
+ "DATA_MAXIMUM",
19
+ "LAST_14D",
20
+ "LAST_14_DAYS",
21
+ "LAST_180_DAYS",
22
+ "LAST_24M",
23
+ "LAST_28D",
24
+ "LAST_28_DAYS",
25
+ "LAST_2D",
26
+ "LAST_2_DAYS",
27
+ "LAST_30D",
28
+ "LAST_30_DAYS",
29
+ "LAST_3D",
30
+ "LAST_3_DAYS",
31
+ "LAST_3_MONTHS",
32
+ "LAST_40D",
33
+ "LAST_7D",
34
+ "LAST_7_DAYS",
35
+ "LAST_8_DAYS",
36
+ "LAST_90D",
37
+ "LAST_90_DAYS",
38
+ "LAST_MONTH",
39
+ "LAST_ND_3_2",
40
+ "LAST_ND_4_3",
41
+ "LAST_ND_5_4",
42
+ "LAST_ND_6_5",
43
+ "LAST_ND_7_6",
44
+ "LAST_ND_8_7",
45
+ "LAST_NM_1_0",
46
+ "LAST_NM_2_0",
47
+ "LAST_NM_3_0",
48
+ "LAST_NM_3_2",
49
+ "LAST_NM_4_3",
50
+ "LAST_NM_5_4",
51
+ "LAST_NQ_2_0",
52
+ "LAST_NQ_2_1",
53
+ "LAST_NQ_3_0",
54
+ "LAST_NQ_3_1",
55
+ "LAST_QUARTER",
56
+ "LAST_WEEK",
57
+ "LAST_WEEK_MON_SUN",
58
+ "LAST_WEEK_SUN_SAT",
59
+ "LAST_YEAR",
60
+ "LIFETIME",
61
+ "MAXIMUM",
62
+ "NONE",
63
+ "THIS_MONTH",
64
+ "THIS_MONTH_NO_TODAY",
65
+ "THIS_QUARTER",
66
+ "THIS_WEEK",
67
+ "THIS_WEEK_MON_NO_TODAY",
68
+ "THIS_WEEK_MON_TODAY",
69
+ "THIS_WEEK_SUN_NO_TODAY",
70
+ "THIS_WEEK_SUN_TODAY",
71
+ "THIS_YEAR",
72
+ "TODAY",
73
+ "YESTERDAY",
74
+ ]
75
+
76
+
77
+ field :data, { list: 'object' }
78
+ field :paging, 'object'
79
+ field :summary, 'object'
80
+ has_no_id
81
+ has_no_get
82
+ has_no_post
83
+ has_no_delete
84
+
85
+ end
86
+ end
@@ -0,0 +1,47 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class AdAccountLightCampaigns < AdObject
17
+
18
+ field :id, 'string'
19
+ has_no_get
20
+ has_no_post
21
+ has_no_delete
22
+
23
+ has_edge :light_campaigns do |edge|
24
+ edge.get 'AdAccountLightCampaignsGet' do |api|
25
+ api.has_param :ad_draft_id, 'int'
26
+ api.has_param :after, 'string'
27
+ api.has_param :am_call_tags, 'string'
28
+ api.has_param :before, 'string'
29
+ api.has_param :comparison_time_ranges, 'string'
30
+ api.has_param :date_preset, { enum: -> { AdAccountLightCampaignsGet::DATE_PRESET }}
31
+ api.has_param :effective_status, { list: 'string' }
32
+ api.has_param :fields, 'string'
33
+ api.has_param :filtering, 'string'
34
+ api.has_param :from_adtable, 'bool'
35
+ api.has_param :include_drafts, 'bool'
36
+ api.has_param :is_completed, 'bool'
37
+ api.has_param :limit, 'int'
38
+ api.has_param :offset, 'int'
39
+ api.has_param :sort, { list: 'string' }
40
+ api.has_param :summary, 'string'
41
+ api.has_param :time_range, 'string'
42
+ api.has_param :use_employee_draft, 'bool'
43
+ end
44
+ end
45
+
46
+ end
47
+ end