diff --git a/Gemfile.lock b/Gemfile.lock index a75be148..cf50e4ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -63,7 +63,7 @@ GEM rainbow (3.0.0) rake (13.0.1) regexp_parser (1.7.1) - rexml (3.2.4) + rexml (3.2.5) rspec (3.9.0) rspec-core (~> 3.9.0) rspec-expectations (~> 3.9.0) diff --git a/examples/AdAccountActivityNode.rb b/examples/AdAccountActivityNode.rb deleted file mode 100644 index 14619298..00000000 --- a/examples/AdAccountActivityNode.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -ad_account_activity = FacebookAds::AdAccountActivity.get(id ,'') \ No newline at end of file diff --git a/examples/AdAccountAdCreativesEdge.rb b/examples/AdAccountAdCreativesEdge.rb index 31889fb8..cbe3c6ca 100644 --- a/examples/AdAccountAdCreativesEdge.rb +++ b/examples/AdAccountAdCreativesEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost.rb b/examples/AdAccountAdCreativesPost.rb index b4e7abc4..6e299484 100644 --- a/examples/AdAccountAdCreativesPost.rb +++ b/examples/AdAccountAdCreativesPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost2CreateAdCreativeLinkAd.rb b/examples/AdAccountAdCreativesPost2CreateAdCreativeLinkAd.rb index 5dd1ef30..411654e7 100644 --- a/examples/AdAccountAdCreativesPost2CreateAdCreativeLinkAd.rb +++ b/examples/AdAccountAdCreativesPost2CreateAdCreativeLinkAd.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost2CreateLinkAdCallToActionAppInstall.rb b/examples/AdAccountAdCreativesPost2CreateLinkAdCallToActionAppInstall.rb index f8a85c07..f1edd8b2 100644 --- a/examples/AdAccountAdCreativesPost2CreateLinkAdCallToActionAppInstall.rb +++ b/examples/AdAccountAdCreativesPost2CreateLinkAdCallToActionAppInstall.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost2CreateLinkAdImageCrop.rb b/examples/AdAccountAdCreativesPost2CreateLinkAdImageCrop.rb index b0d1469d..587c5ef0 100644 --- a/examples/AdAccountAdCreativesPost2CreateLinkAdImageCrop.rb +++ b/examples/AdAccountAdCreativesPost2CreateLinkAdImageCrop.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost2CreateMAIDPA.rb b/examples/AdAccountAdCreativesPost2CreateMAIDPA.rb index e94a0d57..3c56f4b3 100644 --- a/examples/AdAccountAdCreativesPost2CreateMAIDPA.rb +++ b/examples/AdAccountAdCreativesPost2CreateMAIDPA.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost2CreateVideoLeadAd.rb b/examples/AdAccountAdCreativesPost2CreateVideoLeadAd.rb index af1069df..4d8470e6 100644 --- a/examples/AdAccountAdCreativesPost2CreateVideoLeadAd.rb +++ b/examples/AdAccountAdCreativesPost2CreateVideoLeadAd.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost2CreateVideoPageLikeAd.rb b/examples/AdAccountAdCreativesPost2CreateVideoPageLikeAd.rb index 4be485f1..8f258f41 100644 --- a/examples/AdAccountAdCreativesPost2CreateVideoPageLikeAd.rb +++ b/examples/AdAccountAdCreativesPost2CreateVideoPageLikeAd.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost3CreateAdCreativePageLike.rb b/examples/AdAccountAdCreativesPost3CreateAdCreativePageLike.rb index 0f88ba9f..009a867c 100644 --- a/examples/AdAccountAdCreativesPost3CreateAdCreativePageLike.rb +++ b/examples/AdAccountAdCreativesPost3CreateAdCreativePageLike.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost3CreateAssetFeedSpec.rb b/examples/AdAccountAdCreativesPost3CreateAssetFeedSpec.rb index 3b1efe79..10788f96 100644 --- a/examples/AdAccountAdCreativesPost3CreateAssetFeedSpec.rb +++ b/examples/AdAccountAdCreativesPost3CreateAssetFeedSpec.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost3CreateCarouselCallToActionAppInstall.rb b/examples/AdAccountAdCreativesPost3CreateCarouselCallToActionAppInstall.rb index e830961f..b618b12f 100644 --- a/examples/AdAccountAdCreativesPost3CreateCarouselCallToActionAppInstall.rb +++ b/examples/AdAccountAdCreativesPost3CreateCarouselCallToActionAppInstall.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPost3CreateDynamicAdCustomization.rb b/examples/AdAccountAdCreativesPost3CreateDynamicAdCustomization.rb index a29aa953..94b86536 100644 --- a/examples/AdAccountAdCreativesPost3CreateDynamicAdCustomization.rb +++ b/examples/AdAccountAdCreativesPost3CreateDynamicAdCustomization.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPostCreateAdCreative.rb b/examples/AdAccountAdCreativesPostCreateAdCreative.rb index 55a1e71c..873b5f17 100644 --- a/examples/AdAccountAdCreativesPostCreateAdCreative.rb +++ b/examples/AdAccountAdCreativesPostCreateAdCreative.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.rb b/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.rb index 6fa23e98..487dfeb1 100644 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.rb +++ b/examples/AdAccountAdCreativesPostCreateAdCreativeCanvas.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.rb b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.rb index 714a3968..42d94acd 100644 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.rb +++ b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasDV.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.rb b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.rb index eca7ec26..1d9ab474 100644 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.rb +++ b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasImage.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.rb b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.rb index 77e73d1b..6d1d22f2 100644 --- a/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.rb +++ b/examples/AdAccountAdCreativesPostCreateAdCreativeCustomizationCanvasVideo.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPost2CreateMAIA.rb b/examples/AdAccountAdSetsPost2CreateMAIA.rb index e58ce2f2..d3eee18d 100644 --- a/examples/AdAccountAdSetsPost2CreateMAIA.rb +++ b/examples/AdAccountAdSetsPost2CreateMAIA.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.rb b/examples/AdAccountAdSetsPostAdSetCreateCpa.rb index 9d5816d0..222fd61a 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.rb +++ b/examples/AdAccountAdSetsPostAdSetCreateCpa.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -33,8 +34,8 @@ name: 'A CPA Ad Set', campaign_id: '', daily_budget: '5000', - start_time: '2022-01-26T10:39:14-0800', - end_time: '2022-02-02T10:39:14-0800', + start_time: '2023-01-16T15:01:45-0800', + end_time: '2023-01-23T15:01:45-0800', billing_event: 'IMPRESSIONS', optimization_goal: 'REACH', bid_amount: '1000', diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb index 152fd04c..297ce7b2 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb +++ b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -33,8 +34,8 @@ name: 'A CPA Ad Set optimized for App Events', campaign_id: '', daily_budget: '300', - start_time: '2022-01-26T10:40:11-0800', - end_time: '2022-02-02T10:40:11-0800', + start_time: '2023-01-16T15:02:32-0800', + end_time: '2023-01-23T15:02:32-0800', billing_event: 'IMPRESSIONS', optimization_goal: 'OFFSITE_CONVERSIONS', bid_amount: '100', diff --git a/examples/AdAccountAdSetsPostBehaviorTargeting.rb b/examples/AdAccountAdSetsPostBehaviorTargeting.rb index 21fe6893..5ca72356 100644 --- a/examples/AdAccountAdSetsPostBehaviorTargeting.rb +++ b/examples/AdAccountAdSetsPostBehaviorTargeting.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostBidMultiplier.rb b/examples/AdAccountAdSetsPostBidMultiplier.rb index ae8f205f..7e3f90de 100644 --- a/examples/AdAccountAdSetsPostBidMultiplier.rb +++ b/examples/AdAccountAdSetsPostBidMultiplier.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostCreateAdSet.rb b/examples/AdAccountAdSetsPostCreateAdSet.rb index 944c965e..f9037454 100644 --- a/examples/AdAccountAdSetsPostCreateAdSet.rb +++ b/examples/AdAccountAdSetsPostCreateAdSet.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -32,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First AdSet', lifetime_budget: '20000', - start_time: '2022-01-26T10:44:48-0800', - end_time: '2022-02-02T10:44:48-0800', + start_time: '2023-01-16T15:00:58-0800', + end_time: '2023-01-23T15:00:58-0800', campaign_id: '', bid_amount: '500', billing_event: 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostCreateAudienceNetwork.rb b/examples/AdAccountAdSetsPostCreateAudienceNetwork.rb index 0118e31d..f68c77b7 100644 --- a/examples/AdAccountAdSetsPostCreateAudienceNetwork.rb +++ b/examples/AdAccountAdSetsPostCreateAudienceNetwork.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostDailyBudget20.rb b/examples/AdAccountAdSetsPostDailyBudget20.rb index 902be9e4..588dae74 100644 --- a/examples/AdAccountAdSetsPostDailyBudget20.rb +++ b/examples/AdAccountAdSetsPostDailyBudget20.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -32,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First Adset', daily_budget: '2000', - start_time: '2022-01-19T10:39:42-0800', - end_time: '2022-01-26T10:39:42-0800', + start_time: '2023-01-09T15:02:03-0800', + end_time: '2023-01-16T15:02:03-0800', campaign_id: '', bid_amount: '100', billing_event: 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostDemographicTargeting.rb b/examples/AdAccountAdSetsPostDemographicTargeting.rb index aed082f8..7e81355a 100644 --- a/examples/AdAccountAdSetsPostDemographicTargeting.rb +++ b/examples/AdAccountAdSetsPostDemographicTargeting.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostInterestTargeting.rb b/examples/AdAccountAdSetsPostInterestTargeting.rb index 37cab335..aec2f9fa 100644 --- a/examples/AdAccountAdSetsPostInterestTargeting.rb +++ b/examples/AdAccountAdSetsPostInterestTargeting.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb index 7867b377..6f157d97 100644 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb +++ b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -32,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First Adset', lifetime_budget: '20000', - start_time: '2022-01-19T10:39:52-0800', - end_time: '2022-01-29T10:39:52-0800', + start_time: '2023-01-09T15:02:13-0800', + end_time: '2023-01-19T15:02:13-0800', campaign_id: '', bid_amount: '100', billing_event: 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostOfferClaim.rb b/examples/AdAccountAdSetsPostOfferClaim.rb index ea032440..85a8ca19 100644 --- a/examples/AdAccountAdSetsPostOfferClaim.rb +++ b/examples/AdAccountAdSetsPostOfferClaim.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -32,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My Offer Claim AdSet', lifetime_budget: '56000', - start_time: '2022-01-19T10:39:33-0800', - end_time: '2022-01-26T10:39:33-0800', + start_time: '2022-05-23T13:26:58-0700', + end_time: '2022-05-30T13:26:58-0700', campaign_id: '', billing_event: 'LINK_CLICKS', optimization_goal: 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.rb b/examples/AdAccountAdSetsPostOptimizePostEngagement.rb index 5a91bcb9..84224209 100644 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.rb +++ b/examples/AdAccountAdSetsPostOptimizePostEngagement.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -32,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First Adset', lifetime_budget: '20000', - start_time: '2022-01-19T10:40:02-0800', - end_time: '2022-01-29T10:40:02-0800', + start_time: '2023-01-09T15:02:22-0800', + end_time: '2023-01-19T15:02:22-0800', campaign_id: '', bid_amount: '500', billing_event: 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostPageLikes.rb b/examples/AdAccountAdSetsPostPageLikes.rb index 78aaf114..7a6b7e93 100644 --- a/examples/AdAccountAdSetsPostPageLikes.rb +++ b/examples/AdAccountAdSetsPostPageLikes.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostPlacementTargeting.rb b/examples/AdAccountAdSetsPostPlacementTargeting.rb index 257af58d..96fb575d 100644 --- a/examples/AdAccountAdSetsPostPlacementTargeting.rb +++ b/examples/AdAccountAdSetsPostPlacementTargeting.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdSetsPostReach.rb b/examples/AdAccountAdSetsPostReach.rb index c7b4e5de..70c23b61 100644 --- a/examples/AdAccountAdSetsPostReach.rb +++ b/examples/AdAccountAdSetsPostReach.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdVideosPost.rb b/examples/AdAccountAdVideosPost.rb index 1ecd3cf6..40db05f0 100644 --- a/examples/AdAccountAdVideosPost.rb +++ b/examples/AdAccountAdVideosPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdsPixelEdgeGetPixelCode.rb b/examples/AdAccountAdsPixelEdgeGetPixelCode.rb index 1ffa291f..11b903f7 100644 --- a/examples/AdAccountAdsPixelEdgeGetPixelCode.rb +++ b/examples/AdAccountAdsPixelEdgeGetPixelCode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdsPixelsPost.rb b/examples/AdAccountAdsPixelsPost.rb index 1d0ff96d..75e945f0 100644 --- a/examples/AdAccountAdsPixelsPost.rb +++ b/examples/AdAccountAdsPixelsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdsPost.rb b/examples/AdAccountAdsPost.rb index d887c3dd..79bb95c8 100644 --- a/examples/AdAccountAdsPost.rb +++ b/examples/AdAccountAdsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdsPostAdsRedownload.rb b/examples/AdAccountAdsPostAdsRedownload.rb index 9b0536c4..2a7df10f 100644 --- a/examples/AdAccountAdsPostAdsRedownload.rb +++ b/examples/AdAccountAdsPostAdsRedownload.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdsPostOfferClaim.rb b/examples/AdAccountAdsPostOfferClaim.rb index 62b2b64a..6a3eb484 100644 --- a/examples/AdAccountAdsPostOfferClaim.rb +++ b/examples/AdAccountAdsPostOfferClaim.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountAdsPostTrackingPostEngagement.rb b/examples/AdAccountAdsPostTrackingPostEngagement.rb index 501e65ff..f34b869c 100644 --- a/examples/AdAccountAdsPostTrackingPostEngagement.rb +++ b/examples/AdAccountAdsPostTrackingPostEngagement.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsEdge.rb b/examples/AdAccountCampaignsEdge.rb index fe7ff75a..acab9079 100644 --- a/examples/AdAccountCampaignsEdge.rb +++ b/examples/AdAccountCampaignsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostConversions.rb b/examples/AdAccountCampaignsPostConversions.rb index ac53e828..69d37ee3 100644 --- a/examples/AdAccountCampaignsPostConversions.rb +++ b/examples/AdAccountCampaignsPostConversions.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostEventResponses.rb b/examples/AdAccountCampaignsPostEventResponses.rb index 049e1d22..dbcb9544 100644 --- a/examples/AdAccountCampaignsPostEventResponses.rb +++ b/examples/AdAccountCampaignsPostEventResponses.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostLeadGen.rb b/examples/AdAccountCampaignsPostLeadGen.rb index 63e20ea6..7b4d8ce2 100644 --- a/examples/AdAccountCampaignsPostLeadGen.rb +++ b/examples/AdAccountCampaignsPostLeadGen.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostLinkClicks.rb b/examples/AdAccountCampaignsPostLinkClicks.rb index 6006106a..7fdcf172 100644 --- a/examples/AdAccountCampaignsPostLinkClicks.rb +++ b/examples/AdAccountCampaignsPostLinkClicks.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostLocalAwareness.rb b/examples/AdAccountCampaignsPostLocalAwareness.rb index 3f18ce5e..a67f7aac 100644 --- a/examples/AdAccountCampaignsPostLocalAwareness.rb +++ b/examples/AdAccountCampaignsPostLocalAwareness.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostMAIA.rb b/examples/AdAccountCampaignsPostMAIA.rb index 2d9332bb..8f8cfb40 100644 --- a/examples/AdAccountCampaignsPostMAIA.rb +++ b/examples/AdAccountCampaignsPostMAIA.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostMAIDPA.rb b/examples/AdAccountCampaignsPostMAIDPA.rb index 22f593de..3810fb25 100644 --- a/examples/AdAccountCampaignsPostMAIDPA.rb +++ b/examples/AdAccountCampaignsPostMAIDPA.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostOfferClaims.rb b/examples/AdAccountCampaignsPostOfferClaims.rb index 7ac68d32..4e137937 100644 --- a/examples/AdAccountCampaignsPostOfferClaims.rb +++ b/examples/AdAccountCampaignsPostOfferClaims.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostPageLikes.rb b/examples/AdAccountCampaignsPostPageLikes.rb index 2f69fa4e..58e095fa 100644 --- a/examples/AdAccountCampaignsPostPageLikes.rb +++ b/examples/AdAccountCampaignsPostPageLikes.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostPostEngagement.rb b/examples/AdAccountCampaignsPostPostEngagement.rb index 6ed7a4bf..33786fc8 100644 --- a/examples/AdAccountCampaignsPostPostEngagement.rb +++ b/examples/AdAccountCampaignsPostPostEngagement.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostStoreCampaign.rb b/examples/AdAccountCampaignsPostStoreCampaign.rb index c87e90fd..ac080874 100644 --- a/examples/AdAccountCampaignsPostStoreCampaign.rb +++ b/examples/AdAccountCampaignsPostStoreCampaign.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCampaignsPostVideoViews.rb b/examples/AdAccountCampaignsPostVideoViews.rb index e213fe7b..8618e58f 100644 --- a/examples/AdAccountCampaignsPostVideoViews.rb +++ b/examples/AdAccountCampaignsPostVideoViews.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesEdge.rb b/examples/AdAccountCustomAudiencesEdge.rb index e312a0b8..c6388944 100644 --- a/examples/AdAccountCustomAudiencesEdge.rb +++ b/examples/AdAccountCustomAudiencesEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.rb b/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.rb index aa61decb..d4236a5f 100644 --- a/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.rb +++ b/examples/AdAccountCustomAudiencesEdgeDataSourceSubtype.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostCreateCustomAudience.rb b/examples/AdAccountCustomAudiencesPostCreateCustomAudience.rb index 8901a122..09458023 100644 --- a/examples/AdAccountCustomAudiencesPostCreateCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostCreateCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.rb b/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.rb index a78d866d..08ffbb85 100644 --- a/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.rb b/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.rb index 5a324aa2..c3890fb9 100644 --- a/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.rb b/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.rb index d9dae8ff..d4fa8c54 100644 --- a/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.rb +++ b/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.rb b/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.rb index 43e710d6..95ca2727 100644 --- a/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.rb +++ b/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.rb b/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.rb index 14e1a57f..b1329dce 100644 --- a/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.rb +++ b/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.rb b/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.rb index 5b03f98f..25d6fd83 100644 --- a/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.rb +++ b/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.rb b/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.rb index bedf209f..b0d36536 100644 --- a/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.rb b/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.rb index 54cc9c50..299db3af 100644 --- a/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.rb b/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.rb index ac687e48..d4083b9b 100644 --- a/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.rb b/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.rb index 4c10e281..a39592a7 100644 --- a/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.rb +++ b/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountGeneratePreviewsEdge.rb b/examples/AdAccountGeneratePreviewsEdge.rb index 88917a58..3d6abe47 100644 --- a/examples/AdAccountGeneratePreviewsEdge.rb +++ b/examples/AdAccountGeneratePreviewsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.rb b/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.rb index ad056be0..e640ee9f 100644 --- a/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.rb +++ b/examples/AdAccountGeneratePreviewsEdgeDesktopWithStoryId.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.rb b/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.rb index 676c28c9..72e00061 100644 --- a/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.rb +++ b/examples/AdAccountGeneratePreviewsEdgeInstagramStandards.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.rb b/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.rb index 42837b12..067ee307 100644 --- a/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.rb +++ b/examples/AdAccountGeneratePreviewsEdgeMaiaWithObjectStorySpec.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountNode.rb b/examples/AdAccountNode.rb index 09596952..625d6fa9 100644 --- a/examples/AdAccountNode.rb +++ b/examples/AdAccountNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.rb b/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.rb index e7018ed0..1f7124aa 100644 --- a/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.rb +++ b/examples/AdAccountProductAudiencesPostIphoneViewNoPurchase.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountProductAudiencesPostNoPurchase.rb b/examples/AdAccountProductAudiencesPostNoPurchase.rb index d9be2c47..4beb9816 100644 --- a/examples/AdAccountProductAudiencesPostNoPurchase.rb +++ b/examples/AdAccountProductAudiencesPostNoPurchase.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdAccountReachEstimate.rb b/examples/AdAccountReachEstimate.rb index af3a9ceb..909995a3 100644 --- a/examples/AdAccountReachEstimate.rb +++ b/examples/AdAccountReachEstimate.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCampaignActivityNode.rb b/examples/AdCampaignActivityNode.rb deleted file mode 100644 index 2d344110..00000000 --- a/examples/AdCampaignActivityNode.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -ad_set = FacebookAds::AdSet.get(id ,'created_time') \ No newline at end of file diff --git a/examples/AdCampaignGroupActivityNode.rb b/examples/AdCampaignGroupActivityNode.rb deleted file mode 100644 index 1f0c9df9..00000000 --- a/examples/AdCampaignGroupActivityNode.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -campaign = FacebookAds::Campaign.get(id ,'time_created') \ No newline at end of file diff --git a/examples/AdCampaignGroupAdsEdge.rb b/examples/AdCampaignGroupAdsEdge.rb index 62fdeea3..2b169fc9 100644 --- a/examples/AdCampaignGroupAdsEdge.rb +++ b/examples/AdCampaignGroupAdsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.rb b/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.rb index 0df4c02e..a8d97682 100644 --- a/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.rb +++ b/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCampaignGroupAdsetsEdge.rb b/examples/AdCampaignGroupAdsetsEdge.rb index fab16d60..583cd0eb 100644 --- a/examples/AdCampaignGroupAdsetsEdge.rb +++ b/examples/AdCampaignGroupAdsetsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCampaignNode.rb b/examples/AdCampaignNode.rb index 1afd8fc2..20651ad9 100644 --- a/examples/AdCampaignNode.rb +++ b/examples/AdCampaignNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCampaignPost.rb b/examples/AdCampaignPost.rb index d8a30a15..c68dd5e5 100644 --- a/examples/AdCampaignPost.rb +++ b/examples/AdCampaignPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCampaignPostAdsetUpdateCpa.rb b/examples/AdCampaignPostAdsetUpdateCpa.rb index 88341a25..ee8aa73e 100644 --- a/examples/AdCampaignPostAdsetUpdateCpa.rb +++ b/examples/AdCampaignPostAdsetUpdateCpa.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativeCreativeInsightsEdge.rb b/examples/AdCreativeCreativeInsightsEdge.rb index 9dd7eab9..5eaf1d80 100644 --- a/examples/AdCreativeCreativeInsightsEdge.rb +++ b/examples/AdCreativeCreativeInsightsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativeNode.rb b/examples/AdCreativeNode.rb index 92623cb7..7bc39af2 100644 --- a/examples/AdCreativeNode.rb +++ b/examples/AdCreativeNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativeNodeRead.rb b/examples/AdCreativeNodeRead.rb index b0957abe..000ac18b 100644 --- a/examples/AdCreativeNodeRead.rb +++ b/examples/AdCreativeNodeRead.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativeNodeReadInstagramPermalinkUrl.rb b/examples/AdCreativeNodeReadInstagramPermalinkUrl.rb index 38e5f7df..b7ecd737 100644 --- a/examples/AdCreativeNodeReadInstagramPermalinkUrl.rb +++ b/examples/AdCreativeNodeReadInstagramPermalinkUrl.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativePreviewsEdge.rb b/examples/AdCreativePreviewsEdge.rb index 74274c6e..0386e310 100644 --- a/examples/AdCreativePreviewsEdge.rb +++ b/examples/AdCreativePreviewsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativePreviewsEdgePreview.rb b/examples/AdCreativePreviewsEdgePreview.rb index 0e73b463..62d6d82f 100644 --- a/examples/AdCreativePreviewsEdgePreview.rb +++ b/examples/AdCreativePreviewsEdgePreview.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativePreviewsEdgePreviewDynamicAds.rb b/examples/AdCreativePreviewsEdgePreviewDynamicAds.rb index 74274c6e..0386e310 100644 --- a/examples/AdCreativePreviewsEdgePreviewDynamicAds.rb +++ b/examples/AdCreativePreviewsEdgePreviewDynamicAds.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.rb b/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.rb index 454d2021..eb16e7ce 100644 --- a/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.rb +++ b/examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdgroupActivityNode.rb b/examples/AdgroupActivityNode.rb deleted file mode 100644 index 53f47dfe..00000000 --- a/examples/AdgroupActivityNode.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -adgroup_activity = FacebookAds::AdgroupActivity.get(id ,'created_time') \ No newline at end of file diff --git a/examples/AdgroupLeadsEdgeAdgroupLeads.rb b/examples/AdgroupLeadsEdgeAdgroupLeads.rb index 3d97dbf6..0069b2b8 100644 --- a/examples/AdgroupLeadsEdgeAdgroupLeads.rb +++ b/examples/AdgroupLeadsEdgeAdgroupLeads.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.rb b/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.rb index 49382de6..66dd44ac 100644 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.rb +++ b/examples/AdgroupLeadsEdgeAdgroupLeadsDPA.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb index a8686c66..c0a18748 100644 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb +++ b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -31,5 +32,5 @@ ad = FacebookAds::Ad.get(id) leadss = ad.leads({ fields: { }, - filtering: [{'field':'time_created','operator':'GREATER_THAN','value':1638283275}], + filtering: [{'field':'time_created','operator':'GREATER_THAN','value':1672701098}], }) \ No newline at end of file diff --git a/examples/AdgroupPost.rb b/examples/AdgroupPost.rb index 483e716c..23d86627 100644 --- a/examples/AdgroupPost.rb +++ b/examples/AdgroupPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdgroupPostUpdateStatus.rb b/examples/AdgroupPostUpdateStatus.rb index 15827068..cb7399ce 100644 --- a/examples/AdgroupPostUpdateStatus.rb +++ b/examples/AdgroupPostUpdateStatus.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdsInsightsEdgeAdCampaignInsights.rb b/examples/AdsInsightsEdgeAdCampaignInsights.rb index af82645e..40397752 100644 --- a/examples/AdsInsightsEdgeAdCampaignInsights.rb +++ b/examples/AdsInsightsEdgeAdCampaignInsights.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdsInsightsEdgeStoreVisitsAdCampaignInsights.rb b/examples/AdsInsightsEdgeStoreVisitsAdCampaignInsights.rb index c8590e46..45a99eed 100644 --- a/examples/AdsInsightsEdgeStoreVisitsAdCampaignInsights.rb +++ b/examples/AdsInsightsEdgeStoreVisitsAdCampaignInsights.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdsPixelEventsPost.rb b/examples/AdsPixelEventsPost.rb index 5d47b4b7..0a754ed6 100644 --- a/examples/AdsPixelEventsPost.rb +++ b/examples/AdsPixelEventsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -30,5 +31,5 @@ ads_pixel = FacebookAds::AdsPixel.get(id) events = ads_pixel.events.create({ - data: [{'event_name':'PageView','event_time':1638887249,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}], + data: [{'event_name':'PageView','event_time':1673305167,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}], }) \ No newline at end of file diff --git a/examples/AdsPixelEventsPostCustom.rb b/examples/AdsPixelEventsPostCustom.rb index 049df962..f721667a 100644 --- a/examples/AdsPixelEventsPostCustom.rb +++ b/examples/AdsPixelEventsPostCustom.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -56,7 +57,6 @@ action_source: 'website' ) - request = FacebookAds::ServerSide::EventRequest.new( pixel_id: pixel_id, events: [event] diff --git a/examples/AdsPixelSharedAccountsEdge.rb b/examples/AdsPixelSharedAccountsEdge.rb index 02f13b61..427bc8e0 100644 --- a/examples/AdsPixelSharedAccountsEdge.rb +++ b/examples/AdsPixelSharedAccountsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdsPixelSharedAccountsPost.rb b/examples/AdsPixelSharedAccountsPost.rb index d2bc0e8f..f819cf9d 100644 --- a/examples/AdsPixelSharedAccountsPost.rb +++ b/examples/AdsPixelSharedAccountsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/AdsPixelSharedAgenciesEdge.rb b/examples/AdsPixelSharedAgenciesEdge.rb index 28a0399e..c578f9ec 100644 --- a/examples/AdsPixelSharedAgenciesEdge.rb +++ b/examples/AdsPixelSharedAgenciesEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/BusinessOwnedProductCatalogsPostFlightCatalog.rb b/examples/BusinessOwnedProductCatalogsPostFlightCatalog.rb deleted file mode 100644 index bae7b93e..00000000 --- a/examples/BusinessOwnedProductCatalogsPostFlightCatalog.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -business = FacebookAds::Business.get(id) -owned_product_catalogs = business.owned_product_catalogs.create({ - name: 'Test Flight Catalog', - vertical: 'flights', -}) \ No newline at end of file diff --git a/examples/BusinessOwnedProductCatalogsPostHotelCatalog.rb b/examples/BusinessOwnedProductCatalogsPostHotelCatalog.rb deleted file mode 100644 index 176c0460..00000000 --- a/examples/BusinessOwnedProductCatalogsPostHotelCatalog.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -business = FacebookAds::Business.get(id) -owned_product_catalogs = business.owned_product_catalogs.create({ - name: 'Test Hotel Catalog', - vertical: 'hotels', -}) \ No newline at end of file diff --git a/examples/BusinessOwnedProductCatalogsPostProductCatalog.rb b/examples/BusinessOwnedProductCatalogsPostProductCatalog.rb deleted file mode 100644 index 377b8f9d..00000000 --- a/examples/BusinessOwnedProductCatalogsPostProductCatalog.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -require 'facebook_ads' - -access_token = '' -app_secret = '' -app_id = '' -id = '' - -FacebookAds.configure do |config| - config.access_token = access_token - config.app_secret = app_secret -end - -business = FacebookAds::Business.get(id) -owned_product_catalogs = business.owned_product_catalogs.create({ - name: 'Test Catalog', -}) \ No newline at end of file diff --git a/examples/CustomAudienceDelete.rb b/examples/CustomAudienceDelete.rb index 76e1ebe6..f67f3a59 100644 --- a/examples/CustomAudienceDelete.rb +++ b/examples/CustomAudienceDelete.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/CustomAudienceNode.rb b/examples/CustomAudienceNode.rb index 92b85ebb..763908b2 100644 --- a/examples/CustomAudienceNode.rb +++ b/examples/CustomAudienceNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/CustomAudienceNodeReadRule.rb b/examples/CustomAudienceNodeReadRule.rb index f04e227e..de38c1d0 100644 --- a/examples/CustomAudienceNodeReadRule.rb +++ b/examples/CustomAudienceNodeReadRule.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/CustomAudiencePost.rb b/examples/CustomAudiencePost.rb index 8516d975..bf79d52d 100644 --- a/examples/CustomAudiencePost.rb +++ b/examples/CustomAudiencePost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/CustomAudienceUsersPost.rb b/examples/CustomAudienceUsersPost.rb index 0340a8f3..0dd2efe5 100644 --- a/examples/CustomAudienceUsersPost.rb +++ b/examples/CustomAudienceUsersPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/CustomAudienceUsersPostCrossPlatform.rb b/examples/CustomAudienceUsersPostCrossPlatform.rb index 018c7926..c42944ea 100644 --- a/examples/CustomAudienceUsersPostCrossPlatform.rb +++ b/examples/CustomAudienceUsersPostCrossPlatform.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/MultiPageFeedCreateThenDelete.rb b/examples/MultiPageFeedCreateThenDelete.rb index 12bb7eb6..ed2e7600 100644 --- a/examples/MultiPageFeedCreateThenDelete.rb +++ b/examples/MultiPageFeedCreateThenDelete.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/MultiPromoteYourPage.rb b/examples/MultiPromoteYourPage.rb index 9ec32770..652d7cf9 100644 --- a/examples/MultiPromoteYourPage.rb +++ b/examples/MultiPromoteYourPage.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/OfflineConversionsCreateOfflineSet.rb b/examples/OfflineConversionsCreateOfflineSet.rb index 7a8b4072..1e440cde 100644 --- a/examples/OfflineConversionsCreateOfflineSet.rb +++ b/examples/OfflineConversionsCreateOfflineSet.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageFeedEdge.rb b/examples/PageFeedEdge.rb index f3c9737d..ac13c261 100644 --- a/examples/PageFeedEdge.rb +++ b/examples/PageFeedEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageFeedPost.rb b/examples/PageFeedPost.rb index 7ca9896c..c8620d8c 100644 --- a/examples/PageFeedPost.rb +++ b/examples/PageFeedPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageFeedPostFeedImageDeepLink.rb b/examples/PageFeedPostFeedImageDeepLink.rb index c0081d8a..16b6b8c5 100644 --- a/examples/PageFeedPostFeedImageDeepLink.rb +++ b/examples/PageFeedPostFeedImageDeepLink.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageNode.rb b/examples/PageNode.rb index e087bf78..f51ad3f1 100644 --- a/examples/PageNode.rb +++ b/examples/PageNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageNodePageSearch.rb b/examples/PageNodePageSearch.rb index 1d24d7fb..56c42a58 100644 --- a/examples/PageNodePageSearch.rb +++ b/examples/PageNodePageSearch.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/BusinessOwnedProductCatalogsPostDestinationCatalog.rb b/examples/PagePageWhatsAppNumberVerificationPost.rb similarity index 81% rename from examples/BusinessOwnedProductCatalogsPostDestinationCatalog.rb rename to examples/PagePageWhatsAppNumberVerificationPost.rb index b1263a30..111e0bac 100644 --- a/examples/BusinessOwnedProductCatalogsPostDestinationCatalog.rb +++ b/examples/PagePageWhatsAppNumberVerificationPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use @@ -21,15 +22,15 @@ access_token = '' app_secret = '' app_id = '' -id = '' +id = '' FacebookAds.configure do |config| config.access_token = access_token config.app_secret = app_secret end -business = FacebookAds::Business.get(id) -owned_product_catalogs = business.owned_product_catalogs.create({ - name: 'Test Destination Catalog', - vertical: 'destinations', +page = FacebookAds::Page.get(id) +page_whatsapp_number_verification = page.page_whatsapp_number_verification.create({ + whatsapp_number: '123456789', + verification_code: '12345', }) \ No newline at end of file diff --git a/examples/PagePhotosEdge.rb b/examples/PagePhotosEdge.rb index dc714c6d..f6431f69 100644 --- a/examples/PagePhotosEdge.rb +++ b/examples/PagePhotosEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePhotosPost.rb b/examples/PagePhotosPost.rb index b9c60003..5f8bd905 100644 --- a/examples/PagePhotosPost.rb +++ b/examples/PagePhotosPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePictureEdge.rb b/examples/PagePictureEdge.rb index 6cab8992..552d6e9e 100644 --- a/examples/PagePictureEdge.rb +++ b/examples/PagePictureEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostCommentsEdge.rb b/examples/PagePostCommentsEdge.rb index 12502a63..f0d1f186 100644 --- a/examples/PagePostCommentsEdge.rb +++ b/examples/PagePostCommentsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostCommentsPost.rb b/examples/PagePostCommentsPost.rb index 9ad652f8..b6cab3d8 100644 --- a/examples/PagePostCommentsPost.rb +++ b/examples/PagePostCommentsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostDelete.rb b/examples/PagePostDelete.rb index 9b9a21e5..b8e3e066 100644 --- a/examples/PagePostDelete.rb +++ b/examples/PagePostDelete.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostNode.rb b/examples/PagePostNode.rb index ade655c5..480028fd 100644 --- a/examples/PagePostNode.rb +++ b/examples/PagePostNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostPost.rb b/examples/PagePostPost.rb index b5cbcfa5..031d5ceb 100644 --- a/examples/PagePostPost.rb +++ b/examples/PagePostPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostsEdge.rb b/examples/PagePostsEdge.rb index 5eb02285..845f567d 100644 --- a/examples/PagePostsEdge.rb +++ b/examples/PagePostsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PagePostsEdgePagePostCreateCarousel.rb b/examples/PagePostsEdgePagePostCreateCarousel.rb index 4945ff55..28afb06d 100644 --- a/examples/PagePostsEdgePagePostCreateCarousel.rb +++ b/examples/PagePostsEdgePagePostCreateCarousel.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageRolesEdge.rb b/examples/PageRolesEdge.rb index a71c76ba..0f13d16e 100644 --- a/examples/PageRolesEdge.rb +++ b/examples/PageRolesEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/PageSubscribedAppsPost.rb b/examples/PageSubscribedAppsPost.rb index f1c9cca3..5fc012c6 100644 --- a/examples/PageSubscribedAppsPost.rb +++ b/examples/PageSubscribedAppsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/ProductCatalogEventStatsEdge.rb b/examples/ProductCatalogEventStatsEdge.rb index 24f1fb6b..b315b9b5 100644 --- a/examples/ProductCatalogEventStatsEdge.rb +++ b/examples/ProductCatalogEventStatsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/ProductCatalogHotelsPost.rb b/examples/ProductCatalogHotelsPost.rb index e0157ac2..982ec382 100644 --- a/examples/ProductCatalogHotelsPost.rb +++ b/examples/ProductCatalogHotelsPost.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.rb b/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.rb index 7270ea4e..d3c6f579 100644 --- a/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.rb +++ b/examples/ProductCatalogHotelsPostUpdateHotelsCatalogSettings.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/ProductCatalogProductFeedsPostProductFeed.rb b/examples/ProductCatalogProductFeedsPostProductFeed.rb index 54c96ada..72179c66 100644 --- a/examples/ProductCatalogProductFeedsPostProductFeed.rb +++ b/examples/ProductCatalogProductFeedsPostProductFeed.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/ProductCatalogProductSetsPostHotelSet.rb b/examples/ProductCatalogProductSetsPostHotelSet.rb index 04dd4ec9..8cdc2231 100644 --- a/examples/ProductCatalogProductSetsPostHotelSet.rb +++ b/examples/ProductCatalogProductSetsPostHotelSet.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/ProductCatalogProductSetsPostProductSet.rb b/examples/ProductCatalogProductSetsPostProductSet.rb index 4abdfa52..60289d52 100644 --- a/examples/ProductCatalogProductSetsPostProductSet.rb +++ b/examples/ProductCatalogProductSetsPostProductSet.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/UserAccountsEdge.rb b/examples/UserAccountsEdge.rb index 8e723f2a..65b67eee 100644 --- a/examples/UserAccountsEdge.rb +++ b/examples/UserAccountsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/UserAdAccountsEdge.rb b/examples/UserAdAccountsEdge.rb index 3b71d7e2..eeba3949 100644 --- a/examples/UserAdAccountsEdge.rb +++ b/examples/UserAdAccountsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/UserLeadGenInfoNode.rb b/examples/UserLeadGenInfoNode.rb index 2d4d9dd2..f0f88b3d 100644 --- a/examples/UserLeadGenInfoNode.rb +++ b/examples/UserLeadGenInfoNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/UserNode.rb b/examples/UserNode.rb index cb9d157a..f396dc66 100644 --- a/examples/UserNode.rb +++ b/examples/UserNode.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/examples/VideoThumbnailsEdge.rb b/examples/VideoThumbnailsEdge.rb index 5c0586b3..8b0123f9 100644 --- a/examples/VideoThumbnailsEdge.rb +++ b/examples/VideoThumbnailsEdge.rb @@ -1,4 +1,5 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. # # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, # copy, modify, and distribute this software in source code or binary form for use diff --git a/lib/facebook_ads/ad_objects/ad_account.rb b/lib/facebook_ads/ad_objects/ad_account.rb index d3dae9f7..a5abe6bb 100644 --- a/lib/facebook_ads/ad_objects/ad_account.rb +++ b/lib/facebook_ads/ad_objects/ad_account.rb @@ -56,6 +56,7 @@ class AdAccount < AdObject "JPY", "KES", "KRW", + "LKR", "MOP", "MXN", "MYR", @@ -157,6 +158,7 @@ class AdAccount < AdObject field :capabilities, { list: 'string' } field :created_time, 'datetime' field :currency, 'string' + field :custom_audience_info, 'AdAccountCustomAudience' field :disable_reason, 'int' field :end_advertiser, 'string' field :end_advertiser_name, 'string' @@ -178,6 +180,7 @@ class AdAccount < AdObject field :is_personal, 'int' field :is_prepay_account, 'bool' field :is_tax_id_required, 'bool' + field :liable_address, 'CrmAddress' field :line_numbers, { list: 'int' } field :media_agency, 'string' field :min_campaign_group_spend_cap, 'string' @@ -185,9 +188,12 @@ class AdAccount < AdObject field :name, 'string' field :offsite_pixels_tos_accepted, 'bool' field :owner, 'string' + field :owner_business, 'Business' field :partner, 'string' field :rf_spec, 'ReachFrequencySpec' + field :send_bill_to_address, 'CrmAddress' field :show_checkout_experience, 'bool' + field :sold_to_address, 'CrmAddress' field :spend_cap, 'string' field :tax_id, 'string' field :tax_id_status, 'int' @@ -198,6 +204,7 @@ class AdAccount < AdObject field :tos_accepted, 'hash' field :user_tasks, { list: 'string' } field :user_tos_accepted, 'hash' + field :viewable_business, 'Business' has_no_delete has_edge :activities do |edge| @@ -235,6 +242,12 @@ class AdAccount < AdObject end end + has_edge :ad_saved_keywords do |edge| + edge.get do |api| + api.has_param :fields, { list: 'string' } + end + end + has_edge :ad_studies do |edge| edge.get 'AdStudy' end @@ -257,6 +270,7 @@ class AdAccount < AdObject api.has_param :call_to_action, 'object' api.has_param :categorization_criteria, { enum: -> { AdCreative::CATEGORIZATION_CRITERIA }} api.has_param :category_media_source, { enum: -> { AdCreative::CATEGORY_MEDIA_SOURCE }} + api.has_param :degrees_of_freedom_spec, 'hash' api.has_param :destination_set_id, 'string' api.has_param :dynamic_ad_voice, { enum: -> { AdCreative::DYNAMIC_AD_VOICE }} api.has_param :enable_launch_instant_app, 'bool' @@ -267,7 +281,6 @@ class AdAccount < AdObject api.has_param :instagram_actor_id, 'string' api.has_param :instagram_permalink_url, 'string' api.has_param :instagram_user_id, 'string' - api.has_param :instant_checkout_setting, { enum: -> { AdCreative::INSTANT_CHECKOUT_SETTING }} api.has_param :interactive_components_spec, 'hash' api.has_param :is_dco_internal, 'bool' api.has_param :link_og_id, 'string' @@ -314,6 +327,7 @@ class AdAccount < AdObject api.has_param :minheight, 'int' api.has_param :minwidth, 'int' api.has_param :name, 'string' + api.has_param :selected_hashes, { list: 'string' } end edge.post list: 'AdImage' do |api| api.has_param :bytes, 'object' @@ -393,6 +407,16 @@ class AdAccount < AdObject end end + has_edge :ads_reporting_mmm_reports do |edge| + edge.get do |api| + api.has_param :filtering, { list: 'hash' } + end + end + + has_edge :ads_reporting_mmm_schedulers do |edge| + edge.get + end + has_edge :ads_volume do |edge| edge.get 'AdAccountAdVolume' do |api| api.has_param :page_id, 'int' @@ -415,15 +439,15 @@ class AdAccount < AdObject api.has_param :is_completed, 'bool' api.has_param :time_range, 'object' end - edge.post do |api| + edge.post 'AdSet' do |api| api.has_param :adlabels, { list: 'object' } api.has_param :adset_schedule, { list: 'object' } api.has_param :attribution_spec, { list: 'hash' } api.has_param :bid_adjustments, 'object' api.has_param :bid_amount, 'int' api.has_param :bid_constraints, 'hash' - api.has_param :bid_strategy, { enum: %w{COST_CAP LOWEST_COST_WITHOUT_CAP LOWEST_COST_WITH_BID_CAP }} - api.has_param :billing_event, { enum: %w{APP_INSTALLS CLICKS IMPRESSIONS LINK_CLICKS LISTING_INTERACTION NONE OFFER_CLAIMS PAGE_LIKES POST_ENGAGEMENT PURCHASE THRUPLAY }} + api.has_param :bid_strategy, { enum: -> { AdSet::BID_STRATEGY }} + api.has_param :billing_event, { enum: -> { AdSet::BILLING_EVENT }} api.has_param :campaign_id, 'string' api.has_param :campaign_spec, 'object' api.has_param :creative_sequence, { list: 'string' } @@ -432,36 +456,36 @@ class AdAccount < AdObject api.has_param :daily_min_spend_target, 'int' api.has_param :daily_spend_cap, 'int' api.has_param :date_format, 'string' - api.has_param :destination_type, { enum: %w{APP APPLINKS_AUTOMATIC FACEBOOK MESSENGER UNDEFINED WEBSITE }} + api.has_param :destination_type, { enum: -> { AdSet::DESTINATION_TYPE }} api.has_param :end_time, 'datetime' - api.has_param :execution_options, { list: { enum: %w{include_recommendations validate_only }} } + api.has_param :execution_options, { list: { enum: -> { AdSet::EXECUTION_OPTIONS }} } api.has_param :existing_customer_budget_percentage, 'int' api.has_param :frequency_control_specs, { list: 'object' } - api.has_param :full_funnel_exploration_mode, { enum: %w{EXTENDED_EXPLORATION LIMITED_EXPLORATION NONE_EXPLORATION }} + api.has_param :full_funnel_exploration_mode, { enum: -> { AdSet::FULL_FUNNEL_EXPLORATION_MODE }} api.has_param :is_dynamic_creative, 'bool' api.has_param :lifetime_budget, 'int' api.has_param :lifetime_imps, 'int' api.has_param :lifetime_min_spend_target, 'int' api.has_param :lifetime_spend_cap, 'int' api.has_param :line_number, 'int' - api.has_param :multi_optimization_goal_weight, { enum: %w{BALANCED PREFER_EVENT PREFER_INSTALL UNDEFINED }} + api.has_param :multi_optimization_goal_weight, { enum: -> { AdSet::MULTI_OPTIMIZATION_GOAL_WEIGHT }} api.has_param :name, 'string' - api.has_param :optimization_goal, { enum: %w{AD_RECALL_LIFT APP_INSTALLS APP_INSTALLS_AND_OFFSITE_CONVERSIONS CONVERSATIONS DERIVED_EVENTS ENGAGED_USERS EVENT_RESPONSES IMPRESSIONS IN_APP_VALUE LANDING_PAGE_VIEWS LEAD_GENERATION LINK_CLICKS NONE OFFSITE_CONVERSIONS PAGE_LIKES POST_ENGAGEMENT QUALITY_CALL QUALITY_LEAD REACH THRUPLAY VALUE VISIT_INSTAGRAM_PROFILE }} - api.has_param :optimization_sub_event, { enum: %w{NONE TRAVEL_INTENT TRAVEL_INTENT_BUCKET_01 TRAVEL_INTENT_BUCKET_02 TRAVEL_INTENT_BUCKET_03 TRAVEL_INTENT_BUCKET_04 TRAVEL_INTENT_BUCKET_05 TRAVEL_INTENT_NO_DESTINATION_INTENT TRIP_CONSIDERATION VIDEO_SOUND_ON }} + api.has_param :optimization_goal, { enum: -> { AdSet::OPTIMIZATION_GOAL }} + api.has_param :optimization_sub_event, { enum: -> { AdSet::OPTIMIZATION_SUB_EVENT }} api.has_param :pacing_type, { list: 'string' } api.has_param :promoted_object, 'object' api.has_param :rb_prediction_id, 'string' api.has_param :rf_prediction_id, 'string' api.has_param :source_adset_id, 'string' api.has_param :start_time, 'datetime' - api.has_param :status, { enum: %w{ACTIVE ARCHIVED DELETED PAUSED }} + api.has_param :status, { enum: -> { AdSet::STATUS }} api.has_param :targeting, 'Targeting' api.has_param :time_based_ad_rotation_id_blocks, { list: { list: 'int' } } api.has_param :time_based_ad_rotation_intervals, { list: 'int' } api.has_param :time_start, 'datetime' api.has_param :time_stop, 'datetime' api.has_param :topline_id, 'string' - api.has_param :tune_for_category, { enum: %w{CREDIT EMPLOYMENT HOUSING ISSUES_ELECTIONS_POLITICS NONE ONLINE_GAMBLING_AND_GAMING }} + api.has_param :tune_for_category, { enum: -> { AdSet::TUNE_FOR_CATEGORY }} api.has_param :upstream_events, 'hash' end end @@ -477,7 +501,7 @@ class AdAccount < AdObject edge.get 'AdsPixel' do |api| api.has_param :sort_by, { enum: -> { AdsPixel::SORT_BY }} end - edge.post do |api| + edge.post 'AdsPixel' do |api| api.has_param :name, 'string' end end @@ -697,25 +721,6 @@ class AdAccount < AdObject edge.get 'IgUser' end - has_edge :content_delivery_report do |edge| - edge.get 'ContentDeliveryReport' do |api| - api.has_param :end_date, 'datetime' - api.has_param :page_id, 'int' - api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }} - api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }} - api.has_param :start_date, 'datetime' - api.has_param :summary, 'bool' - end - end - - has_edge :create_and_apply_publisher_block_list do |edge| - edge.post do |api| - api.has_param :is_auto_blocking_on, 'bool' - api.has_param :name, 'string' - api.has_param :publisher_urls, { list: 'string' } - end - end - has_edge :customaudiences do |edge| edge.get 'CustomAudience' do |api| api.has_param :business_id, 'string' @@ -882,6 +887,7 @@ class AdAccount < AdObject api.has_param :campaign_group_id, 'int' api.has_param :campaign_group_status, { enum: %w{ACTIVE ADSET_PAUSED ARCHIVED CAMPAIGN_PAUSED DELETED DISAPPROVED IN_PROCESS PAUSED PENDING_BILLING_INFO PENDING_REVIEW PREAPPROVED WITH_ISSUES }} api.has_param :conversion_domain, 'string' + api.has_param :custom_event_type, { enum: %w{ADD_TO_CART CONTENT_VIEW PURCHASE }} api.has_param :end_time, 'int' api.has_param :lifetime_budget, 'int' api.has_param :override_creative_text, 'string' @@ -1002,6 +1008,7 @@ class AdAccount < AdObject api.has_param :is_reserved_buying, 'bool' api.has_param :num_curve_points, 'int' api.has_param :objective, 'string' + api.has_param :optimization_goal, 'string' api.has_param :prediction_mode, 'int' api.has_param :reach, 'int' api.has_param :rf_prediction_id, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_account_activity.rb b/lib/facebook_ads/ad_objects/ad_account_activity.rb deleted file mode 100644 index 7331e5b0..00000000 --- a/lib/facebook_ads/ad_objects/ad_account_activity.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class AdAccountActivity < AdObject - - field :created_by, 'Profile' - field :created_time, 'datetime' - field :credit_new, 'object' - field :credit_old, 'object' - field :currency_new, 'string' - field :currency_old, 'string' - field :daily_spend_limit_new, 'object' - field :daily_spend_limit_old, 'object' - field :event_time, 'datetime' - field :event_type, 'string' - field :funding_id_new, 'string' - field :funding_id_old, 'string' - field :grace_period_time_new, 'int' - field :grace_period_time_old, 'int' - field :id, 'string' - field :manager_id_new, 'Profile' - field :manager_id_old, 'Profile' - field :name_new, 'string' - field :name_old, 'string' - field :spend_cap_new, 'object' - field :spend_cap_old, 'object' - field :status_new, 'string' - field :status_old, 'string' - field :terms_new, 'int' - field :terms_old, 'int' - field :tier_new, 'string' - field :tier_old, 'string' - field :time_updated_new, 'datetime' - field :time_updated_old, 'datetime' - has_no_post - has_no_delete - - end -end diff --git a/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb b/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb index 0d824afb..d25de845 100644 --- a/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +++ b/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb @@ -31,6 +31,7 @@ class AdAccountAdRulesHistory < AdObject "CHANGED_BID", "CHANGED_BUDGET", "EMAIL", + "ENABLE_AUTOFLOW", "ENDPOINT_PINGED", "ERROR", "FACEBOOK_NOTIFICATION_SENT", diff --git a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb index e95ec4bf..9a7c2098 100644 --- a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +++ b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb @@ -32,18 +32,32 @@ class AdAccountAdVolume < AdObject "AGGREGATED_BUDGET_LIMITED", "AGGREGATED_COST_LIMITED", "AUCTION_OVERLAP", + "AUCTION_OVERLAP_CONSOLIDATION", "AUDIENCE_EXPANSION", "AUTOFLOW_OPT_IN", + "AUTOMATIC_PLACEMENTS", + "CAPI", + "COST_GOAL", + "COST_GOAL_BUDGET_LIMITED", + "COST_GOAL_CPA_LIMITED", + "CREATIVE_BADGE", "CREATIVE_FATIGUE", "CREATIVE_LIMITED", "DEAD_LINK", "ECOSYSTEM_BID_REDUCE_L1_CARDINALITY", "FRAGMENTATION", "LEARNING_LIMITED", + "LOW_OUTCOME", + "MULTI_TEXT", + "MUSIC", + "PREDICTIVE_CREATIVE_LIMITED", + "REVERT", + "SIGNALS_GROWTH_CAPI", "SYD_TEST_MODE", "TOP_ADSETS_WITH_ADS_UNDER_CAP", "TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP", "UNECONOMICAL_ADS_THROTTLING", + "UNUSED_BUDGET", "ZERO_IMPRESSION", ] diff --git a/lib/facebook_ads/ad_objects/native_offer_discount.rb b/lib/facebook_ads/ad_objects/ad_account_custom_audience.rb similarity index 87% rename from lib/facebook_ads/ad_objects/native_offer_discount.rb rename to lib/facebook_ads/ad_objects/ad_account_custom_audience.rb index 299d8d8f..4fcd5029 100644 --- a/lib/facebook_ads/ad_objects/native_offer_discount.rb +++ b/lib/facebook_ads/ad_objects/ad_account_custom_audience.rb @@ -25,14 +25,11 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class NativeOfferDiscount < AdObject + class AdAccountCustomAudience < AdObject - field :currency, 'string' - field :override, 'string' - field :text, 'string' - field :type, 'string' - field :value1, 'double' - field :value2, 'double' + field :audience_type_param_name, 'string' + field :existing_customer_tag, 'string' + field :new_customer_tag, 'string' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/ad_account_default_objective.rb b/lib/facebook_ads/ad_objects/ad_account_default_objective.rb index cede927e..602480fe 100644 --- a/lib/facebook_ads/ad_objects/ad_account_default_objective.rb +++ b/lib/facebook_ads/ad_objects/ad_account_default_objective.rb @@ -29,20 +29,23 @@ class AdAccountDefaultObjective < AdObject DEFAULT_OBJECTIVE_FOR_USER = [ "APP_INSTALLS", "BRAND_AWARENESS", - "CANVAS_APP_ENGAGEMENT", - "CANVAS_APP_INSTALLS", "EVENT_RESPONSES", "LEAD_GENERATION", "LINK_CLICKS", "LOCAL_AWARENESS", "MESSAGES", - "MOBILE_APP_ENGAGEMENT", - "MOBILE_APP_INSTALLS", - "NONE", "OFFER_CLAIMS", + "OUTCOME_APP_PROMOTION", + "OUTCOME_AWARENESS", + "OUTCOME_ENGAGEMENT", + "OUTCOME_LEADS", + "OUTCOME_SALES", + "OUTCOME_TRAFFIC", "PAGE_LIKES", "POST_ENGAGEMENT", "PRODUCT_CATALOG_SALES", + "REACH", + "STORE_VISITS", "VIDEO_VIEWS", "WEBSITE_CONVERSIONS", ] @@ -50,20 +53,23 @@ class AdAccountDefaultObjective < AdObject OBJECTIVE_FOR_LEVEL = [ "APP_INSTALLS", "BRAND_AWARENESS", - "CANVAS_APP_ENGAGEMENT", - "CANVAS_APP_INSTALLS", "EVENT_RESPONSES", "LEAD_GENERATION", "LINK_CLICKS", "LOCAL_AWARENESS", "MESSAGES", - "MOBILE_APP_ENGAGEMENT", - "MOBILE_APP_INSTALLS", - "NONE", "OFFER_CLAIMS", + "OUTCOME_APP_PROMOTION", + "OUTCOME_AWARENESS", + "OUTCOME_ENGAGEMENT", + "OUTCOME_LEADS", + "OUTCOME_SALES", + "OUTCOME_TRAFFIC", "PAGE_LIKES", "POST_ENGAGEMENT", "PRODUCT_CATALOG_SALES", + "REACH", + "STORE_VISITS", "VIDEO_VIEWS", "WEBSITE_CONVERSIONS", ] diff --git a/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb b/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb index 7deb710e..49932f51 100644 --- a/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +++ b/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb @@ -39,6 +39,8 @@ class AdAccountDeliveryEstimate < AdObject "LANDING_PAGE_VIEWS", "LEAD_GENERATION", "LINK_CLICKS", + "MESSAGING_APPOINTMENT_CONVERSION", + "MESSAGING_PURCHASE_CONVERSION", "NONE", "OFFSITE_CONVERSIONS", "PAGE_LIKES", diff --git a/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb b/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb index 5e0ebf8c..f6f0e85c 100644 --- a/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +++ b/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb @@ -170,6 +170,7 @@ class AdAccountTargetingUnified < AdObject "relationship_statuses", "rtb_flag", "site_category", + "targeting_automation", "targeting_optimization", "targeting_relaxation_types", "timezones", @@ -224,6 +225,12 @@ class AdAccountTargetingUnified < AdObject "LOCAL_AWARENESS", "MESSAGES", "OFFER_CLAIMS", + "OUTCOME_APP_PROMOTION", + "OUTCOME_AWARENESS", + "OUTCOME_ENGAGEMENT", + "OUTCOME_LEADS", + "OUTCOME_SALES", + "OUTCOME_TRAFFIC", "PAGE_LIKES", "POST_ENGAGEMENT", "PRODUCT_CATALOG_SALES", diff --git a/lib/facebook_ads/ad_objects/ad_activity.rb b/lib/facebook_ads/ad_objects/ad_activity.rb index f1dc48bd..6b762599 100644 --- a/lib/facebook_ads/ad_objects/ad_activity.rb +++ b/lib/facebook_ads/ad_objects/ad_activity.rb @@ -63,6 +63,7 @@ class AdActivity < AdObject "funding_event_initiated", "funding_event_successful", "lifetime_budget_spent", + "merge_campaigns", "receive_audience", "remove_funding_source", "remove_shared_audience", diff --git a/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb b/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb index 7289c754..d8f0bece 100644 --- a/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb @@ -29,6 +29,7 @@ class AdAssetFeedSpec < AdObject CALL_TO_ACTION_TYPES = [ "ADD_TO_CART", "APPLY_NOW", + "AUDIO_CALL", "BOOK_TRAVEL", "BUY", "BUY_NOW", @@ -52,6 +53,7 @@ class AdAssetFeedSpec < AdObject "GET_OFFER_VIEW", "GET_QUOTE", "GET_SHOWTIMES", + "GET_STARTED", "INSTALL_APP", "INSTALL_MOBILE_APP", "LEARN_MORE", @@ -62,12 +64,14 @@ class AdAssetFeedSpec < AdObject "MOBILE_DOWNLOAD", "MOMENTS", "NO_BUTTON", + "OPEN_INSTANT_APP", "OPEN_LINK", "ORDER_NOW", "PAY_TO_ACCESS", "PLAY_GAME", "PLAY_GAME_ON_FACEBOOK", "PURCHASE_GIFT_CARDS", + "RAISE_MONEY", "RECORD_NOW", "REFER_FRIENDS", "REQUEST_TIME", @@ -76,6 +80,7 @@ class AdAssetFeedSpec < AdObject "SELL_NOW", "SEND_A_GIFT", "SEND_GIFT_MONEY", + "SEND_UPDATES", "SHARE", "SHOP_NOW", "SIGN_UP", @@ -112,7 +117,6 @@ class AdAssetFeedSpec < AdObject field :images, { list: 'AdAssetFeedSpecImage' } field :link_urls, { list: 'AdAssetFeedSpecLinkUrl' } field :optimization_type, 'string' - field :posts, { list: 'object' } field :titles, { list: 'AdAssetFeedSpecTitle' } field :videos, { list: 'AdAssetFeedSpecVideo' } has_no_id diff --git a/lib/facebook_ads/ad_objects/ad_campaign_activity.rb b/lib/facebook_ads/ad_objects/ad_campaign_activity.rb deleted file mode 100644 index 0f89a680..00000000 --- a/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class AdCampaignActivity < AdObject - BID_STRATEGY_NEW = [ - "COST_CAP", - "LOWEST_COST_WITHOUT_CAP", - "LOWEST_COST_WITH_BID_CAP", - ] - - BID_STRATEGY_OLD = [ - "COST_CAP", - "LOWEST_COST_WITHOUT_CAP", - "LOWEST_COST_WITH_BID_CAP", - ] - - BILLING_EVENT_NEW = [ - "APP_INSTALLS", - "CLICKS", - "IMPRESSIONS", - "LINK_CLICKS", - "LISTING_INTERACTION", - "NONE", - "OFFER_CLAIMS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "PURCHASE", - "THRUPLAY", - ] - - BILLING_EVENT_OLD = [ - "APP_INSTALLS", - "CLICKS", - "IMPRESSIONS", - "LINK_CLICKS", - "LISTING_INTERACTION", - "NONE", - "OFFER_CLAIMS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "PURCHASE", - "THRUPLAY", - ] - - OPTIMIZATION_GOAL_NEW = [ - "AD_RECALL_LIFT", - "APP_INSTALLS", - "APP_INSTALLS_AND_OFFSITE_CONVERSIONS", - "CONVERSATIONS", - "DERIVED_EVENTS", - "ENGAGED_USERS", - "EVENT_RESPONSES", - "IMPRESSIONS", - "IN_APP_VALUE", - "LANDING_PAGE_VIEWS", - "LEAD_GENERATION", - "LINK_CLICKS", - "NONE", - "OFFSITE_CONVERSIONS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "QUALITY_CALL", - "QUALITY_LEAD", - "REACH", - "THRUPLAY", - "VALUE", - "VISIT_INSTAGRAM_PROFILE", - ] - - OPTIMIZATION_GOAL_OLD = [ - "AD_RECALL_LIFT", - "APP_INSTALLS", - "APP_INSTALLS_AND_OFFSITE_CONVERSIONS", - "CONVERSATIONS", - "DERIVED_EVENTS", - "ENGAGED_USERS", - "EVENT_RESPONSES", - "IMPRESSIONS", - "IN_APP_VALUE", - "LANDING_PAGE_VIEWS", - "LEAD_GENERATION", - "LINK_CLICKS", - "NONE", - "OFFSITE_CONVERSIONS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "QUALITY_CALL", - "QUALITY_LEAD", - "REACH", - "THRUPLAY", - "VALUE", - "VISIT_INSTAGRAM_PROFILE", - ] - - - field :auto_create_lookalike_new, 'bool' - field :auto_create_lookalike_old, 'bool' - field :bid_adjustments_spec_new, 'string' - field :bid_adjustments_spec_old, 'string' - field :bid_amount_new, 'int' - field :bid_amount_old, 'int' - field :bid_constraints_new, 'object' - field :bid_constraints_old, 'object' - field :bid_info_new, 'hash' - field :bid_info_old, 'hash' - field :bid_strategy_new, { enum: -> { BID_STRATEGY_NEW }} - field :bid_strategy_old, { enum: -> { BID_STRATEGY_OLD }} - field :bid_type_new, 'string' - field :bid_type_old, 'string' - field :billing_event_new, { enum: -> { BILLING_EVENT_NEW }} - field :billing_event_old, { enum: -> { BILLING_EVENT_OLD }} - field :budget_limit_new, 'object' - field :budget_limit_old, 'object' - field :created_time, 'datetime' - field :daily_impressions_new, 'int' - field :daily_impressions_old, 'int' - field :dco_mode_new, 'string' - field :dco_mode_old, 'string' - field :delivery_behavior_new, 'string' - field :delivery_behavior_old, 'string' - field :destination_type_new, 'string' - field :destination_type_old, 'string' - field :event_time, 'datetime' - field :event_type, 'string' - field :id, 'string' - field :invoicing_limit_new, 'int' - field :invoicing_limit_old, 'int' - field :min_spend_target_new, 'object' - field :min_spend_target_old, 'object' - field :name_new, 'string' - field :name_old, 'string' - field :optimization_goal_new, { enum: -> { OPTIMIZATION_GOAL_NEW }} - field :optimization_goal_old, { enum: -> { OPTIMIZATION_GOAL_OLD }} - field :pacing_type_new, 'int' - field :pacing_type_old, 'int' - field :promoted_object_id_new, 'string' - field :promoted_object_id_old, 'string' - field :run_status_new, 'string' - field :run_status_old, 'string' - field :schedule_new, { list: 'object' } - field :schedule_old, { list: 'object' } - field :spend_cap_new, 'object' - field :spend_cap_old, 'object' - field :start_time_new, 'datetime' - field :start_time_old, 'datetime' - field :stop_time_new, 'datetime' - field :stop_time_old, 'datetime' - field :targeting_expansion_new, 'object' - field :targeting_expansion_old, 'object' - field :targeting_new, 'object' - field :targeting_old, 'object' - field :updated_time_new, 'datetime' - field :updated_time_old, 'datetime' - has_no_post - has_no_delete - - end -end diff --git a/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb b/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb index cfbb2c84..90536054 100644 --- a/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +++ b/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb @@ -39,6 +39,8 @@ class AdCampaignDeliveryEstimate < AdObject "LANDING_PAGE_VIEWS", "LEAD_GENERATION", "LINK_CLICKS", + "MESSAGING_APPOINTMENT_CONVERSION", + "MESSAGING_PURCHASE_CONVERSION", "NONE", "OFFSITE_CONVERSIONS", "PAGE_LIKES", diff --git a/lib/facebook_ads/ad_objects/ad_campaign_group_activity.rb b/lib/facebook_ads/ad_objects/ad_campaign_group_activity.rb deleted file mode 100644 index 428361bb..00000000 --- a/lib/facebook_ads/ad_objects/ad_campaign_group_activity.rb +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class AdCampaignGroupActivity < AdObject - OBJECTIVE_NEW = [ - "APP_INSTALLS", - "BRAND_AWARENESS", - "CANVAS_APP_ENGAGEMENT", - "CANVAS_APP_INSTALLS", - "EVENT_RESPONSES", - "LEAD_GENERATION", - "LINK_CLICKS", - "LOCAL_AWARENESS", - "MESSAGES", - "MOBILE_APP_ENGAGEMENT", - "MOBILE_APP_INSTALLS", - "NONE", - "OFFER_CLAIMS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "PRODUCT_CATALOG_SALES", - "VIDEO_VIEWS", - "WEBSITE_CONVERSIONS", - ] - - OBJECTIVE_OLD = [ - "APP_INSTALLS", - "BRAND_AWARENESS", - "CANVAS_APP_ENGAGEMENT", - "CANVAS_APP_INSTALLS", - "EVENT_RESPONSES", - "LEAD_GENERATION", - "LINK_CLICKS", - "LOCAL_AWARENESS", - "MESSAGES", - "MOBILE_APP_ENGAGEMENT", - "MOBILE_APP_INSTALLS", - "NONE", - "OFFER_CLAIMS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "PRODUCT_CATALOG_SALES", - "VIDEO_VIEWS", - "WEBSITE_CONVERSIONS", - ] - - - field :budget_limit_new, 'object' - field :budget_limit_old, 'object' - field :buying_type_new, 'string' - field :buying_type_old, 'string' - field :event_time, 'datetime' - field :event_type, 'string' - field :id, 'string' - field :is_autobid_new, 'bool' - field :is_autobid_old, 'bool' - field :is_average_price_pacing_new, 'bool' - field :is_average_price_pacing_old, 'bool' - field :name_new, 'string' - field :name_old, 'string' - field :objective_new, { enum: -> { OBJECTIVE_NEW }} - field :objective_old, { enum: -> { OBJECTIVE_OLD }} - field :pacing_type, 'int' - field :run_status_new, 'string' - field :run_status_old, 'string' - field :spend_cap_new, 'int' - field :spend_cap_old, 'int' - field :time_created, 'datetime' - field :time_updated_new, 'datetime' - field :time_updated_old, 'datetime' - has_no_post - has_no_delete - - end -end diff --git a/lib/facebook_ads/ad_objects/ad_creative.rb b/lib/facebook_ads/ad_objects/ad_creative.rb index e6e11def..32d56ee6 100644 --- a/lib/facebook_ads/ad_objects/ad_creative.rb +++ b/lib/facebook_ads/ad_objects/ad_creative.rb @@ -29,6 +29,7 @@ class AdCreative < AdObject CALL_TO_ACTION_TYPE = [ "ADD_TO_CART", "APPLY_NOW", + "AUDIO_CALL", "BOOK_TRAVEL", "BUY", "BUY_NOW", @@ -52,6 +53,7 @@ class AdCreative < AdObject "GET_OFFER_VIEW", "GET_QUOTE", "GET_SHOWTIMES", + "GET_STARTED", "INSTALL_APP", "INSTALL_MOBILE_APP", "LEARN_MORE", @@ -62,12 +64,14 @@ class AdCreative < AdObject "MOBILE_DOWNLOAD", "MOMENTS", "NO_BUTTON", + "OPEN_INSTANT_APP", "OPEN_LINK", "ORDER_NOW", "PAY_TO_ACCESS", "PLAY_GAME", "PLAY_GAME_ON_FACEBOOK", "PURCHASE_GIFT_CARDS", + "RAISE_MONEY", "RECORD_NOW", "REFER_FRIENDS", "REQUEST_TIME", @@ -76,6 +80,7 @@ class AdCreative < AdObject "SELL_NOW", "SEND_A_GIFT", "SEND_GIFT_MONEY", + "SEND_UPDATES", "SHARE", "SHOP_NOW", "SIGN_UP", @@ -149,11 +154,6 @@ class AdCreative < AdObject "STORY_OWNER", ] - INSTANT_CHECKOUT_SETTING = [ - "off", - "on", - ] - OPERATOR = [ "ALL", "ANY", @@ -174,6 +174,7 @@ class AdCreative < AdObject field :categorization_criteria, 'string' field :category_media_source, 'string' field :collaborative_ads_lsb_image_bank_id, 'string' + field :degrees_of_freedom_spec, 'AdCreativeDegreesOfFreedomSpec' field :destination_set_id, 'string' field :dynamic_ad_voice, 'string' field :effective_authorization_category, 'string' @@ -222,7 +223,6 @@ class AdCreative < AdObject field :video_id, 'string' field :call_to_action, 'object' field :image_file, 'string' - field :instant_checkout_setting, { enum: -> { INSTANT_CHECKOUT_SETTING }} field :is_dco_internal, 'bool' has_edge :adlabels do |edge| diff --git a/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb b/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb new file mode 100644 index 00000000..f6a02f59 --- /dev/null +++ b/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb @@ -0,0 +1,44 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class AdCreativeDegreesOfFreedomSpec < AdObject + + field :ad_handle_type, 'string' + field :creative_features_spec, 'object' + field :degrees_of_freedom_type, 'string' + field :image_transformation_types, { list: 'string' } + field :multi_media_transformation_type, 'string' + field :stories_transformation_types, { list: 'string' } + field :text_transformation_types, { list: 'string' } + field :video_transformation_types, { list: 'string' } + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb b/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb index aa17a182..95c8f6b7 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb @@ -29,6 +29,7 @@ class AdCreativeLinkDataCallToAction < AdObject TYPE = [ "ADD_TO_CART", "APPLY_NOW", + "AUDIO_CALL", "BOOK_TRAVEL", "BUY", "BUY_NOW", @@ -52,6 +53,7 @@ class AdCreativeLinkDataCallToAction < AdObject "GET_OFFER_VIEW", "GET_QUOTE", "GET_SHOWTIMES", + "GET_STARTED", "INSTALL_APP", "INSTALL_MOBILE_APP", "LEARN_MORE", @@ -62,12 +64,14 @@ class AdCreativeLinkDataCallToAction < AdObject "MOBILE_DOWNLOAD", "MOMENTS", "NO_BUTTON", + "OPEN_INSTANT_APP", "OPEN_LINK", "ORDER_NOW", "PAY_TO_ACCESS", "PLAY_GAME", "PLAY_GAME_ON_FACEBOOK", "PURCHASE_GIFT_CARDS", + "RAISE_MONEY", "RECORD_NOW", "REFER_FRIENDS", "REQUEST_TIME", @@ -76,6 +80,7 @@ class AdCreativeLinkDataCallToAction < AdObject "SELL_NOW", "SEND_A_GIFT", "SEND_GIFT_MONEY", + "SEND_UPDATES", "SHARE", "SHOP_NOW", "SIGN_UP", diff --git a/lib/facebook_ads/ad_objects/ad_image.rb b/lib/facebook_ads/ad_objects/ad_image.rb index 6d97d9ca..89dbb391 100644 --- a/lib/facebook_ads/ad_objects/ad_image.rb +++ b/lib/facebook_ads/ad_objects/ad_image.rb @@ -43,6 +43,7 @@ class AdImage < AdObject field :name, 'string' field :original_height, 'int' field :original_width, 'int' + field :owner_business, 'Business' field :permalink_url, 'string' field :status, { enum: -> { STATUS }} field :updated_time, 'datetime' diff --git a/lib/facebook_ads/ad_objects/ad_monetization_property.rb b/lib/facebook_ads/ad_objects/ad_monetization_property.rb index 5504c08d..d222931b 100644 --- a/lib/facebook_ads/ad_objects/ad_monetization_property.rb +++ b/lib/facebook_ads/ad_objects/ad_monetization_property.rb @@ -27,6 +27,7 @@ module FacebookAds class AdMonetizationProperty < AdObject + field :owner_business, 'Business' field :id, 'string' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb b/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb index cf2caf8b..c637809a 100644 --- a/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb +++ b/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb @@ -29,6 +29,7 @@ class AdNetworkAnalyticsAsyncQueryResult < AdObject field :data, 'object' field :error, 'object' + field :omitted_results, { list: 'object' } field :query_id, 'string' field :results, { list: 'object' } field :status, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb b/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb index e089ee28..8176c0bc 100644 --- a/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +++ b/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb @@ -71,7 +71,6 @@ class AdNetworkAnalyticsSyncQueryResult < AdObject "FB_AD_NETWORK_REQUEST", "FB_AD_NETWORK_REVENUE", "FB_AD_NETWORK_SHOW_RATE", - "FB_AD_NETWORK_UA_SPEND", "FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE", "FB_AD_NETWORK_VIDEO_MRC", "FB_AD_NETWORK_VIDEO_MRC_RATE", @@ -91,6 +90,7 @@ class AdNetworkAnalyticsSyncQueryResult < AdObject ] + field :omitted_results, { list: 'object' } field :query_id, 'string' field :results, { list: 'object' } has_no_id diff --git a/lib/facebook_ads/ad_objects/ad_placement.rb b/lib/facebook_ads/ad_objects/ad_placement.rb index bf0ba303..7d423d72 100644 --- a/lib/facebook_ads/ad_objects/ad_placement.rb +++ b/lib/facebook_ads/ad_objects/ad_placement.rb @@ -33,6 +33,7 @@ class AdPlacement < AdObject field :google_display_format, 'string' field :id, 'string' field :name, 'string' + field :placement_group, 'object' field :platform, 'string' field :status, 'string' has_no_post diff --git a/lib/facebook_ads/ad_objects/ad_preview.rb b/lib/facebook_ads/ad_objects/ad_preview.rb index 315ec973..716388e2 100644 --- a/lib/facebook_ads/ad_objects/ad_preview.rb +++ b/lib/facebook_ads/ad_objects/ad_preview.rb @@ -34,19 +34,27 @@ class AdPreview < AdObject "BIZ_DISCO_FEED_MOBILE", "DESKTOP_FEED_STANDARD", "FACEBOOK_REELS_BANNER", + "FACEBOOK_REELS_BANNER_DESKTOP", "FACEBOOK_REELS_MOBILE", + "FACEBOOK_REELS_POSTLOOP", "FACEBOOK_REELS_STICKER", "FACEBOOK_STORY_MOBILE", "FACEBOOK_STORY_STICKER_MOBILE", "INSTAGRAM_EXPLORE_CONTEXTUAL", + "INSTAGRAM_EXPLORE_GRID_HOME", "INSTAGRAM_EXPLORE_IMMERSIVE", "INSTAGRAM_FEED_WEB", "INSTAGRAM_FEED_WEB_M_SITE", + "INSTAGRAM_PROFILE_FEED", "INSTAGRAM_REELS", "INSTAGRAM_REELS_OVERLAY", + "INSTAGRAM_SEARCH_CHAIN", + "INSTAGRAM_SEARCH_GRID", "INSTAGRAM_SHOP", "INSTAGRAM_STANDARD", "INSTAGRAM_STORY", + "INSTAGRAM_STORY_WEB", + "INSTAGRAM_STORY_WEB_M_SITE", "INSTANT_ARTICLE_RECIRCULATION_AD", "INSTANT_ARTICLE_STANDARD", "INSTREAM_BANNER_DESKTOP", diff --git a/lib/facebook_ads/ad_objects/ad_promoted_object.rb b/lib/facebook_ads/ad_objects/ad_promoted_object.rb index 5eff2f9b..c37c7406 100644 --- a/lib/facebook_ads/ad_objects/ad_promoted_object.rb +++ b/lib/facebook_ads/ad_objects/ad_promoted_object.rb @@ -68,6 +68,7 @@ class AdPromotedObject < AdObject field :object_store_url, 'string' field :offer_id, 'string' field :offline_conversion_data_set_id, 'string' + field :omnichannel_object, 'object' field :page_id, 'string' field :pixel_aggregation_rule, 'string' field :pixel_id, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_rule.rb b/lib/facebook_ads/ad_objects/ad_rule.rb index da3537a9..1fe88c41 100644 --- a/lib/facebook_ads/ad_objects/ad_rule.rb +++ b/lib/facebook_ads/ad_objects/ad_rule.rb @@ -38,9 +38,9 @@ class AdRule < AdObject "AM_ACTIVITY_HISTORY_TABLE", "AM_AD_OBJECT_NAME_CARD", "AM_AMFE_L3_RECOMMENDATION", + "AM_AUTO_APPLY_WIDGET", "AM_EDITOR_CARD", "AM_INFO_CARD", - "AM_MID_FLIGHT_RESOLUTION_CARD", "AM_NAME_CELL_DROPDOWN", "AM_PERFORMANCE_SUMMARY", "AM_RULE_LANDING_PAGE_BANNER", diff --git a/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb b/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb index 64601c7c..8d8dbe90 100644 --- a/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb @@ -30,6 +30,7 @@ class AdRuleExecutionSpec < AdObject "ADD_INTEREST_RELAXATION", "ADD_QUESTIONNAIRE_INTERESTS", "AUDIENCE_CONSOLIDATION", + "AUDIENCE_CONSOLIDATION_ASK_FIRST", "CHANGE_BID", "CHANGE_BUDGET", "CHANGE_CAMPAIGN_BUDGET", diff --git a/lib/facebook_ads/ad_objects/ad_rule_history.rb b/lib/facebook_ads/ad_objects/ad_rule_history.rb index 46aac9b3..d1c1bcc3 100644 --- a/lib/facebook_ads/ad_objects/ad_rule_history.rb +++ b/lib/facebook_ads/ad_objects/ad_rule_history.rb @@ -31,6 +31,7 @@ class AdRuleHistory < AdObject "CHANGED_BID", "CHANGED_BUDGET", "EMAIL", + "ENABLE_AUTOFLOW", "ENDPOINT_PINGED", "ERROR", "FACEBOOK_NOTIFICATION_SENT", diff --git a/lib/facebook_ads/ad_objects/ad_set.rb b/lib/facebook_ads/ad_objects/ad_set.rb index d910b1df..f911e356 100644 --- a/lib/facebook_ads/ad_objects/ad_set.rb +++ b/lib/facebook_ads/ad_objects/ad_set.rb @@ -76,6 +76,8 @@ class AdSet < AdObject "LANDING_PAGE_VIEWS", "LEAD_GENERATION", "LINK_CLICKS", + "MESSAGING_APPOINTMENT_CONVERSION", + "MESSAGING_PURCHASE_CONVERSION", "NONE", "OFFSITE_CONVERSIONS", "PAGE_LIKES", @@ -118,11 +120,6 @@ class AdSet < AdObject "yesterday", ] - OPERATOR = [ - "ALL", - "ANY", - ] - DESTINATION_TYPE = [ "APP", "APPLINKS_AUTOMATIC", @@ -172,6 +169,11 @@ class AdSet < AdObject "ONLINE_GAMBLING_AND_GAMING", ] + OPERATOR = [ + "ALL", + "ANY", + ] + STATUS_OPTION = [ "ACTIVE", "INHERITED_FROM_SOURCE", @@ -234,6 +236,17 @@ class AdSet < AdObject field :time_based_ad_rotation_intervals, { list: 'int' } field :updated_time, 'datetime' field :use_new_app_click, 'bool' + field :campaign_spec, 'object' + field :daily_imps, 'int' + field :date_format, 'string' + field :execution_options, { list: { enum: -> { EXECUTION_OPTIONS }} } + field :line_number, 'int' + field :rb_prediction_id, 'string' + field :time_start, 'datetime' + field :time_stop, 'datetime' + field :topline_id, 'string' + field :tune_for_category, { enum: -> { TUNE_FOR_CATEGORY }} + field :upstream_events, 'hash' has_edge :activities do |edge| edge.get 'AdActivity' do |api| @@ -287,16 +300,6 @@ class AdSet < AdObject end end - has_edge :content_delivery_report do |edge| - edge.get 'ContentDeliveryReport' do |api| - api.has_param :end_date, 'datetime' - api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }} - api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }} - api.has_param :start_date, 'datetime' - api.has_param :summary, 'bool' - end - end - has_edge :copies do |edge| edge.get 'AdSet' do |api| api.has_param :date_preset, { enum: -> { AdSet::DATE_PRESET }} diff --git a/lib/facebook_ads/ad_objects/ad_study.rb b/lib/facebook_ads/ad_objects/ad_study.rb index 07e9e004..3d0cccc9 100644 --- a/lib/facebook_ads/ad_objects/ad_study.rb +++ b/lib/facebook_ads/ad_objects/ad_study.rb @@ -36,21 +36,23 @@ class AdStudy < AdObject field :business, 'Business' field :canceled_time, 'datetime' + field :client_business, 'Business' field :cooldown_start_time, 'datetime' field :created_by, 'User' field :created_time, 'datetime' field :description, 'string' field :end_time, 'datetime' field :id, 'string' + field :measurement_contact, 'User' field :name, 'string' field :observation_end_time, 'datetime' field :results_first_available_date, 'string' + field :sales_contact, 'User' field :start_time, 'datetime' field :type, 'string' field :updated_by, 'User' field :updated_time, 'datetime' field :cells, { list: 'object' } - field :client_business, 'string' field :confidence_level, 'double' field :objectives, { list: 'object' } field :viewers, { list: 'int' } @@ -59,10 +61,21 @@ class AdStudy < AdObject edge.get 'AdStudyCell' end + has_edge :checkpoint do |edge| + edge.post 'AdStudy' do |api| + api.has_param :checkpoint_data, 'string' + api.has_param :checkpoint_name, 'string' + api.has_param :component, 'string' + api.has_param :instance_id, 'string' + api.has_param :run_id, 'string' + end + end + has_edge :instances do |edge| edge.get 'PrivateLiftStudyInstance' edge.post 'PrivateLiftStudyInstance' do |api| api.has_param :breakdown_key, 'hash' + api.has_param :run_id, 'string' end end diff --git a/lib/facebook_ads/ad_objects/ad_study_cell.rb b/lib/facebook_ads/ad_objects/ad_study_cell.rb index 6f61f65c..3a57b7d9 100644 --- a/lib/facebook_ads/ad_objects/ad_study_cell.rb +++ b/lib/facebook_ads/ad_objects/ad_study_cell.rb @@ -53,6 +53,7 @@ class AdStudyCell < AdObject field :id, 'string' field :name, 'string' field :treatment_percentage, 'double' + has_no_delete has_edge :adaccounts do |edge| edge.get 'AdAccount' diff --git a/lib/facebook_ads/ad_objects/ad_video.rb b/lib/facebook_ads/ad_objects/ad_video.rb index 914be601..a2b9ce9c 100644 --- a/lib/facebook_ads/ad_objects/ad_video.rb +++ b/lib/facebook_ads/ad_objects/ad_video.rb @@ -29,6 +29,7 @@ class AdVideo < AdObject CONTAINER_TYPE = [ "ACO_AUTOEXTRACTED_VIDEO", "ACO_VIDEO_VARIATION", + "ADS_AI_GENERATED", "AD_BREAK_PREVIEW", "AD_DERIVATIVE", "AGE_UP", @@ -39,10 +40,12 @@ class AdVideo < AdObject "APP_REVIEW_SCREENCAST", "ASSET_MANAGER", "ATLAS_VIDEO", + "AUDIO_BRIEF", "AUDIO_BROADCAST", "AUDIO_COMMENT", "BROADCAST", "BULLETIN_ARTICLE_AUDIO", + "CANDIDATE_VIDEOS_DELETED", "CANVAS", "CFC_VIDEO", "CMS_MEDIA_MANAGER", @@ -52,7 +55,6 @@ class AdVideo < AdObject "COPYRIGHT_REFERENCE_BROADCAST", "COPYRIGHT_REFERENCE_VIDEO", "CREATION_ML_PRECREATION", - "CULTURAL_MOMENT_DEPRECATED", "DCO_AD_ASSET_FEED", "DCO_AUTOGEN_VIDEO", "DCO_TRIMMED_VIDEO", @@ -60,20 +62,26 @@ class AdVideo < AdObject "DIRECTED_POST_ATTACHMENT", "DIRECT_INBOX", "DIRECT_INBOX_REACTION", + "DROPS_SHOPPING_EVENT_PAGE", "DYNAMIC_ITEM_DISPLAY_BUNDLE", "DYNAMIC_ITEM_VIDEO", "DYNAMIC_TEMPLATE_VIDEO", "EVENT_COVER_VIDEO", "EVENT_TOUR", "FACECAST_DVR", + "FB_COLLECTIBLE_VIDEO", "FB_SHORTS", + "FB_SHORTS_CONTENT_REMIXABLE", + "FB_SHORTS_CROSS_META_POST", "FB_SHORTS_GROUP_POST", "FB_SHORTS_PMV_POST", + "FB_SHORTS_PMV_POST_NO_NEWSFEED_NOR_TIMELINE", "FB_SHORTS_POST", "FB_SHORTS_REMIX_POST", "FUNDRAISER_COVER_VIDEO", "GAME_CLIP", "GEMSTONE", + "GIF_TO_VIDEO", "GOODWILL_ANNIVERSARY_DEPRECATED", "GOODWILL_ANNIVERSARY_PROMOTION_DEPRECATED", "GOODWILL_VIDEO_CONTAINED_SHARE", @@ -88,6 +96,7 @@ class AdVideo < AdObject "HUDDLE_BROADCAST", "IG_REELS_XPV", "IG_STORIES_READER", + "INJECTABLE", "INSPIRATION_VIDEO", "INSTAGRAM_VIDEO_COPY", "INSTANT_APPLICATION_PREVIEW", @@ -102,6 +111,7 @@ class AdVideo < AdObject "LEARN", "LEGACY", "LEGACY_CONTAINED_POST_BROADCAST", + "LIVE_AUDIO_ROOM_BROADCAST", "LIVE_CLIP_PREVIEW", "LIVE_CREATIVE_KIT_VIDEO", "LIVE_PHOTO", @@ -111,6 +121,7 @@ class AdVideo < AdObject "MESSENGER_WATCH_TOGETHER", "MOMENTS_VIDEO", "MUSIC_CLIP", + "MUSIC_CLIP_IN_AUDIO_DIGEST", "MUSIC_CLIP_IN_COMMENT", "MUSIC_CLIP_IN_LIGHTWEIGHT_STATUS", "MUSIC_CLIP_IN_POLL_OPTION", @@ -129,7 +140,8 @@ class AdVideo < AdObject "PAID_CONTENT_PREVIEW", "PAID_CONTENT_VIDEO", "PAID_CONTENT_VIDEO__POST", - "PARTNER_DIRECTORY_BRAND_MEDIA", + "PAPER_DOCUMENT_AUDIO", + "PAPER_DOCUMENT_VIDEO", "PIXELCLOUD", "PODCAST_HIGHLIGHT", "PODCAST_ML_PREVIEW", @@ -164,6 +176,7 @@ class AdVideo < AdObject "SRT_ATTACHMENT", "STAGES_BROADCAST", "STORIES_VIDEO", + "STORIES_WEARABLE", "STORYLINE", "STORYLINE_WITH_EXTERNAL_MUSIC", "STORY_ARCHIVE_VIDEO", @@ -174,6 +187,7 @@ class AdVideo < AdObject "TEMP_MULTIMEDIA_POST", "UNLISTED", "UNLISTED_HACK_TV", + "UNLISTED_HORIZON", "UNLISTED_OCULUS", "VIDEO_COMMENT", "VIDEO_COMPOSITION_VARIATION", @@ -244,6 +258,12 @@ class AdVideo < AdObject "uploaded", ] + VIDEO_STATE = [ + "DRAFT", + "PUBLISHED", + "SCHEDULED", + ] + BACKDATED_TIME_GRANULARITY = [ "day", "hour", @@ -255,6 +275,8 @@ class AdVideo < AdObject field :ad_breaks, { list: 'int' } + field :admin_creator, 'User' + field :audio_isrc, 'object' field :backdated_time, 'datetime' field :backdated_time_granularity, 'string' field :content_category, 'string' diff --git a/lib/facebook_ads/ad_objects/adgroup_activity.rb b/lib/facebook_ads/ad_objects/adgroup_activity.rb deleted file mode 100644 index 7b014a9b..00000000 --- a/lib/facebook_ads/ad_objects/adgroup_activity.rb +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class AdgroupActivity < AdObject - OBJECTIVE_NEW = [ - "APP_INSTALLS", - "BRAND_AWARENESS", - "CANVAS_APP_ENGAGEMENT", - "CANVAS_APP_INSTALLS", - "EVENT_RESPONSES", - "LEAD_GENERATION", - "LINK_CLICKS", - "LOCAL_AWARENESS", - "MESSAGES", - "MOBILE_APP_ENGAGEMENT", - "MOBILE_APP_INSTALLS", - "NONE", - "OFFER_CLAIMS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "PRODUCT_CATALOG_SALES", - "VIDEO_VIEWS", - "WEBSITE_CONVERSIONS", - ] - - OBJECTIVE_OLD = [ - "APP_INSTALLS", - "BRAND_AWARENESS", - "CANVAS_APP_ENGAGEMENT", - "CANVAS_APP_INSTALLS", - "EVENT_RESPONSES", - "LEAD_GENERATION", - "LINK_CLICKS", - "LOCAL_AWARENESS", - "MESSAGES", - "MOBILE_APP_ENGAGEMENT", - "MOBILE_APP_INSTALLS", - "NONE", - "OFFER_CLAIMS", - "PAGE_LIKES", - "POST_ENGAGEMENT", - "PRODUCT_CATALOG_SALES", - "VIDEO_VIEWS", - "WEBSITE_CONVERSIONS", - ] - - - field :ad_creative_id_new, 'AdCreative' - field :ad_creative_id_old, 'AdCreative' - field :asset_feed_id_new, 'string' - field :asset_feed_id_old, 'string' - field :bid_amount_new, 'int' - field :bid_amount_old, 'int' - field :bid_info_new, 'hash' - field :bid_info_old, 'hash' - field :bid_type_new, 'string' - field :bid_type_old, 'string' - field :conversion_specs_new, { list: 'object' } - field :conversion_specs_old, { list: 'object' } - field :created_time, 'datetime' - field :display_sequence_new, 'int' - field :display_sequence_old, 'int' - field :engagement_audience_new, 'bool' - field :engagement_audience_old, 'bool' - field :event_time, 'datetime' - field :event_type, 'string' - field :force_run_status_new, 'bool' - field :force_run_status_old, 'bool' - field :friendly_name_new, 'string' - field :friendly_name_old, 'string' - field :id, 'string' - field :is_reviewer_admin_new, 'bool' - field :is_reviewer_admin_old, 'bool' - field :objective_new, { enum: -> { OBJECTIVE_NEW }} - field :objective_old, { enum: -> { OBJECTIVE_OLD }} - field :objective_source_new, 'string' - field :objective_source_old, 'string' - field :priority_new, 'int' - field :priority_old, 'int' - field :reason_new, 'string' - field :reason_old, 'string' - field :run_status_new, 'string' - field :run_status_old, 'string' - field :source_adgroup_id_new, 'Ad' - field :source_adgroup_id_old, 'Ad' - field :start_time_new, 'datetime' - field :start_time_old, 'datetime' - field :stop_time_new, 'datetime' - field :stop_time_old, 'datetime' - field :target_spec_id_new, 'string' - field :target_spec_id_old, 'string' - field :targets_spec_new, 'object' - field :targets_spec_old, 'object' - field :tracking_specs_new, { list: 'object' } - field :tracking_specs_old, { list: 'object' } - field :update_time_new, 'datetime' - field :update_time_old, 'datetime' - field :view_tags_new, { list: 'string' } - field :view_tags_old, { list: 'string' } - has_no_post - has_no_delete - - end -end diff --git a/lib/facebook_ads/ad_objects/adgroup_metadata.rb b/lib/facebook_ads/ad_objects/adgroup_metadata.rb new file mode 100644 index 00000000..2e84f7f7 --- /dev/null +++ b/lib/facebook_ads/ad_objects/adgroup_metadata.rb @@ -0,0 +1,41 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class AdgroupMetadata < AdObject + + field :ad_standard_enhancements_edit_source, 'int' + field :adgroup_creation_source, 'string' + field :adgroup_edit_source, 'string' + field :carousel_style, 'string' + field :carousel_with_static_card_style, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb b/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb index 7da80789..10c03b02 100644 --- a/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +++ b/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb @@ -61,6 +61,7 @@ class AdgroupPlacementSpecificReviewFeedback < AdObject field :seller, 'hash' field :shops, 'hash' field :traffic_quality, 'hash' + field :unified_commerce_content, 'hash' field :whatsapp, 'hash' has_no_id has_no_get diff --git a/lib/facebook_ads/ad_objects/ads_insights.rb b/lib/facebook_ads/ad_objects/ads_insights.rb index 179d08d1..9a680c0d 100644 --- a/lib/facebook_ads/ad_objects/ads_insights.rb +++ b/lib/facebook_ads/ad_objects/ads_insights.rb @@ -74,12 +74,15 @@ class AdsInsights < AdObject "hourly_stats_aggregated_by_audience_time_zone", "image_asset", "impression_device", + "is_conversion_id_modeled", "link_url_asset", + "mmm", "place_page_id", "platform_position", "product_id", "publisher_platform", "region", + "skan_campaign_id", "skan_conversion_id", "title_asset", "video_asset", @@ -228,6 +231,7 @@ class AdsInsights < AdObject field :social_spend, 'string' field :spend, 'string' field :total_postbacks, 'string' + field :total_postbacks_detailed, { list: 'AdsActionStats' } field :unique_actions, { list: 'AdsActionStats' } field :unique_clicks, 'string' field :unique_conversions, { list: 'AdsActionStats' } diff --git a/lib/facebook_ads/ad_objects/ads_pixel.rb b/lib/facebook_ads/ad_objects/ads_pixel.rb index 1722b571..48c3488f 100644 --- a/lib/facebook_ads/ad_objects/ads_pixel.rb +++ b/lib/facebook_ads/ad_objects/ads_pixel.rb @@ -102,10 +102,11 @@ class AdsPixel < AdObject end has_edge :events do |edge| - edge.post 'AdsPixel' do |api| + edge.post do |api| api.has_param :data, { list: 'string' } api.has_param :namespace_id, 'string' api.has_param :partner_agent, 'string' + api.has_param :platforms, { list: 'hash' } api.has_param :test_event_code, 'string' api.has_param :trace, 'int' api.has_param :upload_id, 'string' @@ -114,6 +115,10 @@ class AdsPixel < AdObject end end + has_edge :meapitocapiconsolidationhelper do |edge| + edge.post + end + has_edge :shadowtraffichelper do |edge| edge.post end diff --git a/lib/facebook_ads/ad_objects/application.rb b/lib/facebook_ads/ad_objects/application.rb index 2323f1b9..82fcf099 100644 --- a/lib/facebook_ads/ad_objects/application.rb +++ b/lib/facebook_ads/ad_objects/application.rb @@ -77,17 +77,6 @@ class Application < AdObject "EYMT", ] - SCORE_TYPE = [ - "CUSTOM", - "NUMERIC", - "TIME", - ] - - SORT_ORDER = [ - "HIGHER_IS_BETTER", - "LOWER_IS_BETTER", - ] - LOGGING_SOURCE = [ "MESSENGER_BOT", ] @@ -124,6 +113,7 @@ class Application < AdObject field :auto_event_mapping_android, { list: 'object' } field :auto_event_mapping_ios, { list: 'object' } field :auto_event_setup_enabled, 'bool' + field :business, 'Business' field :canvas_fluid_height, 'bool' field :canvas_fluid_width, 'int' field :canvas_url, 'string' @@ -159,7 +149,6 @@ class Application < AdObject field :latest_sdk_version, 'object' field :link, 'string' field :logging_token, 'string' - field :login_secret, 'string' field :logo_url, 'string' field :migrations, 'hash' field :mobile_profile_section_url, 'string' @@ -169,6 +158,7 @@ class Application < AdObject field :name, 'string' field :namespace, 'string' field :object_store_urls, 'object' + field :owner_business, 'Business' field :page_tab_default_name, 'string' field :page_tab_url, 'string' field :photo_url, 'string' @@ -233,6 +223,7 @@ class Application < AdObject api.has_param :bundle_id, 'string' api.has_param :bundle_short_version, 'string' api.has_param :bundle_version, 'string' + api.has_param :campaign_ids, 'string' api.has_param :click_id, 'string' api.has_param :consider_views, 'bool' api.has_param :custom_events, { list: 'object' } @@ -261,6 +252,10 @@ class Application < AdObject end end + has_edge :ad_placement_groups do |edge| + edge.get + end + has_edge :adnetwork_placements do |edge| edge.get 'AdPlacement' do |api| api.has_param :request_id, 'string' @@ -298,6 +293,13 @@ class Application < AdObject end end + has_edge :aem_attribution do |edge| + edge.get do |api| + api.has_param :advertiser_ids, { list: 'string' } + api.has_param :fb_content_data, 'string' + end + end + has_edge :aem_conversion_configs do |edge| edge.get do |api| api.has_param :advertiser_ids, { list: 'string' } @@ -321,6 +323,7 @@ class Application < AdObject edge.post do |api| api.has_param :app_id, 'int' api.has_param :is_aem_ready, 'bool' + api.has_param :is_aem_v2_ready, 'bool' api.has_param :is_skan_ready, 'bool' end end @@ -342,6 +345,10 @@ class Application < AdObject edge.get end + has_edge :app_capi_settings do |edge| + edge.get + end + has_edge :app_event_types do |edge| edge.get end @@ -396,12 +403,6 @@ class Application < AdObject end end - has_edge :banned do |edge| - edge.delete do |api| - api.has_param :uids, { list: 'int' } - end - end - has_edge :button_auto_detection_device_selection do |edge| edge.get do |api| api.has_param :device_id, 'string' @@ -437,51 +438,12 @@ class Application < AdObject has_edge :insights_push_schedule do |edge| edge.get - edge.post do |api| - api.has_param :ad_account_ids, { list: 'string' } - api.has_param :breakdowns, { list: 'string' } - api.has_param :date_preset, 'string' - api.has_param :level, { enum: %w{ACCOUNT AD ADSET CAMPAIGN }} - api.has_param :metrics, { list: 'string' } - api.has_param :object_id, 'string' - api.has_param :owner_id, 'int' - api.has_param :schedule, { enum: %w{DAILY FINE_15_MIN FINE_5_MIN MONTHLY WEEKLY }} - api.has_param :status, { enum: %w{ACTIVE DISABLED ERROR }} - api.has_param :time_increment, 'int' - api.has_param :time_start, 'datetime' - api.has_param :time_stop, 'datetime' - end end has_edge :ios_dialog_configs do |edge| edge.get end - has_edge :leaderboards_create do |edge| - edge.post 'Application' do |api| - api.has_param :context_id, 'string' - api.has_param :decimal_offset, 'int' - api.has_param :name, 'string' - api.has_param :score_type, { enum: -> { Application::SCORE_TYPE }} - api.has_param :sort_order, { enum: -> { Application::SORT_ORDER }} - api.has_param :unit, 'string' - end - end - - has_edge :leaderboards_delete_entry do |edge| - edge.post 'Application' do |api| - api.has_param :name, 'string' - api.has_param :player_id, 'string' - end - end - - has_edge :leaderboards_reset do |edge| - edge.post 'Application' do |api| - api.has_param :name, 'string' - api.has_param :reset_time, 'datetime' - end - end - has_edge :mmp_auditing do |edge| edge.post do |api| api.has_param :advertiser_id, 'string' @@ -497,6 +459,7 @@ class Application < AdObject api.has_param :fb_click_time, 'int' api.has_param :fb_view_time, 'int' api.has_param :is_fb, 'bool' + api.has_param :used_install_referrer, 'bool' api.has_param :view_attr_window, 'int' end end @@ -512,12 +475,17 @@ class Application < AdObject end has_edge :monetized_digital_store_objects do |edge| + edge.get edge.post do |api| api.has_param :content_id, 'string' api.has_param :store, 'string' end end + has_edge :object_types do |edge| + edge.get 'NullNode' + end + has_edge :occludespopups do |edge| edge.post do |api| api.has_param :flash, 'bool' @@ -606,12 +574,5 @@ class Application < AdObject end end - has_edge :user_properties do |edge| - edge.post do |api| - api.has_param :data, { list: 'object' } - api.has_param :limited_data_use, 'bool' - end - end - end end diff --git a/lib/facebook_ads/ad_objects/audio_copyright.rb b/lib/facebook_ads/ad_objects/audio_copyright.rb index fa90f639..7f1578a9 100644 --- a/lib/facebook_ads/ad_objects/audio_copyright.rb +++ b/lib/facebook_ads/ad_objects/audio_copyright.rb @@ -43,5 +43,9 @@ class AudioCopyright < AdObject has_no_post has_no_delete + has_edge :update_records do |edge| + edge.get + end + end end diff --git a/lib/facebook_ads/ad_objects/automotive_model.rb b/lib/facebook_ads/ad_objects/automotive_model.rb index 4716e2b6..7822034e 100644 --- a/lib/facebook_ads/ad_objects/automotive_model.rb +++ b/lib/facebook_ads/ad_objects/automotive_model.rb @@ -35,30 +35,9 @@ class AutomotiveModel < AdObject "PARTIAL_FETCH", ] - BODY_STYLE = [ - "CONVERTIBLE", - "COUPE", - "CROSSOVER", - "ESTATE", - "GRANDTOURER", - "HATCHBACK", - "MINIBUS", - "MINIVAN", - "MPV", - "NONE", - "OTHER", - "PICKUP", - "ROADSTER", - "SALOON", - "SEDAN", - "SMALL_CAR", - "SPORTSCAR", - "SUPERCAR", - "SUPERMINI", - "SUV", - "TRUCK", - "VAN", - "WAGON", + VISIBILITY = [ + "PUBLISHED", + "STAGING", ] @@ -90,6 +69,7 @@ class AutomotiveModel < AdObject field :trim, 'string' field :unit_price, 'object' field :url, 'string' + field :visibility, { enum: -> { VISIBILITY }} field :year, 'int' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/business.rb b/lib/facebook_ads/ad_objects/business.rb index 973cff5c..e56e7c57 100644 --- a/lib/facebook_ads/ad_objects/business.rb +++ b/lib/facebook_ads/ad_objects/business.rb @@ -76,8 +76,10 @@ class Business < AdObject "PROFILE_PLUS_FACEBOOK_ACCESS", "PROFILE_PLUS_FULL_CONTROL", "PROFILE_PLUS_MANAGE", + "PROFILE_PLUS_MANAGE_LEADS", "PROFILE_PLUS_MESSAGING", "PROFILE_PLUS_MODERATE", + "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", "PROFILE_PLUS_REVENUE", "READ_PAGE_MAILBOXES", "VIEW_MONETIZATION_INSIGHTS", @@ -109,8 +111,10 @@ class Business < AdObject "PROFILE_PLUS_FACEBOOK_ACCESS", "PROFILE_PLUS_FULL_CONTROL", "PROFILE_PLUS_MANAGE", + "PROFILE_PLUS_MANAGE_LEADS", "PROFILE_PLUS_MESSAGING", "PROFILE_PLUS_MODERATE", + "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", "PROFILE_PLUS_REVENUE", "READ_PAGE_MAILBOXES", "VIEW_MONETIZATION_INSIGHTS", @@ -120,7 +124,7 @@ class Business < AdObject field :block_offline_analytics, 'bool' field :collaborative_ads_managed_partner_business_info, 'ManagedPartnerBusiness' field :collaborative_ads_managed_partner_eligibility, 'BusinessManagedPartnerEligibility' - field :cpas_business_setup_config, 'CpasBusinessSetupConfig' + field :collaborative_ads_partner_premium_options, 'BusinessPartnerPremiumOptions' field :created_by, 'object' field :created_time, 'datetime' field :extended_updated_time, 'datetime' @@ -228,6 +232,16 @@ class Business < AdObject end end + has_edge :ads_reporting_mmm_reports do |edge| + edge.get do |api| + api.has_param :filtering, { list: 'hash' } + end + end + + has_edge :ads_reporting_mmm_schedulers do |edge| + edge.get + end + has_edge :adspixels do |edge| edge.get 'AdsPixel' do |api| api.has_param :id_filter, 'string' @@ -288,7 +302,9 @@ class Business < AdObject end has_edge :client_ad_accounts do |edge| - edge.get 'AdAccount' + edge.get 'AdAccount' do |api| + api.has_param :search_query, 'string' + end end has_edge :client_apps do |edge| @@ -353,18 +369,8 @@ class Business < AdObject edge.get 'CommerceMerchantSettings' end - has_edge :content_delivery_report do |edge| - edge.get 'ContentDeliveryReport' do |api| - api.has_param :end_date, 'datetime' - api.has_param :page_id, 'int' - api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }} - api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }} - api.has_param :start_date, 'datetime' - api.has_param :summary, 'bool' - end - end - has_edge :cpas_business_setup_config do |edge| + edge.get 'CpasBusinessSetupConfig' edge.post 'CpasBusinessSetupConfig' do |api| api.has_param :accepted_collab_ads_tos, 'bool' api.has_param :ad_accounts, { list: 'string' } @@ -377,12 +383,8 @@ class Business < AdObject edge.get 'CpasMerchantConfig' end - has_edge :create_and_apply_publisher_block_list do |edge| - edge.post do |api| - api.has_param :is_auto_blocking_on, 'bool' - api.has_param :name, 'string' - api.has_param :publisher_urls, { list: 'string' } - end + has_edge :creditcards do |edge| + edge.get 'CreditCard' end has_edge :creative_folders do |edge| @@ -480,6 +482,10 @@ class Business < AdObject end has_edge :managed_partner_businesses do |edge| + edge.delete do |api| + api.has_param :child_business_external_id, 'string' + api.has_param :child_business_id, 'string' + end edge.post do |api| api.has_param :ad_account_currency, 'string' api.has_param :catalog_id, 'string' @@ -503,14 +509,6 @@ class Business < AdObject end end - has_edge :managed_partner_child_business_assets do |edge| - edge.post 'Business' do |api| - api.has_param :child_business_id, 'string' - api.has_param :credit_limit, 'int' - api.has_param :line_of_credit_id, 'string' - end - end - has_edge :negative_keyword_lists do |edge| edge.get end @@ -527,7 +525,9 @@ class Business < AdObject end has_edge :owned_ad_accounts do |edge| - edge.get 'AdAccount' + edge.get 'AdAccount' do |api| + api.has_param :search_query, 'string' + end edge.post 'Business' do |api| api.has_param :adaccount_id, 'string' end @@ -608,6 +608,17 @@ class Business < AdObject end end + has_edge :partner_premium_options do |edge| + edge.post do |api| + api.has_param :catalog_segment_id, 'string' + api.has_param :enable_basket_insight, 'bool' + api.has_param :enable_extended_audience_retargeting, 'bool' + api.has_param :partner_business_id, 'string' + api.has_param :retailer_custom_audience_config, 'hash' + api.has_param :vendor_id, 'string' + end + end + has_edge :pending_client_ad_accounts do |edge| edge.get 'BusinessAdAccountRequest' end @@ -648,7 +659,7 @@ class Business < AdObject end end - has_edge :pixeltos do |edge| + has_edge :pixel_tos do |edge| edge.post end @@ -669,7 +680,7 @@ class Business < AdObject end has_edge :third_party_measurement_report_dataset do |edge| - edge.get 'ThirdPartyMeasurementReportDataset' + edge.get end end diff --git a/lib/facebook_ads/ad_objects/business_asset_group.rb b/lib/facebook_ads/ad_objects/business_asset_group.rb index 9ded61da..0534de9d 100644 --- a/lib/facebook_ads/ad_objects/business_asset_group.rb +++ b/lib/facebook_ads/ad_objects/business_asset_group.rb @@ -61,8 +61,10 @@ class BusinessAssetGroup < AdObject "PROFILE_PLUS_FACEBOOK_ACCESS", "PROFILE_PLUS_FULL_CONTROL", "PROFILE_PLUS_MANAGE", + "PROFILE_PLUS_MANAGE_LEADS", "PROFILE_PLUS_MESSAGING", "PROFILE_PLUS_MODERATE", + "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", "PROFILE_PLUS_REVENUE", "READ_PAGE_MAILBOXES", "VIEW_MONETIZATION_INSIGHTS", @@ -79,6 +81,7 @@ class BusinessAssetGroup < AdObject field :id, 'string' field :name, 'string' + field :owner_business, 'Business' has_no_delete has_edge :assigned_users do |edge| diff --git a/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb b/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb index cc6cdf9a..4619b882 100644 --- a/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb +++ b/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb @@ -32,6 +32,8 @@ class BusinessAssetSharingAgreement < AdObject "EXPIRED", "IN_PROGRESS", "PENDING", + "PENDING_EMAIL_VERIFICATION", + "PENDING_INTEGRITY_REVIEW", ] diff --git a/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb b/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb index e32bf7b4..584005f6 100644 --- a/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb +++ b/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb @@ -32,6 +32,8 @@ class BusinessOwnedObjectOnBehalfOfRequest < AdObject "EXPIRED", "IN_PROGRESS", "PENDING", + "PENDING_EMAIL_VERIFICATION", + "PENDING_INTEGRITY_REVIEW", ] diff --git a/lib/facebook_ads/ad_objects/business_partner_premium_options.rb b/lib/facebook_ads/ad_objects/business_partner_premium_options.rb new file mode 100644 index 00000000..191c7be0 --- /dev/null +++ b/lib/facebook_ads/ad_objects/business_partner_premium_options.rb @@ -0,0 +1,39 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class BusinessPartnerPremiumOptions < AdObject + + field :enable_basket_insight, 'bool' + field :enable_extended_audience_retargeting, 'bool' + field :retailer_custom_audience_config, 'object' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/business_user.rb b/lib/facebook_ads/ad_objects/business_user.rb index 1804cf9b..904fdf6f 100644 --- a/lib/facebook_ads/ad_objects/business_user.rb +++ b/lib/facebook_ads/ad_objects/business_user.rb @@ -46,6 +46,7 @@ class BusinessUser < AdObject field :business, 'Business' + field :business_role_request, 'BusinessRoleRequest' field :email, 'string' field :finance_permission, 'string' field :first_name, 'string' @@ -70,7 +71,9 @@ class BusinessUser < AdObject end has_edge :assigned_pages do |edge| - edge.get 'Page' + edge.get 'Page' do |api| + api.has_param :pages, { list: 'int' } + end end has_edge :assigned_product_catalogs do |edge| diff --git a/lib/facebook_ads/ad_objects/campaign.rb b/lib/facebook_ads/ad_objects/campaign.rb index 84f2d28f..98d61689 100644 --- a/lib/facebook_ads/ad_objects/campaign.rb +++ b/lib/facebook_ads/ad_objects/campaign.rb @@ -93,6 +93,12 @@ class Campaign < AdObject "LOCAL_AWARENESS", "MESSAGES", "OFFER_CLAIMS", + "OUTCOME_APP_PROMOTION", + "OUTCOME_AWARENESS", + "OUTCOME_ENGAGEMENT", + "OUTCOME_LEADS", + "OUTCOME_SALES", + "OUTCOME_TRAFFIC", "PAGE_LIKES", "POST_ENGAGEMENT", "PRODUCT_CATALOG_SALES", @@ -406,6 +412,7 @@ class Campaign < AdObject field :created_time, 'datetime' field :daily_budget, 'string' field :effective_status, { enum: -> { EFFECTIVE_STATUS }} + field :has_secondary_skadnetwork_reporting, 'bool' field :id, 'string' field :is_skadnetwork_attribution, 'bool' field :issues_info, { list: 'AdCampaignIssuesInfo' } @@ -414,6 +421,7 @@ class Campaign < AdObject field :name, 'string' field :objective, 'string' field :pacing_type, { list: 'string' } + field :primary_attribution, 'string' field :promoted_object, 'AdPromotedObject' field :recommendations, { list: 'AdRecommendation' } field :smart_promotion_type, 'string' @@ -468,17 +476,6 @@ class Campaign < AdObject end end - has_edge :content_delivery_report do |edge| - edge.get 'ContentDeliveryReport' do |api| - api.has_param :end_date, 'datetime' - api.has_param :page_id, 'int' - api.has_param :platform, { enum: -> { ContentDeliveryReport::PLATFORM }} - api.has_param :position, { enum: -> { ContentDeliveryReport::POSITION }} - api.has_param :start_date, 'datetime' - api.has_param :summary, 'bool' - end - end - has_edge :copies do |edge| edge.get 'Campaign' do |api| api.has_param :date_preset, { enum: -> { Campaign::DATE_PRESET }} diff --git a/lib/facebook_ads/ad_objects/canvas.rb b/lib/facebook_ads/ad_objects/canvas.rb index 4e305d43..18bb3360 100644 --- a/lib/facebook_ads/ad_objects/canvas.rb +++ b/lib/facebook_ads/ad_objects/canvas.rb @@ -34,6 +34,7 @@ class Canvas < AdObject field :collection_hero_image, 'Photo' field :collection_hero_video, 'AdVideo' field :collection_thumbnails, { list: 'CanvasCollectionThumbnail' } + field :dynamic_setting, 'CanvasDynamicSetting' field :element_payload, 'string' field :elements, { list: 'RichMediaElement' } field :fb_body_elements, { list: 'object' } @@ -45,7 +46,7 @@ class Canvas < AdObject field :name, 'string' field :owner, 'Page' field :property_list, { list: 'string' } - field :source_template, 'CanvasTemplate' + field :source_template, 'object' field :store_url, 'string' field :style_list, { list: 'string' } field :tags, { list: 'string' } diff --git a/lib/facebook_ads/ad_objects/page_admin_note.rb b/lib/facebook_ads/ad_objects/canvas_dynamic_setting.rb similarity index 90% rename from lib/facebook_ads/ad_objects/page_admin_note.rb rename to lib/facebook_ads/ad_objects/canvas_dynamic_setting.rb index f6c0952a..07741fbd 100644 --- a/lib/facebook_ads/ad_objects/page_admin_note.rb +++ b/lib/facebook_ads/ad_objects/canvas_dynamic_setting.rb @@ -25,13 +25,11 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class PageAdminNote < AdObject + class CanvasDynamicSetting < AdObject - field :body, 'string' - field :from, 'Page' + field :child_documents, { list: 'Canvas' } + field :product_set_id, 'string' field :id, 'string' - field :note_label, 'string' - field :user, 'User' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/catalog_segment_all_match_count_laser.rb b/lib/facebook_ads/ad_objects/catalog_segment_all_match_count_laser.rb new file mode 100644 index 00000000..3dd2c8ef --- /dev/null +++ b/lib/facebook_ads/ad_objects/catalog_segment_all_match_count_laser.rb @@ -0,0 +1,42 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class CatalogSegmentAllMatchCountLaser < AdObject + + field :date_start, 'string' + field :date_stop, 'string' + field :event, 'string' + field :source, 'ExternalEventSource' + field :total_matched_content_ids, 'int' + field :unique_matched_content_ids, 'int' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/check_batch_request_status.rb b/lib/facebook_ads/ad_objects/check_batch_request_status.rb index d0298ae9..39879ced 100644 --- a/lib/facebook_ads/ad_objects/check_batch_request_status.rb +++ b/lib/facebook_ads/ad_objects/check_batch_request_status.rb @@ -26,6 +26,12 @@ module FacebookAds # pull request for this class. class CheckBatchRequestStatus < AdObject + ERROR_PRIORITY = [ + "HIGH", + "LOW", + "MEDIUM", + ] + field :errors, { list: 'object' } field :errors_total_count, 'int' diff --git a/lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb b/lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb index 29a9cb0d..970e476e 100644 --- a/lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb +++ b/lib/facebook_ads/ad_objects/collaborative_ads_share_settings.rb @@ -33,6 +33,7 @@ class CollaborativeAdsShareSettings < AdObject field :utm_campaign, 'string' field :utm_medium, 'string' field :utm_source, 'string' + has_no_post has_no_delete end diff --git a/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb b/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb index 4056d627..5fb98bea 100644 --- a/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +++ b/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb @@ -87,6 +87,13 @@ class CommerceMerchantSettings < AdObject end end + has_edge :onsite_conversion_events do |edge| + edge.get do |api| + api.has_param :created_after, 'datetime' + api.has_param :created_before, 'datetime' + end + end + has_edge :order_management_apps do |edge| edge.get 'Application' edge.post 'CommerceMerchantSettings' @@ -105,6 +112,10 @@ class CommerceMerchantSettings < AdObject end end + has_edge :seller_issues do |edge| + edge.get + end + has_edge :setup_status do |edge| edge.get 'CommerceMerchantSettingsSetupStatus' end diff --git a/lib/facebook_ads/ad_objects/dynamic_content_set.rb b/lib/facebook_ads/ad_objects/commerce_merchant_tos_acceptance.rb similarity index 93% rename from lib/facebook_ads/ad_objects/dynamic_content_set.rb rename to lib/facebook_ads/ad_objects/commerce_merchant_tos_acceptance.rb index cf238f4d..bf091f0f 100644 --- a/lib/facebook_ads/ad_objects/dynamic_content_set.rb +++ b/lib/facebook_ads/ad_objects/commerce_merchant_tos_acceptance.rb @@ -25,11 +25,10 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class DynamicContentSet < AdObject + class CommerceMerchantTosAcceptance < AdObject - field :business_id, 'string' + field :business, 'Business' field :id, 'string' - field :name, 'string' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/commerce_order.rb b/lib/facebook_ads/ad_objects/commerce_order.rb index ac32c5e2..4d5b1c68 100644 --- a/lib/facebook_ads/ad_objects/commerce_order.rb +++ b/lib/facebook_ads/ad_objects/commerce_order.rb @@ -132,6 +132,12 @@ class CommerceOrder < AdObject api.has_param :merchant_return_id, 'string' api.has_param :statuses, { list: { enum: %w{APPROVED DISAPPROVED MERCHANT_MARKED_COMPLETED REFUNDED REQUESTED }} } end + edge.post 'CommerceOrder' do |api| + api.has_param :items, { list: 'hash' } + api.has_param :merchant_return_id, 'string' + api.has_param :return_message, 'string' + api.has_param :update, 'hash' + end end has_edge :shipments do |edge| @@ -152,8 +158,10 @@ class CommerceOrder < AdObject has_edge :update_shipment do |edge| edge.post 'CommerceOrder' do |api| + api.has_param :external_shipment_id, 'string' api.has_param :fulfillment_id, 'string' api.has_param :idempotency_key, 'string' + api.has_param :shipment_id, 'string' api.has_param :tracking_info, 'hash' end end diff --git a/lib/facebook_ads/ad_objects/content_delivery_report.rb b/lib/facebook_ads/ad_objects/content_delivery_report.rb deleted file mode 100644 index 1fd41705..00000000 --- a/lib/facebook_ads/ad_objects/content_delivery_report.rb +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class ContentDeliveryReport < AdObject - PLATFORM = [ - "AUDIENCE_NETWORK", - "FACEBOOK", - "HIDDEN_AAA", - "INSTAGRAM", - "MESSENGER", - "OCULUS", - "UNKNOWN", - "WHATSAPP", - ] - - POSITION = [ - "ALL_PLACEMENTS", - "AN_CLASSIC", - "BIZ_DISCO_FEED", - "FACEBOOK_GROUPS_FEED", - "FACEBOOK_REELS", - "FACEBOOK_REELS_OVERLAY", - "FACEBOOK_STORIES", - "FEED", - "GROUPS", - "HIDDEN_AAA", - "INSTAGRAM_EXPLORE", - "INSTAGRAM_IGTV", - "INSTAGRAM_REELS", - "INSTAGRAM_SHOP", - "INSTAGRAM_STORIES", - "INSTANT_ARTICLE", - "INSTREAM_VIDEO", - "JOBS_BROWSER", - "MARKETPLACE", - "MESSENGER_INBOX", - "MESSENGER_STORIES", - "OCULUS_REWARDED_VIDEO", - "OCULUS_TWILIGHT_DEVELOPER_UPDATE", - "OCULUS_TWILIGHT_FEED", - "OCULUS_TWILIGHT_FEED_SPOTLIGHT", - "OCULUS_TWILIGHT_SEARCH", - "OCULUS_TWILIGHT_SEARCH_NULL_STATE", - "OCULUS_VR_APPS", - "OTHERS", - "REWARDED_VIDEO", - "RIGHT_HAND_COLUMN", - "SEARCH", - "STATUS", - "STICKERS", - "SUGGESTED_VIDEO", - "UNKNOWN", - "VIDEO_FEEDS", - ] - - - field :content_name, 'string' - field :content_url, 'string' - field :creator_name, 'string' - field :creator_url, 'string' - field :estimated_impressions, 'int' - has_no_id - has_no_get - has_no_post - has_no_delete - - end -end diff --git a/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb b/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb index 12eaf034..401b6a14 100644 --- a/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb +++ b/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb @@ -33,6 +33,7 @@ class CpasBusinessSetupConfig < AdObject field :capabilities_compliance_status, 'hash' field :id, 'string' field :ad_accounts, { list: 'string' } + has_no_post has_no_delete has_edge :ad_accounts do |edge| diff --git a/lib/facebook_ads/ad_objects/credit_card.rb b/lib/facebook_ads/ad_objects/credit_card.rb new file mode 100644 index 00000000..376270cf --- /dev/null +++ b/lib/facebook_ads/ad_objects/credit_card.rb @@ -0,0 +1,55 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class CreditCard < AdObject + + field :billing_address, 'object' + field :card_cobadging, 'string' + field :card_holder_name, 'string' + field :card_type, 'string' + field :credential_id, 'int' + field :default_receiving_method_products, { list: 'string' } + field :expiry_month, 'string' + field :expiry_year, 'string' + field :id, 'string' + field :is_cvv_tricky_bin, 'bool' + field :is_enabled, 'bool' + field :is_last_used, 'bool' + field :is_network_tokenized_in_india, 'bool' + field :is_soft_disabled, 'bool' + field :is_user_verified, 'bool' + field :is_zip_verified, 'bool' + field :last4, 'string' + field :readable_card_type, 'string' + field :time_created, 'datetime' + field :time_created_ts, 'int' + field :type, 'string' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/crm_address.rb b/lib/facebook_ads/ad_objects/crm_address.rb new file mode 100644 index 00000000..09ce8cb8 --- /dev/null +++ b/lib/facebook_ads/ad_objects/crm_address.rb @@ -0,0 +1,48 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class CrmAddress < AdObject + + field :city, 'string' + field :cnpj_tax_id, 'string' + field :country, 'string' + field :id, 'string' + field :postal_code, 'string' + field :registration_label, 'string' + field :registration_number, 'string' + field :state, 'string' + field :street1, 'string' + field :street2, 'string' + field :street3, 'string' + field :street4, 'string' + field :validation_status, 'string' + field :vat_tax_id, 'string' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/custom_audience.rb b/lib/facebook_ads/ad_objects/custom_audience.rb index 437f0c1e..5c96d750 100644 --- a/lib/facebook_ads/ad_objects/custom_audience.rb +++ b/lib/facebook_ads/ad_objects/custom_audience.rb @@ -107,6 +107,7 @@ class CustomAudience < AdObject field :name, 'string' field :operation_status, 'CustomAudienceStatus' field :opt_out_link, 'string' + field :owner_business, 'Business' field :page_deletion_marked_delete_time, 'int' field :permission_for_actions, 'AudiencePermissionForActions' field :pixel_id, 'string' diff --git a/lib/facebook_ads/ad_objects/custom_audience_data_source.rb b/lib/facebook_ads/ad_objects/custom_audience_data_source.rb index d84a0b33..96d02213 100644 --- a/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +++ b/lib/facebook_ads/ad_objects/custom_audience_data_source.rb @@ -29,6 +29,7 @@ class CustomAudienceDataSource < AdObject SUB_TYPE = [ "ANYTHING", "APP_USERS", + "AR_EXPERIENCE_EVENTS", "CAMPAIGN_CONVERSIONS", "COMBINATION_CUSTOM_AUDIENCE_USERS", "CONSTANT_CONTACTS_EMAIL_HASHES", diff --git a/lib/facebook_ads/ad_objects/destination.rb b/lib/facebook_ads/ad_objects/destination.rb index cd4a1d30..336f5722 100644 --- a/lib/facebook_ads/ad_objects/destination.rb +++ b/lib/facebook_ads/ad_objects/destination.rb @@ -35,6 +35,11 @@ class Destination < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :address, 'string' field :applinks, 'CatalogItemAppLinks' @@ -52,6 +57,7 @@ class Destination < AdObject field :types, { list: 'string' } field :unit_price, 'object' field :url, 'string' + field :visibility, { enum: -> { VISIBILITY }} has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/event.rb b/lib/facebook_ads/ad_objects/event.rb index e68e893b..bad45025 100644 --- a/lib/facebook_ads/ad_objects/event.rb +++ b/lib/facebook_ads/ad_objects/event.rb @@ -27,31 +27,28 @@ module FacebookAds class Event < AdObject CATEGORY = [ - "ART_EVENT", - "BOOK_EVENT", - "CLASS_EVENT", - "COMEDY_EVENT", - "CONFERENCE_EVENT", - "DANCE_EVENT", - "DINING_EVENT", - "FAMILY_EVENT", - "FESTIVAL_EVENT", - "FITNESS", - "FOOD_TASTING", - "FUNDRAISER", - "LECTURE", - "MEETUP", - "MOVIE_EVENT", - "MUSIC_EVENT", - "NEIGHBORHOOD", - "NIGHTLIFE", - "OTHER", - "RELIGIOUS_EVENT", - "SHOPPING", - "SPORTS_EVENT", - "THEATER_EVENT", - "VOLUNTEERING", - "WORKSHOP", + "CLASSIC_LITERATURE", + "COMEDY", + "CRAFTS", + "DANCE", + "DRINKS", + "FITNESS_AND_WORKOUTS", + "FOODS", + "GAMES", + "GARDENING", + "HEALTHY_LIVING_AND_SELF_CARE", + "HEALTH_AND_MEDICAL", + "HOME_AND_GARDEN", + "MUSIC_AND_AUDIO", + "PARTIES", + "PROFESSIONAL_NETWORKING", + "RELIGIONS", + "SHOPPING_EVENT", + "SOCIAL_ISSUES", + "SPORTS", + "THEATER", + "TV_AND_MOVIES", + "VISUAL_ARTS", ] ONLINE_EVENT_FORMAT = [ @@ -132,28 +129,26 @@ class Event < AdObject has_edge :live_videos do |edge| edge.get 'NullNode' - end - - has_edge :livevideos do |edge| - edge.post do |api| + edge.post 'LiveVideo' do |api| api.has_param :content_tags, { list: 'string' } api.has_param :description, 'string' api.has_param :enable_backup_ingest, 'bool' api.has_param :encoding_settings, 'string' + api.has_param :event_params, 'object' api.has_param :fisheye_video_cropped, 'bool' api.has_param :front_z_rotation, 'double' api.has_param :is_audio_only, 'bool' api.has_param :is_spherical, 'bool' api.has_param :original_fov, 'int' api.has_param :privacy, 'string' - api.has_param :projection, { enum: %w{CUBEMAP EQUIRECTANGULAR HALF_EQUIRECTANGULAR }} + api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }} api.has_param :published, 'bool' api.has_param :schedule_custom_profile_image, 'file' - api.has_param :spatial_audio_format, { enum: %w{ambiX_4 }} - api.has_param :status, { enum: %w{LIVE_NOW SCHEDULED_CANCELED SCHEDULED_LIVE SCHEDULED_UNPUBLISHED UNPUBLISHED }} - api.has_param :stereoscopic_mode, { enum: %w{LEFT_RIGHT MONO TOP_BOTTOM }} + api.has_param :spatial_audio_format, { enum: -> { LiveVideo::SPATIAL_AUDIO_FORMAT }} + api.has_param :status, { enum: -> { LiveVideo::STATUS }} + api.has_param :stereoscopic_mode, { enum: -> { LiveVideo::STEREOSCOPIC_MODE }} api.has_param :stop_on_delete_stream, 'bool' - api.has_param :stream_type, { enum: %w{AMBIENT REGULAR }} + api.has_param :stream_type, { enum: -> { LiveVideo::STREAM_TYPE }} api.has_param :title, 'string' end end diff --git a/lib/facebook_ads/ad_objects/event_source_group.rb b/lib/facebook_ads/ad_objects/event_source_group.rb index 3f558c9e..8f0889a6 100644 --- a/lib/facebook_ads/ad_objects/event_source_group.rb +++ b/lib/facebook_ads/ad_objects/event_source_group.rb @@ -31,6 +31,7 @@ class EventSourceGroup < AdObject field :event_sources, { list: 'ExternalEventSource' } field :id, 'string' field :name, 'string' + field :owner_business, 'Business' has_no_delete has_edge :shared_accounts do |edge| diff --git a/lib/facebook_ads/ad_objects/experience.rb b/lib/facebook_ads/ad_objects/experience.rb index 223f3b8b..95e8b540 100644 --- a/lib/facebook_ads/ad_objects/experience.rb +++ b/lib/facebook_ads/ad_objects/experience.rb @@ -28,7 +28,7 @@ module FacebookAds class Experience < AdObject field :description, 'string' - field :from, 'User' + field :from, 'object' field :id, 'string' field :name, 'string' field :with, { list: 'User' } diff --git a/lib/facebook_ads/ad_objects/extended_credit.rb b/lib/facebook_ads/ad_objects/extended_credit.rb index 5629e704..f682682e 100644 --- a/lib/facebook_ads/ad_objects/extended_credit.rb +++ b/lib/facebook_ads/ad_objects/extended_credit.rb @@ -35,6 +35,7 @@ class ExtendedCredit < AdObject field :is_access_revoked, 'bool' field :is_automated_experience, 'bool' field :legal_entity_name, 'string' + field :liable_address, 'CrmAddress' field :liable_biz_name, 'string' field :max_balance, 'CurrencyAmount' field :online_max_balance, 'CurrencyAmount' @@ -42,7 +43,9 @@ class ExtendedCredit < AdObject field :owner_business_name, 'string' field :partition_from, 'string' field :receiving_credit_allocation_config, 'ExtendedCreditAllocationConfig' + field :send_bill_to_address, 'CrmAddress' field :send_bill_to_biz_name, 'string' + field :sold_to_address, 'CrmAddress' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb b/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb index 8e84338c..12321e87 100644 --- a/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb +++ b/lib/facebook_ads/ad_objects/extended_credit_invoice_group.rb @@ -28,11 +28,15 @@ module FacebookAds class ExtendedCreditInvoiceGroup < AdObject field :auto_enroll, 'bool' + field :bill_to_address, 'CrmAddress' field :customer_po_number, 'string' field :email, 'object' field :emails, { list: 'string' } field :id, 'string' + field :liable_address, 'CrmAddress' field :name, 'string' + field :sold_to_address, 'CrmAddress' + has_no_delete has_edge :ad_accounts do |edge| edge.delete do |api| diff --git a/lib/facebook_ads/ad_objects/flight.rb b/lib/facebook_ads/ad_objects/flight.rb index f0417cc9..e17e132b 100644 --- a/lib/facebook_ads/ad_objects/flight.rb +++ b/lib/facebook_ads/ad_objects/flight.rb @@ -35,6 +35,11 @@ class Flight < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :applinks, 'CatalogItemAppLinks' field :category_specific_fields, 'CatalogSubVerticalList' @@ -54,6 +59,7 @@ class Flight < AdObject field :sanitized_images, { list: 'string' } field :unit_price, 'object' field :url, 'string' + field :visibility, { enum: -> { VISIBILITY }} has_no_delete has_edge :augmented_realities_metadata do |edge| diff --git a/lib/facebook_ads/ad_objects/fundraiser_person_to_charity.rb b/lib/facebook_ads/ad_objects/fundraiser_person_to_charity.rb index da42e971..f1cb8062 100644 --- a/lib/facebook_ads/ad_objects/fundraiser_person_to_charity.rb +++ b/lib/facebook_ads/ad_objects/fundraiser_person_to_charity.rb @@ -55,6 +55,10 @@ class FundraiserPersonToCharity < AdObject field :uri, 'string' has_no_delete + has_edge :donations do |edge| + edge.get + end + has_edge :end_fundraiser do |edge| edge.post end diff --git a/lib/facebook_ads/ad_objects/game_item.rb b/lib/facebook_ads/ad_objects/game_item.rb new file mode 100644 index 00000000..7180adca --- /dev/null +++ b/lib/facebook_ads/ad_objects/game_item.rb @@ -0,0 +1,48 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class GameItem < AdObject + ACTION = [ + "CONSUME", + "DROP", + "MARK", + ] + + + field :count, 'int' + field :created, 'datetime' + field :ext_id, 'string' + field :id, 'string' + field :item_def, 'string' + field :owner, 'User' + field :status, 'string' + field :updated, 'datetime' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/group.rb b/lib/facebook_ads/ad_objects/group.rb index 4ea2ab8e..ebb55a8a 100644 --- a/lib/facebook_ads/ad_objects/group.rb +++ b/lib/facebook_ads/ad_objects/group.rb @@ -39,49 +39,18 @@ class Group < AdObject ] PURPOSE = [ - "BOOKS", "CASUAL", - "CLOSE_FRIENDS", - "CLUB", - "COUPLE", "COWORKERS", "CUSTOM", - "DEALS", - "EPHEMERAL", - "EVENT_PLANNING", - "FAMILY", - "FANDOM_RADAR", - "FANTASY_LEAGUE", - "FITNESS", "FOR_SALE", "FOR_WORK", - "FRATERNITY", "GAME", "HEALTH_SUPPORT", - "HIGH_SCHOOL_FORUM", "JOBS", "LEARNING", - "MENTORSHIP", - "MUSIC_CASA_BUNDLE", - "NEIGHBORS", "NONE", - "OCULUS", "PARENTING", - "PARENTS", - "PROJECT", - "REAL_WORLD", - "REAL_WORLD_AT_WORK", - "SCHOOL_CLASS", - "SORORITY", - "SPORTS", - "SPORTS_ACTIVITY", "STREAMER", - "STUDY_GROUP", - "SUPPORT", - "TEAMMATES", - "THEME", - "TOGETHER_VR", - "TRAVEL_PLANNING", "WORK_ANNOUNCEMENT", "WORK_DEMO_GROUP", "WORK_DISCUSSION", @@ -89,63 +58,30 @@ class Group < AdObject "WORK_FEEDBACK", "WORK_FOR_SALE", "WORK_GARDEN", - "WORK_GUEST_GROUP", + "WORK_INTEGRITY", "WORK_LEARNING", "WORK_MENTORSHIP", "WORK_MULTI_COMPANY", "WORK_RECRUITING", - "WORK_RESUME_REVIEW", "WORK_SOCIAL", "WORK_STAGES", "WORK_TEAM", "WORK_TEAMWORK", - "WORK_VC_CALL", ] GROUP_TYPE = [ - "BOOKS", "CASUAL", - "CLOSE_FRIENDS", - "CLUB", - "COUPLE", "COWORKERS", "CUSTOM", - "DEALS", - "EPHEMERAL", - "EVENT_PLANNING", - "FAMILY", - "FANDOM_RADAR", - "FANTASY_LEAGUE", - "FITNESS", "FOR_SALE", "FOR_WORK", - "FRATERNITY", "GAME", "HEALTH_SUPPORT", - "HIGH_SCHOOL_FORUM", "JOBS", "LEARNING", - "MENTORSHIP", - "MUSIC_CASA_BUNDLE", - "NEIGHBORS", "NONE", - "OCULUS", "PARENTING", - "PARENTS", - "PROJECT", - "REAL_WORLD", - "REAL_WORLD_AT_WORK", - "SCHOOL_CLASS", - "SORORITY", - "SPORTS", - "SPORTS_ACTIVITY", "STREAMER", - "STUDY_GROUP", - "SUPPORT", - "TEAMMATES", - "THEME", - "TOGETHER_VR", - "TRAVEL_PLANNING", "WORK_ANNOUNCEMENT", "WORK_DEMO_GROUP", "WORK_DISCUSSION", @@ -153,17 +89,15 @@ class Group < AdObject "WORK_FEEDBACK", "WORK_FOR_SALE", "WORK_GARDEN", - "WORK_GUEST_GROUP", + "WORK_INTEGRITY", "WORK_LEARNING", "WORK_MENTORSHIP", "WORK_MULTI_COMPANY", "WORK_RECRUITING", - "WORK_RESUME_REVIEW", "WORK_SOCIAL", "WORK_STAGES", "WORK_TEAM", "WORK_TEAMWORK", - "WORK_VC_CALL", ] @@ -174,6 +108,7 @@ class Group < AdObject field :email, 'string' field :icon, 'string' field :id, 'string' + field :install, 'object' field :link, 'string' field :member_count, 'int' field :member_request_count, 'int' @@ -213,6 +148,13 @@ class Group < AdObject end end + has_edge :attachment_surfaces do |edge| + edge.get + edge.post do |api| + api.has_param :title, 'hash' + end + end + has_edge :docs do |edge| edge.get end @@ -221,6 +163,14 @@ class Group < AdObject edge.get 'Event' end + has_edge :featured_cards do |edge| + edge.get + edge.post do |api| + api.has_param :description, 'hash' + api.has_param :title, 'hash' + end + end + has_edge :feed do |edge| edge.get 'Post' do |api| api.has_param :include_hidden, 'bool' @@ -376,12 +326,12 @@ class Group < AdObject api.has_param :description, 'string' api.has_param :enable_backup_ingest, 'bool' api.has_param :encoding_settings, 'string' + api.has_param :event_params, 'object' api.has_param :fisheye_video_cropped, 'bool' api.has_param :front_z_rotation, 'double' api.has_param :is_audio_only, 'bool' api.has_param :is_spherical, 'bool' api.has_param :original_fov, 'int' - api.has_param :planned_start_time, 'int' api.has_param :privacy, 'string' api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }} api.has_param :published, 'bool' diff --git a/lib/facebook_ads/ad_objects/home_listing.rb b/lib/facebook_ads/ad_objects/home_listing.rb index 708a46f9..892207ad 100644 --- a/lib/facebook_ads/ad_objects/home_listing.rb +++ b/lib/facebook_ads/ad_objects/home_listing.rb @@ -35,9 +35,15 @@ class HomeListing < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :ac_type, 'string' field :additional_fees_description, 'string' + field :address, 'object' field :agent_company, 'string' field :agent_email, 'string' field :agent_fb_page_id, 'Page' @@ -48,9 +54,11 @@ class HomeListing < AdObject field :area_unit, 'string' field :availability, 'string' field :category_specific_fields, 'CatalogSubVerticalList' + field :co_2_emission_rating_eu, 'object' field :currency, 'string' field :days_on_market, 'int' field :description, 'string' + field :energy_rating_eu, 'object' field :furnish_type, 'string' field :group_id, 'string' field :heating_type, 'string' @@ -77,8 +85,8 @@ class HomeListing < AdObject field :sanitized_images, { list: 'string' } field :unit_price, 'object' field :url, 'string' + field :visibility, { enum: -> { VISIBILITY }} field :year_built, 'int' - field :address, 'object' has_edge :augmented_realities_metadata do |edge| edge.get diff --git a/lib/facebook_ads/ad_objects/hotel.rb b/lib/facebook_ads/ad_objects/hotel.rb index 495ca06c..dc59e811 100644 --- a/lib/facebook_ads/ad_objects/hotel.rb +++ b/lib/facebook_ads/ad_objects/hotel.rb @@ -35,6 +35,11 @@ class Hotel < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :address, 'string' field :applinks, 'CatalogItemAppLinks' @@ -58,6 +63,7 @@ class Hotel < AdObject field :star_rating, 'double' field :unit_price, 'object' field :url, 'string' + field :visibility, { enum: -> { VISIBILITY }} field :base_price, 'int' has_edge :augmented_realities_metadata do |edge| diff --git a/lib/facebook_ads/ad_objects/hotel_room.rb b/lib/facebook_ads/ad_objects/hotel_room.rb index 3336409d..edfd6697 100644 --- a/lib/facebook_ads/ad_objects/hotel_room.rb +++ b/lib/facebook_ads/ad_objects/hotel_room.rb @@ -38,6 +38,7 @@ class HotelRoom < AdObject field :room_id, 'string' field :sale_price, 'string' field :url, 'string' + has_no_post has_no_delete has_edge :pricing_variables do |edge| diff --git a/lib/facebook_ads/ad_objects/ig_media.rb b/lib/facebook_ads/ad_objects/ig_media.rb index 24b02c6b..bbb270b2 100644 --- a/lib/facebook_ads/ad_objects/ig_media.rb +++ b/lib/facebook_ads/ad_objects/ig_media.rb @@ -32,6 +32,7 @@ class IgMedia < AdObject field :id, 'string' field :ig_id, 'string' field :is_comment_enabled, 'bool' + field :is_shared_to_feed, 'bool' field :like_count, 'int' field :media_product_type, 'string' field :media_type, 'string' @@ -57,10 +58,23 @@ class IgMedia < AdObject has_edge :insights do |edge| edge.get 'InstagramInsightsResult' do |api| + api.has_param :breakdown, { list: { enum: -> { InstagramInsightsResult::BREAKDOWN }} } api.has_param :metric, { list: { enum: -> { InstagramInsightsResult::METRIC }} } api.has_param :period, { list: { enum: -> { InstagramInsightsResult::PERIOD }} } end end + has_edge :product_tags do |edge| + edge.delete do |api| + api.has_param :child_index, 'int' + api.has_param :deleted_tags, { list: 'hash' } + end + edge.get 'ShadowIgMediaProductTags' + edge.post 'ShadowIgMediaProductTags' do |api| + api.has_param :child_index, 'int' + api.has_param :updated_tags, { list: 'hash' } + end + end + end end diff --git a/lib/facebook_ads/ad_objects/ig_user.rb b/lib/facebook_ads/ad_objects/ig_user.rb index 04c7d0ff..2464b447 100644 --- a/lib/facebook_ads/ad_objects/ig_user.rb +++ b/lib/facebook_ads/ad_objects/ig_user.rb @@ -37,13 +37,26 @@ class IgUser < AdObject field :mentioned_comment, 'IgComment' field :mentioned_media, 'IgMedia' field :name, 'string' + field :owner_business, 'Business' field :profile_picture_url, 'string' + field :shopping_product_tag_eligibility, 'bool' field :shopping_review_status, 'string' field :username, 'string' field :website, 'string' has_no_post has_no_delete + has_edge :available_catalogs do |edge| + edge.get + end + + has_edge :catalog_product_search do |edge| + edge.get do |api| + api.has_param :catalog_id, 'string' + api.has_param :q, 'string' + end + end + has_edge :content_publishing_limit do |edge| edge.get do |api| api.has_param :since, 'datetime' @@ -52,9 +65,12 @@ class IgUser < AdObject has_edge :insights do |edge| edge.get 'InstagramInsightsResult' do |api| + api.has_param :breakdown, { list: { enum: -> { InstagramInsightsResult::BREAKDOWN }} } api.has_param :metric, { list: { enum: -> { InstagramInsightsResult::METRIC }} } + api.has_param :metric_type, { enum: -> { InstagramInsightsResult::METRIC_TYPE }} api.has_param :period, { list: { enum: -> { InstagramInsightsResult::PERIOD }} } api.has_param :since, 'datetime' + api.has_param :timeframe, { enum: -> { InstagramInsightsResult::TIMEFRAME }} api.has_param :until, 'datetime' end end @@ -74,10 +90,13 @@ class IgUser < AdObject edge.post 'IgMedia' do |api| api.has_param :caption, 'string' api.has_param :children, { list: 'string' } + api.has_param :cover_url, 'string' api.has_param :image_url, 'string' api.has_param :is_carousel_item, 'bool' api.has_param :location_id, 'string' api.has_param :media_type, 'string' + api.has_param :product_tags, { list: 'hash' } + api.has_param :share_to_feed, 'bool' api.has_param :thumb_offset, 'string' api.has_param :user_tags, { list: 'hash' } api.has_param :video_url, 'string' @@ -98,6 +117,16 @@ class IgUser < AdObject end end + has_edge :product_appeal do |edge| + edge.get do |api| + api.has_param :product_id, 'string' + end + edge.post do |api| + api.has_param :appeal_reason, 'string' + api.has_param :product_id, 'string' + end + end + has_edge :recently_searched_hashtags do |edge| edge.get end diff --git a/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb b/lib/facebook_ads/ad_objects/igbc_ads_permission.rb similarity index 88% rename from lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb rename to lib/facebook_ads/ad_objects/igbc_ads_permission.rb index 283e689f..5f9e1f49 100644 --- a/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +++ b/lib/facebook_ads/ad_objects/igbc_ads_permission.rb @@ -25,13 +25,12 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class ThirdPartyMeasurementReportDataset < AdObject + class IgbcAdsPermission < AdObject - field :category, 'string' field :id, 'string' - field :partner, 'Business' - field :product, 'string' - field :schema, { list: 'object' } + field :permission_type, 'string' + field :status, 'string' + has_no_post has_no_delete end diff --git a/lib/facebook_ads/ad_objects/image_copyright.rb b/lib/facebook_ads/ad_objects/image_copyright.rb index bc3b9a8c..046a403e 100644 --- a/lib/facebook_ads/ad_objects/image_copyright.rb +++ b/lib/facebook_ads/ad_objects/image_copyright.rb @@ -297,6 +297,7 @@ class ImageCopyright < AdObject field :tags, { list: 'string' } field :title, 'string' field :update_time, 'datetime' + has_no_delete end end diff --git a/lib/facebook_ads/ad_objects/insights_result.rb b/lib/facebook_ads/ad_objects/insights_result.rb index 046a7cb0..91ad7d7d 100644 --- a/lib/facebook_ads/ad_objects/insights_result.rb +++ b/lib/facebook_ads/ad_objects/insights_result.rb @@ -54,6 +54,7 @@ class InsightsResult < AdObject "days_28", "lifetime", "month", + "total_over_range", "week", ] diff --git a/lib/facebook_ads/ad_objects/instagram_insights_result.rb b/lib/facebook_ads/ad_objects/instagram_insights_result.rb index b854babf..4f7e346d 100644 --- a/lib/facebook_ads/ad_objects/instagram_insights_result.rb +++ b/lib/facebook_ads/ad_objects/instagram_insights_result.rb @@ -26,6 +26,13 @@ module FacebookAds # pull request for this class. class InstagramInsightsResult < AdObject + BREAKDOWN = [ + "action_type", + "follow_type", + "story_navigation_action_type", + "surface_type", + ] + METRIC = [ "carousel_album_engagement", "carousel_album_impressions", @@ -35,15 +42,20 @@ class InstagramInsightsResult < AdObject "comments", "engagement", "exits", + "follows", "impressions", "likes", + "navigation", "plays", + "profile_activity", + "profile_visits", "reach", "replies", "saved", "shares", "taps_back", "taps_forward", + "total_interactions", "video_views", ] @@ -52,15 +64,32 @@ class InstagramInsightsResult < AdObject "days_28", "lifetime", "month", + "total_over_range", "week", ] + METRIC_TYPE = [ + "default", + "time_series", + "total_value", + ] + + TIMEFRAME = [ + "last_14_days", + "last_30_days", + "last_90_days", + "prev_month", + "this_month", + "this_week", + ] + field :description, 'string' field :id, 'string' field :name, 'string' field :period, 'string' field :title, 'string' + field :total_value, 'object' field :values, { list: 'InstagramInsightsValue' } has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/instagram_user.rb b/lib/facebook_ads/ad_objects/instagram_user.rb index f5325a84..b8089b55 100644 --- a/lib/facebook_ads/ad_objects/instagram_user.rb +++ b/lib/facebook_ads/ad_objects/instagram_user.rb @@ -35,6 +35,7 @@ class InstagramUser < AdObject field :is_published, 'bool' field :media_count, 'int' field :mini_shop_storefront, 'Shop' + field :owner_business, 'Business' field :profile_pic, 'string' field :username, 'string' has_no_post diff --git a/lib/facebook_ads/ad_objects/instant_article_insights_query_result.rb b/lib/facebook_ads/ad_objects/instant_article_insights_query_result.rb index 53dabf23..8e6715a3 100644 --- a/lib/facebook_ads/ad_objects/instant_article_insights_query_result.rb +++ b/lib/facebook_ads/ad_objects/instant_article_insights_query_result.rb @@ -43,6 +43,7 @@ class InstantArticleInsightsQueryResult < AdObject "days_28", "lifetime", "month", + "total_over_range", "week", ] diff --git a/lib/facebook_ads/ad_objects/jobs_job.rb b/lib/facebook_ads/ad_objects/jobs_job.rb index 342369ca..01093360 100644 --- a/lib/facebook_ads/ad_objects/jobs_job.rb +++ b/lib/facebook_ads/ad_objects/jobs_job.rb @@ -35,6 +35,11 @@ class JobsJob < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :address, 'object' field :applinks, 'CatalogItemAppLinks' @@ -46,6 +51,13 @@ class JobsJob < AdObject field :custom_label_4, 'string' field :custom_label_5, 'string' field :custom_label_6, 'string' + field :custom_number_0, 'int' + field :custom_number_1, 'int' + field :custom_number_2, 'int' + field :custom_number_3, 'int' + field :custom_number_4, 'int' + field :custom_number_5, 'int' + field :custom_number_6, 'int' field :id, 'string' field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }} field :images, { list: 'string' } @@ -53,6 +65,7 @@ class JobsJob < AdObject field :sanitized_images, { list: 'string' } field :unit_price, 'object' field :url, 'string' + field :visibility, { enum: -> { VISIBILITY }} has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/leadgen_form.rb b/lib/facebook_ads/ad_objects/leadgen_form.rb index 163746d3..37b4db6c 100644 --- a/lib/facebook_ads/ad_objects/leadgen_form.rb +++ b/lib/facebook_ads/ad_objects/leadgen_form.rb @@ -38,6 +38,7 @@ class LeadgenForm < AdObject "CS_CZ", "DA_DK", "DE_DE", + "EL_GR", "EN_GB", "EN_US", "ES_ES", @@ -72,6 +73,7 @@ class LeadgenForm < AdObject field :block_display_for_non_targeted_viewer, 'bool' field :context_card, 'object' field :created_time, 'datetime' + field :creator, 'User' field :expired_leads_count, 'int' field :follow_up_action_text, 'string' field :follow_up_action_url, 'string' diff --git a/lib/facebook_ads/ad_objects/live_video.rb b/lib/facebook_ads/ad_objects/live_video.rb index 66909195..332bdd33 100644 --- a/lib/facebook_ads/ad_objects/live_video.rb +++ b/lib/facebook_ads/ad_objects/live_video.rb @@ -26,29 +26,12 @@ module FacebookAds # pull request for this class. class LiveVideo < AdObject - BROADCAST_STATUS = [ - "LIVE", - "LIVE_STOPPED", - "PROCESSING", - "SCHEDULED_CANCELED", - "SCHEDULED_EXPIRED", - "SCHEDULED_LIVE", - "SCHEDULED_UNPUBLISHED", - "UNPUBLISHED", - "VOD", - ] - PROJECTION = [ "CUBEMAP", "EQUIRECTANGULAR", "HALF_EQUIRECTANGULAR", ] - SOURCE = [ - "owner", - "target", - ] - SPATIAL_AUDIO_FORMAT = [ "ambiX_4", ] @@ -72,6 +55,23 @@ class LiveVideo < AdObject "REGULAR", ] + BROADCAST_STATUS = [ + "LIVE", + "LIVE_STOPPED", + "PROCESSING", + "SCHEDULED_CANCELED", + "SCHEDULED_EXPIRED", + "SCHEDULED_LIVE", + "SCHEDULED_UNPUBLISHED", + "UNPUBLISHED", + "VOD", + ] + + SOURCE = [ + "owner", + "target", + ] + LIVE_COMMENT_MODERATION_SETTING = [ "DEFAULT", "DISCUSSION", diff --git a/lib/facebook_ads/ad_objects/local_service_business.rb b/lib/facebook_ads/ad_objects/local_service_business.rb index ccc3e2e1..a43f0105 100644 --- a/lib/facebook_ads/ad_objects/local_service_business.rb +++ b/lib/facebook_ads/ad_objects/local_service_business.rb @@ -55,6 +55,11 @@ class LocalServiceBusiness < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :address, 'object' field :applinks, 'CatalogItemAppLinks' @@ -70,6 +75,11 @@ class LocalServiceBusiness < AdObject field :custom_label_2, 'string' field :custom_label_3, 'string' field :custom_label_4, 'string' + field :custom_number_0, 'int' + field :custom_number_1, 'int' + field :custom_number_2, 'int' + field :custom_number_3, 'int' + field :custom_number_4, 'int' field :description, 'string' field :expiration_date, 'string' field :gtin, 'string' @@ -87,6 +97,7 @@ class LocalServiceBusiness < AdObject field :unit_price, 'object' field :url, 'string' field :vendor_id, 'string' + field :visibility, { enum: -> { VISIBILITY }} has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/adoptable_pet.rb b/lib/facebook_ads/ad_objects/media_title.rb similarity index 75% rename from lib/facebook_ads/ad_objects/adoptable_pet.rb rename to lib/facebook_ads/ad_objects/media_title.rb index 924a29cc..3070c896 100644 --- a/lib/facebook_ads/ad_objects/adoptable_pet.rb +++ b/lib/facebook_ads/ad_objects/media_title.rb @@ -25,7 +25,7 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class AdoptablePet < AdObject + class MediaTitle < AdObject IMAGE_FETCH_STATUS = [ "DIRECT_UPLOAD", "FETCHED", @@ -35,39 +35,39 @@ class AdoptablePet < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + + CONTENT_CATEGORY = [ + "MOVIE", + "MUSIC", + "TV_SHOW", + ] + - field :address, 'object' - field :adoptable_pet_id, 'string' - field :adoption_application_form_url, 'string' - field :age_bucket, 'string' - field :animal_type, 'string' field :applinks, 'CatalogItemAppLinks' - field :availability, 'string' - field :breed, 'string' field :category_specific_fields, 'CatalogSubVerticalList' - field :coat_length, 'string' - field :color, 'string' + field :content_category, 'string' field :currency, 'string' field :description, 'string' - field :features, { list: 'string' } - field :gender, 'string' + field :fb_page_alias, 'string' + field :fb_page_id, 'Page' + field :genres, { list: 'string' } field :id, 'string' field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }} field :images, { list: 'string' } - field :name, 'string' + field :kg_fb_id, 'string' + field :media_title_id, 'string' field :price, 'string' field :sanitized_images, { list: 'string' } - field :secondary_color, 'string' - field :shelter_email, 'string' - field :shelter_name, 'string' - field :shelter_page_id, 'Page' - field :shelter_phone, 'string' - field :size, 'string' - field :tertiary_color, 'string' + field :title, 'string' + field :title_display_name, 'string' field :unit_price, 'object' field :url, 'string' - has_no_post - has_no_delete + field :visibility, { enum: -> { VISIBILITY }} + field :wiki_data_item, 'string' has_edge :augmented_realities_metadata do |edge| edge.get diff --git a/lib/facebook_ads/ad_objects/native_offer.rb b/lib/facebook_ads/ad_objects/native_offer.rb deleted file mode 100644 index 77a143bd..00000000 --- a/lib/facebook_ads/ad_objects/native_offer.rb +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class NativeOffer < AdObject - UNIQUE_CODES_FILE_CODE_TYPE = [ - "barcodes", - "discount_and_barcodes", - "discount_and_discount", - "discount_codes", - "instore_barcodes", - "instore_discount_codes", - "online_discount_codes", - ] - - BARCODE_TYPE = [ - "CODE128", - "CODE128B", - "CODE93", - "DATABAR", - "DATABAR_EXPANDED", - "DATABAR_EXPANDED_STACKED", - "DATABAR_LIMITED", - "DATAMATRIX", - "EAN", - "PDF417", - "QR", - "UPC_A", - "UPC_E", - ] - - LOCATION_TYPE = [ - "both", - "offline", - "online", - ] - - - field :barcode_photo, 'string' - field :barcode_photo_uri, 'string' - field :barcode_type, 'string' - field :barcode_value, 'string' - field :block_reshares, 'bool' - field :details, 'string' - field :disable_location, 'bool' - field :discounts, { list: 'NativeOfferDiscount' } - field :expiration_time, 'datetime' - field :id, 'string' - field :instore_code, 'string' - field :location_type, 'string' - field :max_save_count, 'int' - field :online_code, 'string' - field :page, 'Page' - field :page_set_id, 'string' - field :redemption_code, 'string' - field :redemption_link, 'string' - field :save_count, 'int' - field :terms, 'string' - field :title, 'string' - field :total_unique_codes, 'string' - field :unique_codes, 'string' - field :unique_codes_file_code_type, 'string' - field :unique_codes_file_name, 'string' - field :unique_codes_file_upload_status, 'string' - has_no_post - has_no_delete - - has_edge :codes do |edge| - edge.post 'NativeOffer' do |api| - api.has_param :file, 'file' - api.has_param :unique_codes_file_code_type, { enum: -> { NativeOffer::UNIQUE_CODES_FILE_CODE_TYPE }} - end - end - - has_edge :nativeofferviews do |edge| - edge.post 'NativeOffer' do |api| - api.has_param :ad_account, 'string' - api.has_param :ad_image_hashes, { list: 'string' } - api.has_param :carousel_captions, { list: 'string' } - api.has_param :carousel_data, { list: 'object' } - api.has_param :carousel_links, { list: 'string' } - api.has_param :deeplinks, { list: 'string' } - api.has_param :image_crops, { list: 'hash' } - api.has_param :message, 'string' - api.has_param :photos, { list: 'string' } - api.has_param :place_data, 'object' - api.has_param :published, 'bool' - api.has_param :published_ads, 'bool' - api.has_param :urls, { list: 'string' } - api.has_param :videos, { list: 'string' } - end - end - - has_edge :views do |edge| - edge.get 'NativeOfferView' - end - - end -end diff --git a/lib/facebook_ads/ad_objects/native_offer_view.rb b/lib/facebook_ads/ad_objects/native_offer_view.rb deleted file mode 100644 index f03a0731..00000000 --- a/lib/facebook_ads/ad_objects/native_offer_view.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# FB:AUTOGEN - -module FacebookAds - # This class is auto-generated. - - # For any issues or feature requests related to this class, please let us know - # on github and we'll fix in our codegen framework. We'll not be able to accept - # pull request for this class. - - class NativeOfferView < AdObject - - field :id, 'string' - field :offer, 'NativeOffer' - field :save_count, 'int' - has_no_delete - - has_edge :photos do |edge| - edge.post 'NativeOfferView' do |api| - api.has_param :ad_account, 'string' - api.has_param :ad_image_hashes, { list: 'string' } - api.has_param :file, 'file' - api.has_param :image_crops, { list: 'hash' } - api.has_param :photos, { list: 'string' } - api.has_param :urls, { list: 'string' } - end - end - - has_edge :videos do |edge| - edge.post 'NativeOfferView' do |api| - api.has_param :videos, { list: 'string' } - end - end - - end -end diff --git a/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb b/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb index 9cd5166a..24061863 100644 --- a/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +++ b/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb @@ -44,6 +44,7 @@ class OfflineConversionDataSet < AdObject field :business, 'Business' field :config, 'string' field :creation_time, 'datetime' + field :creator, 'User' field :description, 'string' field :duplicate_entries, 'int' field :enable_auto_assign_to_accounts, 'bool' @@ -59,6 +60,7 @@ class OfflineConversionDataSet < AdObject field :match_rate_approx, 'int' field :matched_entries, 'int' field :name, 'string' + field :owner_business, 'Business' field :usage, 'OfflineConversionDataSetUsage' field :valid_entries, 'int' field :auto_assign_to_new_accounts_only, 'bool' diff --git a/lib/facebook_ads/ad_objects/page.rb b/lib/facebook_ads/ad_objects/page.rb index c2bd0179..7e5353b0 100644 --- a/lib/facebook_ads/ad_objects/page.rb +++ b/lib/facebook_ads/ad_objects/page.rb @@ -124,8 +124,10 @@ class Page < AdObject "PROFILE_PLUS_FACEBOOK_ACCESS", "PROFILE_PLUS_FULL_CONTROL", "PROFILE_PLUS_MANAGE", + "PROFILE_PLUS_MANAGE_LEADS", "PROFILE_PLUS_MESSAGING", "PROFILE_PLUS_MODERATE", + "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", "PROFILE_PLUS_REVENUE", "READ_PAGE_MAILBOXES", "VIEW_MONETIZATION_INSIGHTS", @@ -150,8 +152,10 @@ class Page < AdObject "PROFILE_PLUS_FACEBOOK_ACCESS", "PROFILE_PLUS_FULL_CONTROL", "PROFILE_PLUS_MANAGE", + "PROFILE_PLUS_MANAGE_LEADS", "PROFILE_PLUS_MESSAGING", "PROFILE_PLUS_MODERATE", + "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", "PROFILE_PLUS_REVENUE", "READ_PAGE_MAILBOXES", "VIEW_MONETIZATION_INSIGHTS", @@ -192,6 +196,60 @@ class Page < AdObject "CHAT_TAB", ] + BACKDATED_TIME_GRANULARITY = [ + "day", + "hour", + "min", + "month", + "none", + "year", + ] + + CHECKIN_ENTRY_POINT = [ + "BRANDING_CHECKIN", + "BRANDING_OTHER", + "BRANDING_PHOTO", + "BRANDING_STATUS", + ] + + FORMATTING = [ + "MARKDOWN", + "PLAINTEXT", + ] + + PLACE_ATTACHMENT_SETTING = [ + "1", + "2", + ] + + POST_SURFACES_BLACKLIST = [ + "1", + "2", + "3", + "4", + "5", + ] + + POSTING_TO_REDSPACE = [ + "disabled", + "enabled", + ] + + TARGET_SURFACE = [ + "STORY", + "TIMELINE", + ] + + UNPUBLISHED_CONTENT_TYPE = [ + "ADS_POST", + "DRAFT", + "INLINE_CREATED", + "PUBLISHED", + "REVIEWABLE_BRANDED_CONTENT", + "SCHEDULED", + "SCHEDULED_RECURRING", + ] + PUBLISH_STATUS = [ "DRAFT", "LIVE", @@ -259,7 +317,6 @@ class Page < AdObject "awards", "bio", "birthday", - "branded_camera", "category", "checkins", "company_overview", @@ -277,6 +334,7 @@ class Page < AdObject "hours", "inbox_labels", "invoice_access_invoice_change", + "invoice_access_invoice_draft_change", "invoice_access_onboarding_status_active", "leadgen", "leadgen_fat", @@ -304,7 +362,6 @@ class Page < AdObject "messaging_handovers", "messaging_optins", "messaging_optouts", - "messaging_page_feedback", "messaging_payments", "messaging_policy_enforcement", "messaging_postbacks", @@ -432,6 +489,7 @@ class Page < AdObject field :new_like_count, 'int' field :offer_eligible, 'bool' field :overall_star_rating, 'double' + field :owner_business, 'Business' field :page_token, 'string' field :parent_page, 'Page' field :parking, 'PageParking' @@ -515,6 +573,10 @@ class Page < AdObject edge.get 'Album' end + has_edge :ar_experience do |edge| + edge.get + end + has_edge :assigned_users do |edge| edge.delete do |api| api.has_param :user, 'int' @@ -666,10 +728,6 @@ class Page < AdObject end end - has_edge :copyright_whitelisted_partners do |edge| - edge.get 'Profile' - end - has_edge :crosspost_whitelisted_pages do |edge| edge.get 'Page' end @@ -712,6 +770,10 @@ class Page < AdObject end end + has_edge :fantasy_games do |edge| + edge.get + end + has_edge :feed do |edge| edge.get 'PagePost' do |api| api.has_param :include_hidden, 'bool' @@ -719,7 +781,7 @@ class Page < AdObject api.has_param :show_expired, 'bool' api.has_param :with, { enum: -> { PagePost::WITH }} end - edge.post do |api| + edge.post 'Page' do |api| api.has_param :actions, 'object' api.has_param :adaptive_type, 'string' api.has_param :album_id, 'string' @@ -733,10 +795,10 @@ class Page < AdObject api.has_param :attached_media, { list: 'object' } api.has_param :audience_exp, 'bool' api.has_param :backdated_time, 'datetime' - api.has_param :backdated_time_granularity, { enum: %w{day hour min month none year }} + api.has_param :backdated_time_granularity, { enum: -> { Page::BACKDATED_TIME_GRANULARITY }} api.has_param :call_to_action, 'object' api.has_param :caption, 'string' - api.has_param :checkin_entry_point, { enum: %w{BRANDING_CHECKIN BRANDING_OTHER BRANDING_PHOTO BRANDING_STATUS }} + api.has_param :checkin_entry_point, { enum: -> { Page::CHECKIN_ENTRY_POINT }} api.has_param :child_attachments, { list: 'object' } api.has_param :client_mutation_id, 'string' api.has_param :composer_entry_picker, 'string' @@ -757,7 +819,7 @@ class Page < AdObject api.has_param :expanded_height, 'int' api.has_param :expanded_width, 'int' api.has_param :feed_targeting, 'object' - api.has_param :formatting, { enum: %w{MARKDOWN PLAINTEXT }} + api.has_param :formatting, { enum: -> { Page::FORMATTING }} api.has_param :fun_fact_prompt_id, 'int' api.has_param :fun_fact_toastee_id, 'int' api.has_param :has_nickname, 'bool' @@ -794,11 +856,11 @@ class Page < AdObject api.has_param :page_recommendation, 'string' api.has_param :picture, 'string' api.has_param :place, 'object' - api.has_param :place_attachment_setting, { enum: %w{1 2 }} + api.has_param :place_attachment_setting, { enum: -> { Page::PLACE_ATTACHMENT_SETTING }} api.has_param :place_list, 'string' api.has_param :place_list_data, { list: 'string' } - api.has_param :post_surfaces_blacklist, { list: { enum: %w{1 2 3 4 5 }} } - api.has_param :posting_to_redspace, { enum: %w{disabled enabled }} + api.has_param :post_surfaces_blacklist, { list: { enum: -> { Page::POST_SURFACES_BLACKLIST }} } + api.has_param :posting_to_redspace, { enum: -> { Page::POSTING_TO_REDSPACE }} api.has_param :privacy, 'string' api.has_param :prompt_id, 'string' api.has_param :prompt_tracking_string, 'string' @@ -817,7 +879,7 @@ class Page < AdObject api.has_param :sponsor_relationship, 'int' api.has_param :suggested_place_id, 'object' api.has_param :tags, { list: 'int' } - api.has_param :target_surface, { enum: %w{STORY TIMELINE }} + api.has_param :target_surface, { enum: -> { Page::TARGET_SURFACE }} api.has_param :targeting, 'object' api.has_param :text_format_metadata, 'string' api.has_param :text_format_preset_id, 'string' @@ -827,7 +889,7 @@ class Page < AdObject api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' api.has_param :tracking_info, 'string' - api.has_param :unpublished_content_type, { enum: %w{ADS_POST DRAFT INLINE_CREATED PUBLISHED REVIEWABLE_BRANDED_CONTENT SCHEDULED SCHEDULED_RECURRING }} + api.has_param :unpublished_content_type, { enum: -> { Page::UNPUBLISHED_CONTENT_TYPE }} api.has_param :user_selected_tags, 'bool' api.has_param :video_start_time_ms, 'int' api.has_param :viewer_coordinates, 'object' @@ -867,6 +929,7 @@ class Page < AdObject has_edge :insights do |edge| edge.get 'InsightsResult' do |api| + api.has_param :breakdown, { list: 'object' } api.has_param :date_preset, { enum: -> { InsightsResult::DATE_PRESET }} api.has_param :metric, { list: 'object' } api.has_param :period, { enum: -> { InsightsResult::PERIOD }} @@ -918,6 +981,10 @@ class Page < AdObject end end + has_edge :invoice_access_bank_account do |edge| + edge.get + end + has_edge :leadgen_forms do |edge| edge.get 'LeadgenForm' edge.post 'LeadgenForm' do |api| @@ -957,13 +1024,13 @@ class Page < AdObject api.has_param :description, 'string' api.has_param :enable_backup_ingest, 'bool' api.has_param :encoding_settings, 'string' + api.has_param :event_params, 'object' api.has_param :fisheye_video_cropped, 'bool' api.has_param :front_z_rotation, 'double' api.has_param :game_show, 'hash' api.has_param :is_audio_only, 'bool' api.has_param :is_spherical, 'bool' api.has_param :original_fov, 'int' - api.has_param :planned_start_time, 'int' api.has_param :privacy, 'string' api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }} api.has_param :published, 'bool' @@ -1024,6 +1091,7 @@ class Page < AdObject has_edge :message_attachments do |edge| edge.post do |api| api.has_param :message, 'object' + api.has_param :platform, { enum: %w{INSTAGRAM MESSENGER }} end end @@ -1037,6 +1105,7 @@ class Page < AdObject api.has_param :recipient, 'object' api.has_param :sender_action, { enum: -> { Page::SENDER_ACTION }} api.has_param :tag, 'object' + api.has_param :thread_control, 'object' end end @@ -1065,33 +1134,6 @@ class Page < AdObject end end - has_edge :nativeoffers do |edge| - edge.get 'NativeOffer' - edge.post 'NativeOffer' do |api| - api.has_param :barcode_photo, 'int' - api.has_param :barcode_type, { enum: -> { NativeOffer::BARCODE_TYPE }} - api.has_param :barcode_value, 'string' - api.has_param :block_reshares, 'bool' - api.has_param :commerce_product_item, 'string' - api.has_param :commerce_store, 'string' - api.has_param :commerce_store_collection, 'string' - api.has_param :details, 'string' - api.has_param :disable_location, 'bool' - api.has_param :discounts, { list: 'object' } - api.has_param :expiration_time, 'datetime' - api.has_param :instore_code, 'string' - api.has_param :location_type, { enum: -> { NativeOffer::LOCATION_TYPE }} - api.has_param :max_save_count, 'int' - api.has_param :online_code, 'string' - api.has_param :page_set_id, 'string' - api.has_param :redemption_code, 'string' - api.has_param :redemption_link, 'string' - api.has_param :terms, 'string' - api.has_param :unique_barcodes, 'int' - api.has_param :unique_codes, 'int' - end - end - has_edge :nlp_configs do |edge| edge.post 'Page' do |api| api.has_param :api_version, 'object' @@ -1104,6 +1146,10 @@ class Page < AdObject end end + has_edge :notification_message_tokens do |edge| + edge.get 'UserPageOneTimeOptInTokenSettings' + end + has_edge :notification_messages_dev_support do |edge| edge.post 'Page' do |api| api.has_param :developer_action, { enum: -> { Page::DEVELOPER_ACTION }} @@ -1331,20 +1377,9 @@ class Page < AdObject end has_edge :tabs do |edge| - edge.delete do |api| - api.has_param :tab, 'string' - end edge.get 'Tab' do |api| api.has_param :tab, { list: 'string' } end - edge.post 'Page' do |api| - api.has_param :app_id, 'int' - api.has_param :custom_image_url, 'string' - api.has_param :custom_name, 'string' - api.has_param :is_non_connection_landing_tab, 'bool' - api.has_param :position, 'int' - api.has_param :tab, 'string' - end end has_edge :tagged do |edge| @@ -1383,22 +1418,22 @@ class Page < AdObject api.has_param :selected_rule_id, 'string' api.has_param :source, { enum: -> { VideoCopyrightRule::SOURCE }} end - edge.post do |api| + edge.post 'VideoCopyrightRule' do |api| api.has_param :condition_groups, { list: 'object' } api.has_param :name, 'string' end end has_edge :video_copyrights do |edge| - edge.post do |api| + edge.post 'VideoCopyright' do |api| api.has_param :attribution_id, 'string' - api.has_param :content_category, { enum: %w{episode movie web }} + api.has_param :content_category, { enum: -> { VideoCopyright::CONTENT_CATEGORY }} api.has_param :copyright_content_id, 'string' api.has_param :excluded_ownership_countries, { list: 'string' } api.has_param :excluded_ownership_segments, { list: 'object' } api.has_param :is_reference_disabled, 'bool' api.has_param :is_reference_video, 'bool' - api.has_param :monitoring_type, { enum: %w{AUDIO_ONLY VIDEO_AND_AUDIO VIDEO_ONLY }} + api.has_param :monitoring_type, { enum: -> { VideoCopyright::MONITORING_TYPE }} api.has_param :ownership_countries, { list: 'string' } api.has_param :rule_id, 'string' api.has_param :tags, { list: 'string' } @@ -1411,6 +1446,20 @@ class Page < AdObject edge.get 'VideoList' end + has_edge :video_reels do |edge| + edge.get 'AdVideo' + edge.post 'AdVideo' do |api| + api.has_param :description, 'string' + api.has_param :feed_targeting, 'object' + api.has_param :scheduled_publish_time, 'datetime' + api.has_param :targeting, 'object' + api.has_param :title, 'string' + api.has_param :upload_phase, { enum: -> { AdVideo::UPLOAD_PHASE }} + api.has_param :video_id, 'object' + api.has_param :video_state, { enum: -> { AdVideo::VIDEO_STATE }} + end + end + has_edge :videos do |edge| edge.get 'AdVideo' do |api| api.has_param :type, { enum: -> { AdVideo::TYPE }} @@ -1516,6 +1565,9 @@ class Page < AdObject has_edge :visitor_posts do |edge| edge.get 'PagePost' do |api| api.has_param :include_hidden, 'bool' + api.has_param :limit, 'int' + api.has_param :show_expired, 'bool' + api.has_param :with, { enum: -> { PagePost::WITH }} end end diff --git a/lib/facebook_ads/ad_objects/page_post.rb b/lib/facebook_ads/ad_objects/page_post.rb index c35ca008..af927bf2 100644 --- a/lib/facebook_ads/ad_objects/page_post.rb +++ b/lib/facebook_ads/ad_objects/page_post.rb @@ -118,12 +118,12 @@ class PagePost < AdObject api.has_param :order, { enum: -> { Comment::ORDER }} api.has_param :since, 'datetime' end - edge.post do |api| + edge.post 'Comment' do |api| api.has_param :attachment_id, 'string' api.has_param :attachment_share_url, 'string' api.has_param :attachment_url, 'string' api.has_param :comment, 'string' - api.has_param :comment_privacy_value, { enum: %w{DECLINED_BY_ADMIN_ASSISTANT DEFAULT_PRIVACY FRIENDS_AND_POST_OWNER FRIENDS_ONLY GRAPHQL_MULTIPLE_VALUE_HACK_DO_NOT_USE OWNER_OR_COMMENTER PENDING_APPROVAL REMOVED_BY_ADMIN_ASSISTANT SIDE_CONVERSATION SIDE_CONVERSATION_AND_POST_OWNER SPOTLIGHT_TAB }} + api.has_param :comment_privacy_value, { enum: -> { Comment::COMMENT_PRIVACY_VALUE }} api.has_param :feedback_source, 'string' api.has_param :message, 'string' api.has_param :nectar_module, 'string' diff --git a/lib/facebook_ads/ad_objects/canvas_template.rb b/lib/facebook_ads/ad_objects/page_post_experiment.rb similarity index 76% rename from lib/facebook_ads/ad_objects/canvas_template.rb rename to lib/facebook_ads/ad_objects/page_post_experiment.rb index 736a384d..3f7774b2 100644 --- a/lib/facebook_ads/ad_objects/canvas_template.rb +++ b/lib/facebook_ads/ad_objects/page_post_experiment.rb @@ -25,22 +25,21 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class CanvasTemplate < AdObject + class PagePostExperiment < AdObject - field :channels, 'map>' + field :auto_resolve_settings, 'object' + field :creation_time, 'datetime' + field :creator, 'User' + field :declared_winning_time, 'datetime' field :description, 'string' - field :document, 'Canvas' field :id, 'string' - field :is_multi_tab_supportable, 'bool' - field :is_new, 'bool' + field :insight_snapshots, 'map>' field :name, 'string' - field :objectives, 'hash' - field :owner_id, 'User' - field :required_capabilities, { list: 'string' } - field :snapshot_photo, 'Photo' - field :status, 'string' - field :sub_verticals, { list: 'string' } - field :verticals, 'hash' + field :optimization_goal, 'string' + field :publish_status, 'string' + field :publish_time, 'datetime' + field :scheduled_experiment_timestamp, 'datetime' + field :updated_time, 'datetime' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/page_upcoming_change.rb b/lib/facebook_ads/ad_objects/page_upcoming_change.rb index 43f3b724..ffc42fc9 100644 --- a/lib/facebook_ads/ad_objects/page_upcoming_change.rb +++ b/lib/facebook_ads/ad_objects/page_upcoming_change.rb @@ -33,6 +33,7 @@ class PageUpcomingChange < AdObject field :page, 'Page' field :proposal, 'PageChangeProposal' field :timer_status, 'string' + has_no_post has_no_delete end diff --git a/lib/facebook_ads/ad_objects/post.rb b/lib/facebook_ads/ad_objects/post.rb index ca92e43c..a6ff0ca5 100644 --- a/lib/facebook_ads/ad_objects/post.rb +++ b/lib/facebook_ads/ad_objects/post.rb @@ -166,12 +166,12 @@ class Post < AdObject api.has_param :order, { enum: -> { Comment::ORDER }} api.has_param :since, 'datetime' end - edge.post do |api| + edge.post 'Comment' do |api| api.has_param :attachment_id, 'string' api.has_param :attachment_share_url, 'string' api.has_param :attachment_url, 'string' api.has_param :comment, 'string' - api.has_param :comment_privacy_value, { enum: %w{DECLINED_BY_ADMIN_ASSISTANT DEFAULT_PRIVACY FRIENDS_AND_POST_OWNER FRIENDS_ONLY GRAPHQL_MULTIPLE_VALUE_HACK_DO_NOT_USE OWNER_OR_COMMENTER PENDING_APPROVAL REMOVED_BY_ADMIN_ASSISTANT SIDE_CONVERSATION SIDE_CONVERSATION_AND_POST_OWNER SPOTLIGHT_TAB }} + api.has_param :comment_privacy_value, { enum: -> { Comment::COMMENT_PRIVACY_VALUE }} api.has_param :feedback_source, 'string' api.has_param :message, 'string' api.has_param :nectar_module, 'string' diff --git a/lib/facebook_ads/ad_objects/private_lift_study_instance.rb b/lib/facebook_ads/ad_objects/private_lift_study_instance.rb index 08bba806..1fe7acbe 100644 --- a/lib/facebook_ads/ad_objects/private_lift_study_instance.rb +++ b/lib/facebook_ads/ad_objects/private_lift_study_instance.rb @@ -28,6 +28,7 @@ module FacebookAds class PrivateLiftStudyInstance < AdObject OPERATION = [ "AGGREGATE", + "CANCEL", "COMPUTE", "ID_MATCH", "NEXT", @@ -37,8 +38,12 @@ class PrivateLiftStudyInstance < AdObject field :breakdown_key, 'string' field :created_time, 'datetime' + field :feature_list, { list: 'string' } field :id, 'string' + field :issuer_certificate, 'string' field :latest_status_update_time, 'datetime' + field :run_id, 'string' + field :server_hostnames, { list: 'string' } field :server_ips, { list: 'string' } field :status, 'string' field :tier, 'string' diff --git a/lib/facebook_ads/ad_objects/product_catalog.rb b/lib/facebook_ads/ad_objects/product_catalog.rb index e6832fe5..909a50e1 100644 --- a/lib/facebook_ads/ad_objects/product_catalog.rb +++ b/lib/facebook_ads/ad_objects/product_catalog.rb @@ -95,8 +95,12 @@ class ProductCatalog < AdObject ] + field :ad_account_to_collaborative_ads_share_settings, 'CollaborativeAdsShareSettings' + field :agency_collaborative_ads_share_settings, 'CollaborativeAdsShareSettings' field :business, 'Business' + field :catalog_store, 'StoreCatalogSettings' field :commerce_merchant_settings, 'CommerceMerchantSettings' + field :creator_user, 'User' field :da_display_settings, 'ProductCatalogImageSettings' field :default_image_url, 'string' field :fallback_image_url, { list: 'string' } @@ -104,6 +108,7 @@ class ProductCatalog < AdObject field :id, 'string' field :is_catalog_segment, 'bool' field :name, 'string' + field :owner_business, 'Business' field :product_count, 'int' field :store_catalog_settings, 'StoreCatalogSettings' field :vertical, 'string' @@ -151,19 +156,6 @@ class ProductCatalog < AdObject api.has_param :bulk_pagination, 'bool' api.has_param :filter, 'object' end - edge.post 'AutomotiveModel' do |api| - api.has_param :automotive_model_id, 'string' - api.has_param :body_style, { enum: -> { AutomotiveModel::BODY_STYLE }} - api.has_param :currency, 'string' - api.has_param :description, 'string' - api.has_param :images, { list: 'object' } - api.has_param :make, 'string' - api.has_param :model, 'string' - api.has_param :price, 'int' - api.has_param :title, 'string' - api.has_param :url, 'string' - api.has_param :year, 'int' - end end has_edge :batch do |edge| @@ -174,9 +166,9 @@ class ProductCatalog < AdObject end end - has_edge :catalog_website_settings do |edge| - edge.post do |api| - api.has_param :is_allowed_to_crawl, 'bool' + has_edge :catalog_store do |edge| + edge.post 'StoreCatalogSettings' do |api| + api.has_param :page, 'int' end end @@ -192,11 +184,16 @@ class ProductCatalog < AdObject has_edge :check_batch_request_status do |edge| edge.get 'CheckBatchRequestStatus' do |api| + api.has_param :error_priority, { enum: -> { CheckBatchRequestStatus::ERROR_PRIORITY }} api.has_param :handle, 'string' api.has_param :load_ids_of_invalid_requests, 'bool' end end + has_edge :collaborative_ads_event_stats do |edge| + edge.get 'CatalogSegmentAllMatchCountLaser' + end + has_edge :collaborative_ads_lsb_image_bank do |edge| edge.get end @@ -213,6 +210,12 @@ class ProductCatalog < AdObject end end + has_edge :data_sources do |edge| + edge.get 'ProductCatalogDataSource' do |api| + api.has_param :ingestion_source_type, { enum: -> { ProductCatalogDataSource::INGESTION_SOURCE_TYPE }} + end + end + has_edge :destinations do |edge| edge.get 'Destination' do |api| api.has_param :bulk_pagination, 'bool' @@ -223,6 +226,7 @@ class ProductCatalog < AdObject has_edge :diagnostics do |edge| edge.get 'ProductCatalogDiagnosticGroup' do |api| api.has_param :affected_channels, { list: { enum: -> { ProductCatalogDiagnosticGroup::AFFECTED_CHANNELS }} } + api.has_param :affected_entities, { list: { enum: -> { ProductCatalogDiagnosticGroup::AFFECTED_ENTITIES }} } api.has_param :affected_features, { list: { enum: -> { ProductCatalogDiagnosticGroup::AFFECTED_FEATURES }} } api.has_param :severities, { list: { enum: -> { ProductCatalogDiagnosticGroup::SEVERITIES }} } api.has_param :types, { list: { enum: -> { ProductCatalogDiagnosticGroup::TYPES }} } @@ -330,9 +334,13 @@ class ProductCatalog < AdObject end has_edge :media_titles do |edge| - edge.post do |api| + edge.get 'MediaTitle' do |api| + api.has_param :bulk_pagination, 'bool' + api.has_param :filter, 'object' + end + edge.post 'MediaTitle' do |api| api.has_param :applinks, 'object' - api.has_param :content_category, { enum: %w{MOVIE MUSIC TV_SHOW }} + api.has_param :content_category, { enum: -> { MediaTitle::CONTENT_CATEGORY }} api.has_param :currency, 'string' api.has_param :description, 'string' api.has_param :fb_page_id, 'string' @@ -420,6 +428,8 @@ class ProductCatalog < AdObject has_edge :products do |edge| edge.get 'ProductItem' do |api| api.has_param :bulk_pagination, 'bool' + api.has_param :error_priority, { enum: -> { ProductItem::ERROR_PRIORITY }} + api.has_param :error_type, { enum: -> { ProductItem::ERROR_TYPE }} api.has_param :filter, 'object' api.has_param :return_only_approved_products, 'bool' end diff --git a/lib/facebook_ads/ad_objects/product_catalog_data_source.rb b/lib/facebook_ads/ad_objects/product_catalog_data_source.rb new file mode 100644 index 00000000..7f3567de --- /dev/null +++ b/lib/facebook_ads/ad_objects/product_catalog_data_source.rb @@ -0,0 +1,46 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class ProductCatalogDataSource < AdObject + INGESTION_SOURCE_TYPE = [ + "ALL", + "PRIMARY", + "SUPPLEMENTARY", + ] + + + field :app_id, 'string' + field :id, 'string' + field :ingestion_source_type, 'string' + field :name, 'string' + field :upload_type, 'string' + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb b/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb index 8ffdd8e7..4d660ef5 100644 --- a/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb +++ b/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb @@ -34,6 +34,12 @@ class ProductCatalogDiagnosticGroup < AdObject "us_marketplace", ] + AFFECTED_ENTITY = [ + "product_catalog", + "product_item", + "product_set", + ] + AFFECTED_FEATURES = [ "augmented_reality", "checkout", @@ -45,6 +51,7 @@ class ProductCatalogDiagnosticGroup < AdObject ] TYPE = [ + "AR_VISIBILITY_ISSUES", "ATTRIBUTES_INVALID", "ATTRIBUTES_MISSING", "CATEGORY", @@ -55,12 +62,19 @@ class ProductCatalogDiagnosticGroup < AdObject "SHOPS_VISIBILITY_ISSUES", ] + AFFECTED_ENTITIES = [ + "product_catalog", + "product_item", + "product_set", + ] + SEVERITIES = [ "MUST_FIX", "OPPORTUNITY", ] TYPES = [ + "AR_VISIBILITY_ISSUES", "ATTRIBUTES_INVALID", "ATTRIBUTES_MISSING", "CATEGORY", @@ -73,9 +87,11 @@ class ProductCatalogDiagnosticGroup < AdObject field :affected_channels, { list: { enum: -> { AFFECTED_CHANNELS }} } + field :affected_entity, { enum: -> { AFFECTED_ENTITY }} field :affected_features, { list: { enum: -> { AFFECTED_FEATURES }} } field :diagnostics, { list: 'object' } field :error_code, 'int' + field :number_of_affected_entities, 'int' field :number_of_affected_items, 'int' field :severity, { enum: -> { SEVERITY }} field :subtitle, 'string' diff --git a/lib/facebook_ads/ad_objects/product_feed.rb b/lib/facebook_ads/ad_objects/product_feed.rb index f28fff7a..3f9c47ff 100644 --- a/lib/facebook_ads/ad_objects/product_feed.rb +++ b/lib/facebook_ads/ad_objects/product_feed.rb @@ -35,6 +35,11 @@ class ProductFeed < AdObject "TILDE", ] + INGESTION_SOURCE_TYPE = [ + "primary_feed", + "supplementary_feed", + ] + QUOTED_FIELDS_MODE = [ "AUTODETECT", "OFF", @@ -52,7 +57,6 @@ class ProductFeed < AdObject ] FEED_TYPE = [ - "AUTO", "AUTOMOTIVE_MODEL", "DESTINATION", "FLIGHT", @@ -60,7 +64,6 @@ class ProductFeed < AdObject "HOTEL", "HOTEL_ROOM", "LOCAL_INVENTORY", - "MARKET", "MEDIA_TITLE", "OFFER", "PRODUCTS", @@ -69,11 +72,6 @@ class ProductFeed < AdObject "VEHICLE_OFFER", ] - INGESTION_SOURCE_TYPE = [ - "PRIMARY_FEED", - "SUPPLEMENTARY_FEED", - ] - ITEM_SUB_TYPE = [ "APPLIANCES", "BABY_FEEDING", @@ -104,6 +102,7 @@ class ProductFeed < AdObject ] OVERRIDE_TYPE = [ + "BATCH_API_LANGUAGE_OR_COUNTRY", "CATALOG_SEGMENT_CUSTOMIZE_DEFAULT", "COUNTRY", "LANGUAGE", @@ -120,7 +119,7 @@ class ProductFeed < AdObject field :encoding, 'string' field :file_name, 'string' field :id, 'string' - field :ingestion_source_type, 'string' + field :ingestion_source_type, { enum: -> { INGESTION_SOURCE_TYPE }} field :item_sub_type, 'string' field :latest_upload, 'ProductFeedUpload' field :migrated_from_feed_id, 'string' @@ -173,19 +172,28 @@ class ProductFeed < AdObject end end + has_edge :media_titles do |edge| + edge.get 'MediaTitle' do |api| + api.has_param :bulk_pagination, 'bool' + api.has_param :filter, 'object' + end + end + has_edge :products do |edge| edge.get 'ProductItem' do |api| api.has_param :bulk_pagination, 'bool' + api.has_param :error_priority, { enum: -> { ProductItem::ERROR_PRIORITY }} + api.has_param :error_type, { enum: -> { ProductItem::ERROR_TYPE }} api.has_param :filter, 'object' end end has_edge :rules do |edge| edge.get 'ProductFeedRule' - edge.post do |api| + edge.post 'ProductFeedRule' do |api| api.has_param :attribute, 'string' api.has_param :params, 'hash' - api.has_param :rule_type, { enum: %w{fallback_rule letter_case_rule mapping_rule regex_replace_rule value_mapping_rule }} + api.has_param :rule_type, { enum: -> { ProductFeedRule::RULE_TYPE }} end end diff --git a/lib/facebook_ads/ad_objects/product_feed_missing_feed_item_replacement.rb b/lib/facebook_ads/ad_objects/product_feed_missing_feed_item_replacement.rb index 1565eadf..325812ae 100644 --- a/lib/facebook_ads/ad_objects/product_feed_missing_feed_item_replacement.rb +++ b/lib/facebook_ads/ad_objects/product_feed_missing_feed_item_replacement.rb @@ -29,7 +29,6 @@ class ProductFeedMissingFeedItemReplacement < AdObject field :home_listing, 'object' field :product_item, 'object' - field :store_product_item, 'object' field :vehicle, 'object' has_no_id has_no_get diff --git a/lib/facebook_ads/ad_objects/product_feed_rule.rb b/lib/facebook_ads/ad_objects/product_feed_rule.rb index 9d3bab20..2b1ffc02 100644 --- a/lib/facebook_ads/ad_objects/product_feed_rule.rb +++ b/lib/facebook_ads/ad_objects/product_feed_rule.rb @@ -26,6 +26,14 @@ module FacebookAds # pull request for this class. class ProductFeedRule < AdObject + RULE_TYPE = [ + "fallback_rule", + "letter_case_rule", + "mapping_rule", + "regex_replace_rule", + "value_mapping_rule", + ] + field :attribute, 'string' field :id, 'string' diff --git a/lib/facebook_ads/ad_objects/product_feed_upload.rb b/lib/facebook_ads/ad_objects/product_feed_upload.rb index 51e889a8..52e3447c 100644 --- a/lib/facebook_ads/ad_objects/product_feed_upload.rb +++ b/lib/facebook_ads/ad_objects/product_feed_upload.rb @@ -56,7 +56,9 @@ class ProductFeedUpload < AdObject end has_edge :errors do |edge| - edge.get 'ProductFeedUploadError' + edge.get 'ProductFeedUploadError' do |api| + api.has_param :error_priority, { enum: -> { ProductFeedUploadError::ERROR_PRIORITY }} + end end end diff --git a/lib/facebook_ads/ad_objects/product_feed_upload_error.rb b/lib/facebook_ads/ad_objects/product_feed_upload_error.rb index c53e40ac..85f142a8 100644 --- a/lib/facebook_ads/ad_objects/product_feed_upload_error.rb +++ b/lib/facebook_ads/ad_objects/product_feed_upload_error.rb @@ -37,6 +37,12 @@ class ProductFeedUploadError < AdObject "warning", ] + ERROR_PRIORITY = [ + "HIGH", + "LOW", + "MEDIUM", + ] + field :affected_surfaces, { list: { enum: -> { AFFECTED_SURFACES }} } field :description, 'string' diff --git a/lib/facebook_ads/ad_objects/product_group.rb b/lib/facebook_ads/ad_objects/product_group.rb index 291e5cbe..cc6c1b1e 100644 --- a/lib/facebook_ads/ad_objects/product_group.rb +++ b/lib/facebook_ads/ad_objects/product_group.rb @@ -34,20 +34,20 @@ class ProductGroup < AdObject has_edge :products do |edge| edge.get 'ProductItem' - edge.post do |api| + edge.post 'ProductItem' do |api| api.has_param :additional_image_urls, { list: 'string' } api.has_param :additional_variant_attributes, 'hash' api.has_param :android_app_name, 'string' api.has_param :android_class, 'string' api.has_param :android_package, 'string' api.has_param :android_url, 'string' - api.has_param :availability, { enum: %w{available for order discontinued in stock out of stock pending preorder }} + api.has_param :availability, { enum: -> { ProductItem::AVAILABILITY }} api.has_param :brand, 'string' api.has_param :category, 'string' api.has_param :checkout_url, 'string' api.has_param :color, 'string' - api.has_param :commerce_tax_category, { enum: %w{FB_ANIMAL FB_ANIMAL_SUPP FB_APRL FB_APRL_ACCESSORIES FB_APRL_ATHL_UNIF FB_APRL_CASES FB_APRL_CLOTHING FB_APRL_COSTUME FB_APRL_CSTM FB_APRL_FORMAL FB_APRL_HANDBAG FB_APRL_JEWELRY FB_APRL_SHOE FB_APRL_SHOE_ACC FB_APRL_SWIM FB_APRL_SWIM_CHIL FB_APRL_SWIM_CVR FB_ARTS FB_ARTS_HOBBY FB_ARTS_PARTY FB_ARTS_PARTY_GIFT_CARD FB_ARTS_TICKET FB_BABY FB_BABY_BATH FB_BABY_BLANKET FB_BABY_DIAPER FB_BABY_GIFT_SET FB_BABY_HEALTH FB_BABY_NURSING FB_BABY_POTTY_TRN FB_BABY_SAFE FB_BABY_TOYS FB_BABY_TRANSPORT FB_BABY_TRANSPORT_ACC FB_BAGS FB_BAGS_BKPK FB_BAGS_BOXES FB_BAGS_BRFCS FB_BAGS_CSMT_BAG FB_BAGS_DFFL FB_BAGS_DIPR FB_BAGS_FNNY FB_BAGS_GRMT FB_BAGS_LUGG FB_BAGS_LUG_ACC FB_BAGS_MSGR FB_BAGS_TOTE FB_BAGS_TRN_CAS FB_BLDG FB_BLDG_ACC FB_BLDG_CNSMB FB_BLDG_FENCE FB_BLDG_FUEL_TNK FB_BLDG_HT_VNT FB_BLDG_LOCK FB_BLDG_MATRL FB_BLDG_PLMB FB_BLDG_PUMP FB_BLDG_PWRS FB_BLDG_STR_TANK FB_BLDG_S_ENG FB_BLDG_TL_ACC FB_BLDG_TOOL FB_BUSIND FB_BUSIND_ADVERTISING FB_BUSIND_AGRICULTURE FB_BUSIND_AUTOMATION FB_BUSIND_HEAVY_MACH FB_BUSIND_LAB FB_BUSIND_MEDICAL FB_BUSIND_RETAIL FB_BUSIND_SANITARY_CT FB_BUSIND_SIGN FB_BUSIND_STORAGE FB_BUSIND_STORAGE_ACC FB_BUSIND_WORK_GEAR FB_CAMERA_ACC FB_CAMERA_CAMERA FB_CAMERA_OPTIC FB_CAMERA_OPTICS FB_CAMERA_PHOTO FB_ELEC FB_ELEC_ACC FB_ELEC_ARCDADE FB_ELEC_AUDIO FB_ELEC_CIRCUIT FB_ELEC_COMM FB_ELEC_COMPUTER FB_ELEC_GPS_ACC FB_ELEC_GPS_NAV FB_ELEC_GPS_TRK FB_ELEC_MARINE FB_ELEC_NETWORK FB_ELEC_PART FB_ELEC_PRINT FB_ELEC_RADAR FB_ELEC_SFTWR FB_ELEC_SPEED_RDR FB_ELEC_TELEVISION FB_ELEC_TOLL FB_ELEC_VIDEO FB_ELEC_VID_GM_ACC FB_ELEC_VID_GM_CNSL FB_FOOD FB_FURN FB_FURN_BABY FB_FURN_BENCH FB_FURN_CART FB_FURN_CHAIR FB_FURN_CHAIR_ACC FB_FURN_DIVIDE FB_FURN_DIVIDE_ACC FB_FURN_ENT_CTR FB_FURN_FUTN FB_FURN_FUTN_PAD FB_FURN_OFFICE FB_FURN_OFFICE_ACC FB_FURN_OTTO FB_FURN_OUTDOOR FB_FURN_OUTDOOR_ACC FB_FURN_SETS FB_FURN_SHELVE_ACC FB_FURN_SHLF FB_FURN_SOFA FB_FURN_SOFA_ACC FB_FURN_STORAGE FB_FURN_TABL FB_FURN_TABL_ACC FB_GENERIC_TAXABLE FB_HLTH FB_HLTH_HLTH FB_HLTH_JWL_CR FB_HLTH_LILP_BLM FB_HLTH_LTN_SPF FB_HLTH_PRSL_CR FB_HLTH_SKN_CR FB_HMGN FB_HMGN_BATH FB_HMGN_DCOR FB_HMGN_EMGY FB_HMGN_FPLC FB_HMGN_FPLC_ACC FB_HMGN_GS_SFT FB_HMGN_HS_ACC FB_HMGN_HS_APP FB_HMGN_HS_SPL FB_HMGN_KTCN FB_HMGN_LAWN FB_HMGN_LGHT FB_HMGN_LINN FB_HMGN_LT_ACC FB_HMGN_OTDR FB_HMGN_POOL FB_HMGN_SCTY FB_HMGN_SMK_ACC FB_HMGN_UMBR FB_HMGN_UMBR_ACC FB_MDIA FB_MDIA_BOOK FB_MDIA_DVDS FB_MDIA_MAG FB_MDIA_MANL FB_MDIA_MUSC FB_MDIA_PRJ_PLN FB_MDIA_SHT_MUS FB_OFFC FB_OFFC_BKAC FB_OFFC_CRTS FB_OFFC_DSKP FB_OFFC_EQIP FB_OFFC_FLNG FB_OFFC_GNRL FB_OFFC_INSTM FB_OFFC_LP_DSK FB_OFFC_MATS FB_OFFC_NM_PLT FB_OFFC_PPR_HNDL FB_OFFC_PRSNT_SPL FB_OFFC_SEALR FB_OFFC_SHIP_SPL FB_RLGN FB_RLGN_CMNY FB_RLGN_ITEM FB_RLGN_WEDD FB_SFTWR FB_SFWR_CMPTR FB_SFWR_DGTL_GD FB_SFWR_GAME FB_SHIPPING FB_SPOR FB_SPORT_ATHL FB_SPORT_ATHL_CLTH FB_SPORT_ATHL_SHOE FB_SPORT_ATHL_SPRT FB_SPORT_EXRCS FB_SPORT_INDR_GM FB_SPORT_OTDR_GM FB_TOYS FB_TOYS_EQIP FB_TOYS_GAME FB_TOYS_PZZL FB_TOYS_TMRS FB_TOYS_TOYS FB_VEHI FB_VEHI_PART }} - api.has_param :condition, { enum: %w{cpo new open_box_new refurbished used used_fair used_good used_like_new }} + api.has_param :commerce_tax_category, { enum: -> { ProductItem::COMMERCE_TAX_CATEGORY }} + api.has_param :condition, { enum: -> { ProductItem::CONDITION }} api.has_param :currency, 'string' api.has_param :custom_data, 'hash' api.has_param :custom_label_0, 'string' @@ -63,7 +63,7 @@ class ProductGroup < AdObject api.has_param :description, 'string' api.has_param :expiration_date, 'string' api.has_param :fb_product_category, 'string' - api.has_param :gender, { enum: %w{female male unisex }} + api.has_param :gender, { enum: -> { ProductItem::GENDER }} api.has_param :gtin, 'string' api.has_param :image_url, 'string' api.has_param :inventory, 'int' @@ -78,7 +78,7 @@ class ProductGroup < AdObject api.has_param :iphone_url, 'string' api.has_param :launch_date, 'string' api.has_param :manufacturer_part_number, 'string' - api.has_param :marked_for_product_launch, { enum: %w{default marked not_marked }} + api.has_param :marked_for_product_launch, { enum: -> { ProductItem::MARKED_FOR_PRODUCT_LAUNCH }} api.has_param :material, 'string' api.has_param :mobile_link, 'string' api.has_param :name, 'string' @@ -99,7 +99,7 @@ class ProductGroup < AdObject api.has_param :size, 'string' api.has_param :start_date, 'string' api.has_param :url, 'string' - api.has_param :visibility, { enum: %w{published staging }} + api.has_param :visibility, { enum: -> { ProductItem::VISIBILITY }} api.has_param :windows_phone_app_id, 'string' api.has_param :windows_phone_app_name, 'string' api.has_param :windows_phone_url, 'string' diff --git a/lib/facebook_ads/ad_objects/product_item.rb b/lib/facebook_ads/ad_objects/product_item.rb index a8f8ce01..dff40ff1 100644 --- a/lib/facebook_ads/ad_objects/product_item.rb +++ b/lib/facebook_ads/ad_objects/product_item.rb @@ -299,6 +299,89 @@ class ProductItem < AdObject "FB_VEHI_PART", ] + ERROR_PRIORITY = [ + "HIGH", + "LOW", + "MEDIUM", + ] + + ERROR_TYPE = [ + "AR_DELETED_DUE_TO_UPDATE", + "AR_POLICY_VIOLATED", + "AVAILABLE", + "BAD_QUALITY_IMAGE", + "CANNOT_EDIT_SUBSCRIPTION_PRODUCTS", + "CRAWLED_AVAILABILITY_MISMATCH", + "DIGITAL_GOODS_NOT_AVAILABLE_FOR_CHECKOUT", + "DUPLICATE_IMAGES", + "DUPLICATE_TITLE_AND_DESCRIPTION", + "GENERIC_INVALID_FIELD", + "HIDDEN_UNTIL_PRODUCT_LAUNCH", + "IMAGE_FETCH_FAILED", + "IMAGE_FETCH_FAILED_BAD_GATEWAY", + "IMAGE_FETCH_FAILED_FILE_SIZE_EXCEEDED", + "IMAGE_FETCH_FAILED_FORBIDDEN", + "IMAGE_FETCH_FAILED_LINK_BROKEN", + "IMAGE_FETCH_FAILED_TIMED_OUT", + "IMAGE_RESOLUTION_LOW", + "INACTIVE_SHOPIFY_PRODUCT", + "INVALID_COMMERCE_TAX_CATEGORY", + "INVALID_IMAGES", + "INVALID_MONETIZER_RETURN_POLICY", + "INVALID_PRE_ORDER_PARAMS", + "INVALID_SHIPPING_PROFILE_PARAMS", + "INVALID_SUBSCRIPTION_DISABLE_PARAMS", + "INVALID_SUBSCRIPTION_ENABLE_PARAMS", + "INVALID_SUBSCRIPTION_PARAMS", + "INVENTORY_ZERO_AVAILABILITY_IN_STOCK", + "IN_ANOTHER_PRODUCT_LAUNCH", + "ITEM_GROUP_NOT_SPECIFIED", + "ITEM_NOT_SHIPPABLE_FOR_SCA_SHOP", + "ITEM_OVERRIDE_NOT_VISIBLE", + "ITEM_STALE_OUT_OF_STOCK", + "MINI_SHOPS_DISABLED_BY_USER", + "MISSING_CHECKOUT", + "MISSING_CHECKOUT_CURRENCY", + "MISSING_COLOR", + "MISSING_COUNTRY_OVERRIDE_IN_SHIPPING_PROFILE", + "MISSING_INDIA_COMPLIANCE_FIELDS", + "MISSING_SHIPPING_PROFILE", + "MISSING_SIZE", + "MISSING_TAX_CATEGORY", + "NEGATIVE_COMMUNITY_FEEDBACK", + "NOT_ENOUGH_IMAGES", + "PART_OF_PRODUCT_LAUNCH", + "PRODUCT_EXPIRED", + "PRODUCT_ITEM_HIDDEN_FROM_ALL_SHOPS", + "PRODUCT_ITEM_NOT_INCLUDED_IN_ANY_SHOP", + "PRODUCT_ITEM_NOT_VISIBLE", + "PRODUCT_NOT_APPROVED", + "PRODUCT_NOT_DOMINANT_CURRENCY", + "PRODUCT_OUT_OF_STOCK", + "PRODUCT_URL_EQUALS_DOMAIN", + "PROPERTY_PRICE_CURRENCY_NOT_SUPPORTED", + "PROPERTY_PRICE_TOO_HIGH", + "PROPERTY_PRICE_TOO_LOW", + "PROPERTY_VALUE_CONTAINS_HTML_TAGS", + "PROPERTY_VALUE_DESCRIPTION_CONTAINS_OFF_PLATFORM_LINK", + "PROPERTY_VALUE_FORMAT", + "PROPERTY_VALUE_MISSING", + "PROPERTY_VALUE_MISSING_WARNING", + "PROPERTY_VALUE_NON_POSITIVE", + "PROPERTY_VALUE_STRING_EXCEEDS_LENGTH", + "PROPERTY_VALUE_STRING_TOO_SHORT", + "PROPERTY_VALUE_UPPERCASE_WARNING", + "QUALITY_DUPLICATED_DESCRIPTION", + "QUALITY_ITEM_LINK_BROKEN", + "QUALITY_ITEM_LINK_REDIRECTING", + "RETAILER_ID_NOT_PROVIDED", + "SHOPIFY_ITEM_MISSING_SHIPPING_PROFILE", + "SUBSCRIPTION_INFO_NOT_ENABLED_FOR_FEED", + "TAX_CATEGORY_NOT_SUPPORTED_IN_UK", + "UNSUPPORTED_PRODUCT_CATEGORY", + "VARIANT_ATTRIBUTE_ISSUE", + ] + MARKED_FOR_PRODUCT_LAUNCH = [ "default", "marked", @@ -592,6 +675,7 @@ class ProductItem < AdObject field :custom_number_3, 'string' field :custom_number_4, 'string' field :description, 'string' + field :errors, { list: 'ProductItemError' } field :expiration_date, 'string' field :fb_product_category, 'string' field :gender, { enum: -> { GENDER }} @@ -615,6 +699,7 @@ class ProductItem < AdObject field :origin_country, 'string' field :parent_product_id, 'string' field :pattern, 'string' + field :post_conversion_signal_based_enforcement_appeal_eligibility, 'bool' field :price, 'string' field :product_catalog, 'ProductCatalog' field :product_feed, 'ProductFeed' diff --git a/lib/facebook_ads/ad_objects/product_item_ar_data.rb b/lib/facebook_ads/ad_objects/product_item_ar_data.rb index b20220c1..57146073 100644 --- a/lib/facebook_ads/ad_objects/product_item_ar_data.rb +++ b/lib/facebook_ads/ad_objects/product_item_ar_data.rb @@ -36,6 +36,7 @@ class ProductItemArData < AdObject "MARKETPLACE", "MARKETPLACE_ADS_DEPRECATED", "MARKETPLACE_SHOPS", + "MINI_SHOPS", "OFFLINE_CONVERSIONS", "SHOPS", "UNIVERSAL_CHECKOUT", diff --git a/lib/facebook_ads/ad_objects/product_item_error.rb b/lib/facebook_ads/ad_objects/product_item_error.rb new file mode 100644 index 00000000..d2fffed1 --- /dev/null +++ b/lib/facebook_ads/ad_objects/product_item_error.rb @@ -0,0 +1,40 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class ProductItemError < AdObject + + field :description, 'string' + field :error_priority, 'string' + field :error_type, 'string' + field :title, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/product_set.rb b/lib/facebook_ads/ad_objects/product_set.rb index a94f43f5..178d718c 100644 --- a/lib/facebook_ads/ad_objects/product_set.rb +++ b/lib/facebook_ads/ad_objects/product_set.rb @@ -75,9 +75,18 @@ class ProductSet < AdObject end end + has_edge :media_titles do |edge| + edge.get 'MediaTitle' do |api| + api.has_param :bulk_pagination, 'bool' + api.has_param :filter, 'object' + end + end + has_edge :products do |edge| edge.get 'ProductItem' do |api| api.has_param :bulk_pagination, 'bool' + api.has_param :error_priority, { enum: -> { ProductItem::ERROR_PRIORITY }} + api.has_param :error_type, { enum: -> { ProductItem::ERROR_TYPE }} api.has_param :filter, 'object' end end diff --git a/lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb b/lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb index 79064cc8..8434f95c 100644 --- a/lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb +++ b/lib/facebook_ads/ad_objects/reach_frequency_estimates_placement_breakdown.rb @@ -33,6 +33,7 @@ class ReachFrequencyEstimatesPlacementBreakdown < AdObject field :ig_android, { list: 'double' } field :ig_ios, { list: 'double' } field :ig_other, { list: 'double' } + field :ig_reels, { list: 'double' } field :ig_story, { list: 'double' } field :instant_articles, { list: 'double' } field :instream_videos, { list: 'double' } diff --git a/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb b/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb index 7f36ea1f..980ef5fe 100644 --- a/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +++ b/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb @@ -121,6 +121,10 @@ class ReachFrequencyPrediction < AdObject field :name, 'string' field :objective, 'int' field :objective_name, 'string' + field :odax_objective, 'int' + field :odax_objective_name, 'string' + field :optimization_goal, 'int' + field :optimization_goal_name, 'string' field :pause_periods, { list: 'object' } field :placement_breakdown, 'ReachFrequencyEstimatesPlacementBreakdown' field :placement_breakdown_map, 'map' diff --git a/lib/facebook_ads/ad_objects/saved_audience.rb b/lib/facebook_ads/ad_objects/saved_audience.rb index 6d0a9e20..e7b3a71d 100644 --- a/lib/facebook_ads/ad_objects/saved_audience.rb +++ b/lib/facebook_ads/ad_objects/saved_audience.rb @@ -36,6 +36,7 @@ class SavedAudience < AdObject field :id, 'string' field :name, 'string' field :operation_status, 'CustomAudienceStatus' + field :owner_business, 'Business' field :page_deletion_marked_delete_time, 'int' field :permission_for_actions, 'AudiencePermissionForActions' field :run_status, 'string' diff --git a/lib/facebook_ads/ad_objects/shadow_ig_media_product_tags.rb b/lib/facebook_ads/ad_objects/shadow_ig_media_product_tags.rb new file mode 100644 index 00000000..ae70f7c7 --- /dev/null +++ b/lib/facebook_ads/ad_objects/shadow_ig_media_product_tags.rb @@ -0,0 +1,47 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class ShadowIgMediaProductTags < AdObject + + field :image_url, 'string' + field :is_checkout, 'bool' + field :merchant_id, 'int' + field :name, 'string' + field :price_string, 'string' + field :product_id, 'int' + field :review_status, 'string' + field :stripped_price_string, 'string' + field :stripped_sale_price_string, 'string' + field :x, 'double' + field :y, 'double' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/shop.rb b/lib/facebook_ads/ad_objects/shop.rb index a1ba6a25..ac302fb5 100644 --- a/lib/facebook_ads/ad_objects/shop.rb +++ b/lib/facebook_ads/ad_objects/shop.rb @@ -30,6 +30,7 @@ class Shop < AdObject field :fb_sales_channel, 'object' field :id, 'string' field :ig_sales_channel, 'object' + field :workspace, 'object' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/copyright_audio_asset.rb b/lib/facebook_ads/ad_objects/shop_order.rb similarity index 93% rename from lib/facebook_ads/ad_objects/copyright_audio_asset.rb rename to lib/facebook_ads/ad_objects/shop_order.rb index 20421af8..ea689695 100644 --- a/lib/facebook_ads/ad_objects/copyright_audio_asset.rb +++ b/lib/facebook_ads/ad_objects/shop_order.rb @@ -25,12 +25,10 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class CopyrightAudioAsset < AdObject + class ShopOrder < AdObject field :creation_time, 'datetime' field :id, 'string' - field :title, 'string' - field :update_time, 'datetime' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/store_catalog_settings.rb b/lib/facebook_ads/ad_objects/store_catalog_settings.rb index 2e69774c..8681ef14 100644 --- a/lib/facebook_ads/ad_objects/store_catalog_settings.rb +++ b/lib/facebook_ads/ad_objects/store_catalog_settings.rb @@ -29,6 +29,7 @@ class StoreCatalogSettings < AdObject field :id, 'string' field :page, 'Page' + has_no_post end end diff --git a/lib/facebook_ads/ad_objects/system_user.rb b/lib/facebook_ads/ad_objects/system_user.rb index c41a01cc..e8529065 100644 --- a/lib/facebook_ads/ad_objects/system_user.rb +++ b/lib/facebook_ads/ad_objects/system_user.rb @@ -67,7 +67,9 @@ class SystemUser < AdObject end has_edge :assigned_pages do |edge| - edge.get 'Page' + edge.get 'Page' do |api| + api.has_param :pages, { list: 'int' } + end end has_edge :assigned_product_catalogs do |edge| diff --git a/lib/facebook_ads/ad_objects/targeting.rb b/lib/facebook_ads/ad_objects/targeting.rb index 6fd05e78..0b9b8593 100644 --- a/lib/facebook_ads/ad_objects/targeting.rb +++ b/lib/facebook_ads/ad_objects/targeting.rb @@ -118,6 +118,7 @@ class Targeting < AdObject field :relationship_statuses, { list: 'int' } field :site_category, { list: 'string' } field :targeting_optimization, 'string' + field :targeting_relaxation_types, 'TargetingRelaxation' field :user_adclusters, { list: 'IdName' } field :user_device, { list: 'string' } field :user_event, { list: 'int' } diff --git a/lib/facebook_ads/ad_objects/targeting_relaxation.rb b/lib/facebook_ads/ad_objects/targeting_relaxation.rb index 4bb34522..e8981e1d 100644 --- a/lib/facebook_ads/ad_objects/targeting_relaxation.rb +++ b/lib/facebook_ads/ad_objects/targeting_relaxation.rb @@ -27,6 +27,7 @@ module FacebookAds class TargetingRelaxation < AdObject + field :custom_audience, 'int' field :lookalike, 'int' has_no_id has_no_get diff --git a/lib/facebook_ads/ad_objects/unified_thread.rb b/lib/facebook_ads/ad_objects/unified_thread.rb index 568d4504..19269d66 100644 --- a/lib/facebook_ads/ad_objects/unified_thread.rb +++ b/lib/facebook_ads/ad_objects/unified_thread.rb @@ -33,6 +33,7 @@ class UnifiedThread < AdObject field :can_reply, 'bool' + field :folder, 'string' field :former_participants, 'object' field :id, 'string' field :is_subscribed, 'bool' diff --git a/lib/facebook_ads/ad_objects/user.rb b/lib/facebook_ads/ad_objects/user.rb index ee69488a..e0c005c1 100644 --- a/lib/facebook_ads/ad_objects/user.rb +++ b/lib/facebook_ads/ad_objects/user.rb @@ -61,6 +61,7 @@ class User < AdObject field :gender, 'string' field :hometown, 'Page' field :id, 'string' + field :id_for_avatars, 'string' field :inspirational_people, { list: 'Experience' } field :install_type, 'string' field :installed, 'bool' @@ -81,7 +82,7 @@ class User < AdObject field :profile_pic, 'string' field :quotes, 'string' field :relationship_status, 'string' - field :shared_login_upgrade_required_by, 'datetime' + field :shared_login_upgrade_required_by, 'object' field :short_name, 'string' field :significant_other, 'User' field :sports, { list: 'Experience' } @@ -179,13 +180,19 @@ class User < AdObject end has_edge :assigned_pages do |edge| - edge.get 'Page' + edge.get 'Page' do |api| + api.has_param :pages, { list: 'int' } + end end has_edge :assigned_product_catalogs do |edge| edge.get 'ProductCatalog' end + has_edge :avatars do |edge| + edge.get + end + has_edge :business_users do |edge| edge.get 'BusinessUser' end @@ -359,6 +366,7 @@ class User < AdObject end has_edge :fundraisers do |edge| + edge.get 'FundraiserPersonToCharity' edge.post 'FundraiserPersonToCharity' do |api| api.has_param :charity_id, 'string' api.has_param :cover_photo, 'file' @@ -378,8 +386,8 @@ class User < AdObject end has_edge :game_items do |edge| - edge.post do |api| - api.has_param :action, { enum: %w{CONSUME DROP MARK }} + edge.post 'GameItem' do |api| + api.has_param :action, { enum: -> { GameItem::ACTION }} api.has_param :app_id, 'string' api.has_param :drop_table_id, 'string' api.has_param :ext_id, 'string' @@ -435,6 +443,7 @@ class User < AdObject api.has_param :description, 'string' api.has_param :enable_backup_ingest, 'bool' api.has_param :encoding_settings, 'string' + api.has_param :event_params, 'object' api.has_param :fisheye_video_cropped, 'bool' api.has_param :front_z_rotation, 'double' api.has_param :is_audio_only, 'bool' @@ -453,6 +462,10 @@ class User < AdObject end end + has_edge :messenger_desktop_performance_traces do |edge| + edge.post 'User' + end + has_edge :music do |edge| edge.get 'Page' do |api| api.has_param :target_id, 'string' @@ -463,9 +476,13 @@ class User < AdObject edge.post 'User' do |api| api.has_param :filtering, { list: { enum: -> { User::FILTERING }} } api.has_param :href, 'object' + api.has_param :label, 'string' + api.has_param :message, 'hash' api.has_param :notif_ids, { list: 'string' } + api.has_param :payload, 'string' api.has_param :read, 'bool' api.has_param :ref, 'string' + api.has_param :schedule_interval, 'int' api.has_param :seen, 'bool' api.has_param :template, 'object' api.has_param :type, { enum: -> { User::TYPE }} diff --git a/lib/facebook_ads/ad_objects/user_page_one_time_opt_in_token_settings.rb b/lib/facebook_ads/ad_objects/user_page_one_time_opt_in_token_settings.rb new file mode 100644 index 00000000..6efbd3bd --- /dev/null +++ b/lib/facebook_ads/ad_objects/user_page_one_time_opt_in_token_settings.rb @@ -0,0 +1,44 @@ +# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. +# +# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +# copy, modify, and distribute this software in source code or binary form for use +# in connection with the web services and APIs provided by Facebook. +# +# As with any software that integrates with the Facebook platform, your use of +# this software is subject to the Facebook Platform Policy +# [http://developers.facebook.com/policy/]. This copyright notice shall be +# included in all copies or substantial portions of the software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class UserPageOneTimeOptInTokenSettings < AdObject + + field :creation_timestamp, 'int' + field :notification_messages_frequency, 'string' + field :notification_messages_reoptin, 'string' + field :notification_messages_timezone, 'string' + field :notification_messages_token, 'string' + field :recipient_id, 'string' + field :token_expiry_timestamp, 'int' + field :topic_title, 'string' + field :user_token_status, 'string' + field :id, 'string' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/vehicle.rb b/lib/facebook_ads/ad_objects/vehicle.rb index 330ab105..0edd74a8 100644 --- a/lib/facebook_ads/ad_objects/vehicle.rb +++ b/lib/facebook_ads/ad_objects/vehicle.rb @@ -35,6 +35,11 @@ class Vehicle < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + AVAILABILITY = [ "AVAILABLE", "NOT_AVAILABLE", @@ -132,6 +137,7 @@ class Vehicle < AdObject field :condition, 'string' field :currency, 'string' field :custom_label_0, 'string' + field :custom_number_0, 'int' field :date_first_on_lot, 'string' field :dealer_communication_channel, 'string' field :dealer_email, 'string' @@ -170,6 +176,7 @@ class Vehicle < AdObject field :vehicle_specifications, { list: 'object' } field :vehicle_type, 'string' field :vin, 'string' + field :visibility, { enum: -> { VISIBILITY }} field :year, 'int' has_no_delete diff --git a/lib/facebook_ads/ad_objects/vehicle_offer.rb b/lib/facebook_ads/ad_objects/vehicle_offer.rb index 6d97680d..6319b428 100644 --- a/lib/facebook_ads/ad_objects/vehicle_offer.rb +++ b/lib/facebook_ads/ad_objects/vehicle_offer.rb @@ -35,6 +35,11 @@ class VehicleOffer < AdObject "PARTIAL_FETCH", ] + VISIBILITY = [ + "PUBLISHED", + "STAGING", + ] + field :amount_currency, 'string' field :amount_percentage, 'double' @@ -71,6 +76,7 @@ class VehicleOffer < AdObject field :unit_price, 'object' field :url, 'string' field :vehicle_offer_id, 'string' + field :visibility, { enum: -> { VISIBILITY }} field :year, 'int' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/video_copyright.rb b/lib/facebook_ads/ad_objects/video_copyright.rb index 67b5bb9b..d350c72f 100644 --- a/lib/facebook_ads/ad_objects/video_copyright.rb +++ b/lib/facebook_ads/ad_objects/video_copyright.rb @@ -57,5 +57,9 @@ class VideoCopyright < AdObject field :whitelisted_ids, { list: 'string' } has_no_delete + has_edge :update_records do |edge| + edge.get + end + end end diff --git a/lib/facebook_ads/ad_objects/whats_app_business_account.rb b/lib/facebook_ads/ad_objects/whats_app_business_account.rb index 0acae1fe..837bbda4 100644 --- a/lib/facebook_ads/ad_objects/whats_app_business_account.rb +++ b/lib/facebook_ads/ad_objects/whats_app_business_account.rb @@ -28,38 +28,35 @@ module FacebookAds class WhatsAppBusinessAccount < AdObject TASKS = [ "DEVELOP", + "FULL_CONTROL", "MANAGE", "MANAGE_PHONE", "MANAGE_TEMPLATES", + "MANAGE_TEMPLATES_AND_PHONE", "MESSAGING", "VIEW_COST", ] CATEGORY = [ - "ACCOUNT_UPDATE", - "ALERT_UPDATE", - "APPOINTMENT_UPDATE", - "AUTO_REPLY", - "ISSUE_RESOLUTION", + "MARKETING", "OTP", - "PAYMENT_UPDATE", - "PERSONAL_FINANCE_UPDATE", - "RESERVATION_UPDATE", - "SHIPPING_UPDATE", - "TICKET_UPDATE", - "TRANSPORTATION_UPDATE", + "TRANSACTIONAL", ] field :account_review_status, 'string' field :analytics, 'object' + field :business_verification_status, 'string' + field :country, 'string' field :creation_time, 'int' field :currency, 'string' field :id, 'string' field :message_template_namespace, 'string' field :name, 'string' field :on_behalf_of_business_info, 'object' + field :owner_business, 'Business' field :owner_business_info, 'object' + field :ownership_type, 'string' field :primary_funding_id, 'string' field :purchase_order_number, 'string' field :status, 'string' @@ -80,12 +77,17 @@ class WhatsAppBusinessAccount < AdObject end end + has_edge :audiences do |edge| + edge.get + end + has_edge :conversation_analytics do |edge| edge.get do |api| + api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION MARKETING SERVICE UNKNOWN UTILITY }} } api.has_param :conversation_directions, { list: { enum: %w{BUSINESS_INITIATED UNKNOWN USER_INITIATED }} } api.has_param :conversation_types, { list: { enum: %w{FREE_ENTRY_POINT FREE_TIER REGULAR UNKNOWN }} } api.has_param :country_codes, { list: 'string' } - api.has_param :dimensions, { list: { enum: %w{CONVERSATION_DIRECTION CONVERSATION_TYPE COUNTRY PHONE UNKNOWN }} } + api.has_param :dimensions, { list: { enum: %w{CONVERSATION_CATEGORY CONVERSATION_DIRECTION CONVERSATION_TYPE COUNTRY PHONE UNKNOWN }} } api.has_param :end, 'int' api.has_param :granularity, { enum: %w{DAILY HALF_HOUR MONTHLY }} api.has_param :metric_types, { list: { enum: %w{CONVERSATION COST UNKNOWN }} } @@ -94,6 +96,10 @@ class WhatsAppBusinessAccount < AdObject end end + has_edge :extensions do |edge| + edge.get + end + has_edge :message_templates do |edge| edge.delete do |api| api.has_param :name, 'string' @@ -104,7 +110,8 @@ class WhatsAppBusinessAccount < AdObject api.has_param :language, { list: 'string' } api.has_param :name, 'string' api.has_param :name_or_content, 'string' - api.has_param :status, { list: { enum: %w{APPROVED DELETED DISABLED IN_APPEAL PENDING PENDING_DELETION REJECTED }} } + api.has_param :quality_score, { list: { enum: %w{GREEN RED UNKNOWN YELLOW }} } + api.has_param :status, { list: { enum: %w{APPROVED DELETED DISABLED IN_APPEAL LIMIT_EXCEEDED PAUSED PENDING PENDING_DELETION REJECTED }} } end edge.post 'WhatsAppBusinessAccount' do |api| api.has_param :category, { enum: -> { WhatsAppBusinessAccount::CATEGORY }} @@ -133,10 +140,17 @@ class WhatsAppBusinessAccount < AdObject end end + has_edge :schedules do |edge| + edge.get + end + has_edge :subscribed_apps do |edge| edge.delete edge.get - edge.post 'WhatsAppBusinessAccount' + edge.post 'WhatsAppBusinessAccount' do |api| + api.has_param :override_callback_uri, 'string' + api.has_param :verify_token, 'string' + end end end diff --git a/lib/facebook_ads/version.rb b/lib/facebook_ads/version.rb index f79e722f..236802cd 100644 --- a/lib/facebook_ads/version.rb +++ b/lib/facebook_ads/version.rb @@ -19,6 +19,6 @@ # FB:AUTOGEN module FacebookAds - VERSION = '0.13.0.2' - API_VERSION = '13.0' + VERSION = '0.15.0.2' + API_VERSION = '15.0' end