From 4134ba00b0dc32777d2f452b84ac7e5a6f7c6449 Mon Sep 17 00:00:00 2001 From: Lucas Prone Date: Sun, 1 Mar 2020 18:57:02 -0300 Subject: [PATCH] removed unnecessary semicolon --- .../java/com/facebook/ads/sdk/APIConfig.java | 2 +- .../java/com/facebook/ads/sdk/APINode.java | 6 +- .../java/com/facebook/ads/sdk/APIRequest.java | 24 +- src/main/java/com/facebook/ads/sdk/Ad.java | 112 +-- .../java/com/facebook/ads/sdk/AdAccount.java | 800 ++++++++-------- .../facebook/ads/sdk/AdAccountActivity.java | 16 +- .../ads/sdk/AdAccountAdRulesHistory.java | 8 +- .../facebook/ads/sdk/AdAccountAdVolume.java | 8 +- ...AccountContentFilterLevelsInheritance.java | 8 +- .../ads/sdk/AdAccountCreationRequest.java | 24 +- .../ads/sdk/AdAccountDefaultDestination.java | 8 +- .../ads/sdk/AdAccountDefaultObjective.java | 8 +- .../ads/sdk/AdAccountDeliveryEstimate.java | 8 +- ...ountMatchedSearchApplicationsEdgeData.java | 8 +- .../com/facebook/ads/sdk/AdAccountMaxBid.java | 8 +- .../ads/sdk/AdAccountPromotableObjects.java | 8 +- .../ads/sdk/AdAccountReachEstimate.java | 8 +- .../AdAccountRecommendedCamapaignBudget.java | 8 +- .../com/facebook/ads/sdk/AdAccountRoas.java | 8 +- .../ads/sdk/AdAccountSubscribedApps.java | 8 +- .../ads/sdk/AdAccountTargetingUnified.java | 8 +- .../ads/sdk/AdAccountTrackingData.java | 8 +- .../com/facebook/ads/sdk/AdAccountUser.java | 8 +- .../java/com/facebook/ads/sdk/AdActivity.java | 8 +- .../com/facebook/ads/sdk/AdAssetFeedSpec.java | 8 +- .../ads/sdk/AdAssetFeedSpecAssetLabel.java | 8 +- .../facebook/ads/sdk/AdAssetFeedSpecBody.java | 8 +- .../ads/sdk/AdAssetFeedSpecCaption.java | 8 +- .../ads/sdk/AdAssetFeedSpecDescription.java | 8 +- .../ads/sdk/AdAssetFeedSpecGroupRule.java | 8 +- .../ads/sdk/AdAssetFeedSpecImage.java | 8 +- .../ads/sdk/AdAssetFeedSpecLinkURL.java | 8 +- .../ads/sdk/AdAssetFeedSpecTitle.java | 8 +- .../ads/sdk/AdAssetFeedSpecVideo.java | 8 +- .../com/facebook/ads/sdk/AdAsyncRequest.java | 24 +- .../facebook/ads/sdk/AdAsyncRequestSet.java | 40 +- .../AdAsyncRequestSetNotificationResult.java | 8 +- .../facebook/ads/sdk/AdBidAdjustments.java | 8 +- .../facebook/ads/sdk/AdCampaignActivity.java | 16 +- .../ads/sdk/AdCampaignBidConstraint.java | 8 +- .../ads/sdk/AdCampaignDeliveryEstimate.java | 8 +- ...mpaignDeliveryStatsUnsupportedReasons.java | 8 +- .../sdk/AdCampaignFrequencyControlSpecs.java | 8 +- .../ads/sdk/AdCampaignGroupActivity.java | 16 +- .../ads/sdk/AdCampaignIssuesInfo.java | 8 +- .../ads/sdk/AdCampaignLearningStageInfo.java | 8 +- .../ads/sdk/AdCampaignOptimizationEvent.java | 8 +- .../ads/sdk/AdCampaignPacedBidInfo.java | 8 +- .../java/com/facebook/ads/sdk/AdCreative.java | 64 +- .../AdCreativeCollectionThumbnailInfo.java | 8 +- .../facebook/ads/sdk/AdCreativeInsights.java | 8 +- .../AdCreativeInteractiveComponentsSpec.java | 8 +- .../facebook/ads/sdk/AdCreativeLinkData.java | 8 +- .../sdk/AdCreativeLinkDataAppLinkSpec.java | 8 +- .../sdk/AdCreativeLinkDataCallToAction.java | 8 +- .../AdCreativeLinkDataCallToActionValue.java | 8 +- .../AdCreativeLinkDataChildAttachment.java | 8 +- .../sdk/AdCreativeLinkDataImageLayerSpec.java | 8 +- .../AdCreativeLinkDataImageOverlaySpec.java | 8 +- ...AdCreativeLinkDataSponsorshipInfoSpec.java | 8 +- .../AdCreativeLinkDataTemplateVideoSpec.java | 8 +- .../ads/sdk/AdCreativeObjectStorySpec.java | 8 +- .../facebook/ads/sdk/AdCreativePhotoData.java | 8 +- .../facebook/ads/sdk/AdCreativePlaceData.java | 8 +- .../sdk/AdCreativePlatformCustomization.java | 8 +- .../sdk/AdCreativePortraitCustomizations.java | 8 +- .../sdk/AdCreativePostClickConfiguration.java | 8 +- .../sdk/AdCreativeRecommenderSettings.java | 8 +- .../ads/sdk/AdCreativeStaticFallbackSpec.java | 8 +- .../ads/sdk/AdCreativeTemplateURLSpec.java | 8 +- .../facebook/ads/sdk/AdCreativeTextData.java | 8 +- .../facebook/ads/sdk/AdCreativeVideoData.java | 8 +- .../ads/sdk/AdCustomizationRuleSpec.java | 8 +- .../facebook/ads/sdk/AdDynamicCreative.java | 8 +- .../facebook/ads/sdk/AdEntityTargetSpend.java | 8 +- .../java/com/facebook/ads/sdk/AdImage.java | 16 +- .../java/com/facebook/ads/sdk/AdKeywords.java | 8 +- .../java/com/facebook/ads/sdk/AdLabel.java | 64 +- .../ads/sdk/AdMonetizationProperty.java | 40 +- .../AdNetworkAnalyticsAsyncQueryResult.java | 8 +- .../AdNetworkAnalyticsSyncQueryResult.java | 8 +- .../com/facebook/ads/sdk/AdPlacePageSet.java | 24 +- .../ads/sdk/AdPlacePageSetMetadata.java | 8 +- .../com/facebook/ads/sdk/AdPlacement.java | 16 +- .../java/com/facebook/ads/sdk/AdPreview.java | 8 +- .../facebook/ads/sdk/AdPromotedObject.java | 8 +- .../facebook/ads/sdk/AdRecommendation.java | 8 +- .../ads/sdk/AdRecommendationData.java | 8 +- .../com/facebook/ads/sdk/AdReportRun.java | 40 +- .../com/facebook/ads/sdk/AdReportSpec.java | 24 +- .../java/com/facebook/ads/sdk/AdRule.java | 56 +- .../ads/sdk/AdRuleEvaluationSpec.java | 8 +- .../ads/sdk/AdRuleExecutionOptions.java | 8 +- .../facebook/ads/sdk/AdRuleExecutionSpec.java | 8 +- .../com/facebook/ads/sdk/AdRuleFilters.java | 8 +- .../com/facebook/ads/sdk/AdRuleHistory.java | 8 +- .../facebook/ads/sdk/AdRuleHistoryResult.java | 8 +- .../ads/sdk/AdRuleHistoryResultAction.java | 8 +- .../com/facebook/ads/sdk/AdRuleSchedule.java | 8 +- .../facebook/ads/sdk/AdRuleScheduleSpec.java | 8 +- .../com/facebook/ads/sdk/AdRuleTrigger.java | 8 +- src/main/java/com/facebook/ads/sdk/AdSet.java | 152 +-- .../java/com/facebook/ads/sdk/AdStudy.java | 64 +- .../com/facebook/ads/sdk/AdStudyCell.java | 56 +- .../facebook/ads/sdk/AdStudyObjective.java | 88 +- .../facebook/ads/sdk/AdStudyObjectiveID.java | 8 +- .../java/com/facebook/ads/sdk/AdVideo.java | 176 ++-- .../com/facebook/ads/sdk/AdgroupActivity.java | 16 +- .../facebook/ads/sdk/AdgroupIssuesInfo.java | 8 +- ...dgroupPlacementSpecificReviewFeedback.java | 8 +- .../ads/sdk/AdgroupRelevanceScore.java | 8 +- .../ads/sdk/AdgroupReviewFeedback.java | 8 +- .../com/facebook/ads/sdk/AdsActionStats.java | 8 +- .../com/facebook/ads/sdk/AdsImageCrops.java | 8 +- .../com/facebook/ads/sdk/AdsInsights.java | 8 +- .../AdsOptimalDeliveryGrowthOpportunity.java | 8 +- .../java/com/facebook/ads/sdk/AdsPixel.java | 104 +- .../com/facebook/ads/sdk/AdsPixelStats.java | 8 +- .../facebook/ads/sdk/AdsPixelStatsResult.java | 8 +- .../ads/sdk/AdsTALHealthCheckError.java | 8 +- .../java/com/facebook/ads/sdk/AgeRange.java | 8 +- .../ads/sdk/AgencyClientDeclaration.java | 8 +- src/main/java/com/facebook/ads/sdk/Album.java | 72 +- .../com/facebook/ads/sdk/AndroidAppLink.java | 8 +- .../java/com/facebook/ads/sdk/AppRequest.java | 24 +- .../ads/sdk/AppRequestFormerRecipient.java | 8 +- .../com/facebook/ads/sdk/Application.java | 440 ++++----- .../com/facebook/ads/sdk/AssignedUser.java | 8 +- .../com/facebook/ads/sdk/AsyncRequest.java | 8 +- .../com/facebook/ads/sdk/AsyncSession.java | 16 +- .../com/facebook/ads/sdk/AtlasCampaign.java | 48 +- .../java/com/facebook/ads/sdk/AtlasURL.java | 8 +- .../com/facebook/ads/sdk/AttributionSpec.java | 8 +- .../ads/sdk/AudienceInsightsStudySpec.java | 8 +- .../ads/sdk/AudiencePermissionForActions.java | 8 +- .../com/facebook/ads/sdk/AudioCopyright.java | 16 +- .../com/facebook/ads/sdk/AutomotiveModel.java | 16 +- .../facebook/ads/sdk/BilledAmountDetails.java | 8 +- .../com/facebook/ads/sdk/BrandAudience.java | 16 +- .../ads/sdk/BrandSafetyBlockListUsage.java | 8 +- .../ads/sdk/BroadTargetingCategories.java | 8 +- .../java/com/facebook/ads/sdk/Business.java | 640 ++++++------- .../ads/sdk/BusinessAdAccountRequest.java | 8 +- .../ads/sdk/BusinessApplicationRequest.java | 8 +- .../facebook/ads/sdk/BusinessAssetGroup.java | 240 ++--- .../sdk/BusinessAssetSharingAgreement.java | 24 +- .../facebook/ads/sdk/BusinessCreative.java | 16 +- .../ads/sdk/BusinessCreativeFolder.java | 80 +- .../com/facebook/ads/sdk/BusinessImage.java | 40 +- .../BusinessOwnedObjectOnBehalfOfRequest.java | 24 +- .../facebook/ads/sdk/BusinessPageRequest.java | 8 +- .../facebook/ads/sdk/BusinessPixelTOS.java | 16 +- .../facebook/ads/sdk/BusinessRoleRequest.java | 32 +- .../com/facebook/ads/sdk/BusinessUnit.java | 120 +-- .../com/facebook/ads/sdk/BusinessUser.java | 64 +- .../ads/sdk/CPASParentCatalogSettings.java | 24 +- .../java/com/facebook/ads/sdk/Campaign.java | 112 +-- .../sdk/CampaignGroupBrandConfiguration.java | 8 +- ...paignGroupCollaborativeAdsPartnerInfo.java | 8 +- .../java/com/facebook/ads/sdk/Canvas.java | 48 +- .../facebook/ads/sdk/CanvasAdSettings.java | 8 +- .../facebook/ads/sdk/CanvasBodyElement.java | 8 +- .../ads/sdk/CanvasCollectionThumbnail.java | 8 +- .../ads/sdk/CatalogBasedTargeting.java | 8 +- .../ads/sdk/CheckBatchRequestStatus.java | 8 +- .../java/com/facebook/ads/sdk/ChildEvent.java | 8 +- .../ads/sdk/ClientTransparencyStatus.java | 8 +- .../CollaborativeAdsPartnerInfoListItem.java | 8 +- .../sdk/CollaborativeAdsShareSettings.java | 24 +- .../java/com/facebook/ads/sdk/Comment.java | 72 +- .../facebook/ads/sdk/CommerceSettings.java | 8 +- .../ads/sdk/ContentDeliveryReport.java | 8 +- .../ads/sdk/ConversionActionQuery.java | 8 +- .../ads/sdk/CopyrightReferenceContainer.java | 8 +- .../java/com/facebook/ads/sdk/CoverPhoto.java | 8 +- .../com/facebook/ads/sdk/CreativeHistory.java | 8 +- .../ads/sdk/CreditPartitionActionOptions.java | 8 +- .../java/com/facebook/ads/sdk/Currency.java | 8 +- .../com/facebook/ads/sdk/CurrencyAmount.java | 8 +- .../com/facebook/ads/sdk/CustomAudience.java | 104 +- .../ads/sdk/CustomAudienceAdAccount.java | 8 +- .../ads/sdk/CustomAudienceDataSource.java | 8 +- .../ads/sdk/CustomAudiencePrefillState.java | 8 +- .../ads/sdk/CustomAudienceSession.java | 8 +- .../ads/sdk/CustomAudienceSharingStatus.java | 8 +- .../ads/sdk/CustomAudienceStatus.java | 8 +- .../facebook/ads/sdk/CustomAudiencesTOS.java | 8 +- .../sdk/CustomAudiencesharedAccountInfo.java | 8 +- .../facebook/ads/sdk/CustomConversion.java | 40 +- .../ads/sdk/CustomConversionStatsResult.java | 8 +- .../facebook/ads/sdk/CustomUserSettings.java | 8 +- .../java/com/facebook/ads/sdk/DACheck.java | 8 +- .../java/com/facebook/ads/sdk/DayPart.java | 8 +- .../com/facebook/ads/sdk/DeliveryCheck.java | 8 +- .../ads/sdk/DeliveryCheckExtraInfo.java | 8 +- .../com/facebook/ads/sdk/Destination.java | 16 +- .../ads/sdk/DestinationCatalogSettings.java | 16 +- .../java/com/facebook/ads/sdk/Domain.java | 16 +- .../facebook/ads/sdk/DynamicContentSet.java | 16 +- .../ads/sdk/DynamicItemDisplayBundle.java | 40 +- .../sdk/DynamicItemDisplayBundleFolder.java | 48 +- .../ads/sdk/DynamicPostChildAttachment.java | 8 +- .../ads/sdk/DynamicPriceConfigByDate.java | 16 +- .../java/com/facebook/ads/sdk/Engagement.java | 8 +- .../facebook/ads/sdk/EntityAtTextRange.java | 8 +- src/main/java/com/facebook/ads/sdk/Event.java | 88 +- .../facebook/ads/sdk/EventSourceGroup.java | 40 +- .../java/com/facebook/ads/sdk/EventTour.java | 32 +- .../java/com/facebook/ads/sdk/Experience.java | 8 +- .../com/facebook/ads/sdk/ExtendedCredit.java | 48 +- .../sdk/ExtendedCreditAllocationConfig.java | 32 +- .../ads/sdk/ExtendedCreditInvoiceGroup.java | 56 +- .../facebook/ads/sdk/ExternalEventSource.java | 16 +- .../facebook/ads/sdk/FAMEExportConfig.java | 8 +- .../facebook/ads/sdk/FlexibleTargeting.java | 8 +- .../java/com/facebook/ads/sdk/Flight.java | 24 +- .../java/com/facebook/ads/sdk/FriendList.java | 16 +- .../ads/sdk/FundingSourceDetails.java | 8 +- .../ads/sdk/FundingSourceDetailsCoupon.java | 8 +- src/main/java/com/facebook/ads/sdk/Group.java | 176 ++-- .../com/facebook/ads/sdk/HomeListing.java | 32 +- src/main/java/com/facebook/ads/sdk/Hotel.java | 40 +- .../java/com/facebook/ads/sdk/HotelRoom.java | 40 +- .../java/com/facebook/ads/sdk/IDName.java | 8 +- .../java/com/facebook/ads/sdk/IGComment.java | 48 +- .../java/com/facebook/ads/sdk/IGMedia.java | 56 +- .../java/com/facebook/ads/sdk/IGUser.java | 80 +- .../com/facebook/ads/sdk/InsightsResult.java | 8 +- .../facebook/ads/sdk/InstagramComment.java | 48 +- .../ads/sdk/InstagramInsightsResult.java | 8 +- .../ads/sdk/InstagramInsightsValue.java | 8 +- .../com/facebook/ads/sdk/InstagramUser.java | 48 +- .../com/facebook/ads/sdk/InstantArticle.java | 32 +- .../InstantArticleInsightsQueryResult.java | 8 +- .../com/facebook/ads/sdk/InvoiceCampaign.java | 8 +- .../java/com/facebook/ads/sdk/IosAppLink.java | 8 +- .../ads/sdk/IterativeSplitTestConfig.java | 16 +- .../java/com/facebook/ads/sdk/KeyValue.java | 8 +- src/main/java/com/facebook/ads/sdk/Lead.java | 24 +- .../sdk/LeadGenAppointmentBookingInfo.java | 8 +- ...adGenConditionalQuestionsGroupChoices.java | 8 +- ...GenConditionalQuestionsGroupQuestions.java | 8 +- .../ads/sdk/LeadGenDraftQuestion.java | 8 +- .../ads/sdk/LeadGenFormPreviewDetails.java | 8 +- .../sdk/LeadGenPostSubmissionCheckResult.java | 8 +- .../com/facebook/ads/sdk/LeadGenQuestion.java | 8 +- .../ads/sdk/LeadGenQuestionOption.java | 8 +- .../com/facebook/ads/sdk/LeadgenForm.java | 48 +- .../java/com/facebook/ads/sdk/LifeEvent.java | 48 +- src/main/java/com/facebook/ads/sdk/Link.java | 48 +- .../com/facebook/ads/sdk/LiveEncoder.java | 40 +- .../java/com/facebook/ads/sdk/LiveVideo.java | 112 +-- .../ads/sdk/LiveVideoAdBreakConfig.java | 8 +- .../com/facebook/ads/sdk/LiveVideoError.java | 16 +- .../ads/sdk/LiveVideoInputStream.java | 16 +- .../facebook/ads/sdk/LiveVideoTargeting.java | 8 +- .../java/com/facebook/ads/sdk/Location.java | 8 +- .../com/facebook/ads/sdk/LookalikeSpec.java | 8 +- .../com/facebook/ads/sdk/MailingAddress.java | 16 +- .../ads/sdk/MeasurementUploadEvent.java | 24 +- .../facebook/ads/sdk/MediaFingerprint.java | 24 +- .../ads/sdk/MessagingFeatureReview.java | 8 +- ...essengerDestinationPageWelcomeMessage.java | 16 +- .../ads/sdk/MessengerPlatformReferral.java | 16 +- .../facebook/ads/sdk/MessengerProfile.java | 8 +- .../com/facebook/ads/sdk/MinimumBudget.java | 8 +- .../facebook/ads/sdk/MusicVideoCopyright.java | 16 +- .../com/facebook/ads/sdk/NativeOffer.java | 40 +- .../facebook/ads/sdk/NativeOfferDiscount.java | 8 +- .../com/facebook/ads/sdk/NativeOfferView.java | 48 +- .../java/com/facebook/ads/sdk/NullNode.java | 8 +- .../ads/sdk/OfflineConversionDataSet.java | 128 +-- .../ads/sdk/OfflineTermsOfService.java | 16 +- .../com/facebook/ads/sdk/OffsitePixel.java | 16 +- .../facebook/ads/sdk/OpenGraphContext.java | 40 +- .../com/facebook/ads/sdk/OpenGraphObject.java | 24 +- .../facebook/ads/sdk/OracleTransaction.java | 32 +- .../ads/sdk/OutcomePredictionPoint.java | 8 +- src/main/java/com/facebook/ads/sdk/Page.java | 888 +++++++++--------- .../com/facebook/ads/sdk/PageAboutStory.java | 32 +- .../com/facebook/ads/sdk/PageAdminNote.java | 16 +- .../facebook/ads/sdk/PageCallToAction.java | 32 +- .../com/facebook/ads/sdk/PageCategory.java | 8 +- .../facebook/ads/sdk/PageChangeProposal.java | 24 +- .../com/facebook/ads/sdk/PageParking.java | 8 +- .../facebook/ads/sdk/PagePaymentOptions.java | 8 +- .../java/com/facebook/ads/sdk/PagePost.java | 128 +-- .../ads/sdk/PageRestaurantServices.java | 8 +- .../ads/sdk/PageRestaurantSpecialties.java | 8 +- .../com/facebook/ads/sdk/PageSavedFilter.java | 16 +- .../com/facebook/ads/sdk/PageSettings.java | 8 +- .../com/facebook/ads/sdk/PageStartInfo.java | 8 +- .../com/facebook/ads/sdk/PageThreadOwner.java | 8 +- .../facebook/ads/sdk/PageUpcomingChange.java | 24 +- .../ads/sdk/PageUserMessageThreadLabel.java | 40 +- .../com/facebook/ads/sdk/PartnerStudy.java | 24 +- .../facebook/ads/sdk/PaymentPricepoints.java | 8 +- .../java/com/facebook/ads/sdk/Permission.java | 8 +- .../java/com/facebook/ads/sdk/Persona.java | 24 +- src/main/java/com/facebook/ads/sdk/Photo.java | 80 +- src/main/java/com/facebook/ads/sdk/Place.java | 16 +- .../java/com/facebook/ads/sdk/PlaceTopic.java | 16 +- .../facebook/ads/sdk/PlatformImageSource.java | 8 +- .../com/facebook/ads/sdk/PlayableContent.java | 16 +- src/main/java/com/facebook/ads/sdk/Post.java | 128 +-- .../java/com/facebook/ads/sdk/Privacy.java | 8 +- .../com/facebook/ads/sdk/ProductCatalog.java | 376 ++++---- .../ads/sdk/ProductCatalogCategory.java | 8 +- .../sdk/ProductCatalogHotelRoomsBatch.java | 8 +- .../ads/sdk/ProductCatalogImageSettings.java | 8 +- .../ProductCatalogImageSettingsOperation.java | 8 +- .../ProductCatalogPricingVariablesBatch.java | 8 +- .../sdk/ProductCatalogProductSetsBatch.java | 8 +- .../facebook/ads/sdk/ProductEventStat.java | 8 +- .../com/facebook/ads/sdk/ProductFeed.java | 144 +-- ...ProductFeedMissingFeedItemReplacement.java | 8 +- .../com/facebook/ads/sdk/ProductFeedRule.java | 32 +- .../ads/sdk/ProductFeedRuleSuggestion.java | 8 +- .../facebook/ads/sdk/ProductFeedSchedule.java | 32 +- .../facebook/ads/sdk/ProductFeedUpload.java | 32 +- .../ads/sdk/ProductFeedUploadError.java | 32 +- .../ads/sdk/ProductFeedUploadErrorReport.java | 8 +- .../ads/sdk/ProductFeedUploadErrorSample.java | 16 +- .../com/facebook/ads/sdk/ProductGroup.java | 48 +- .../com/facebook/ads/sdk/ProductItem.java | 40 +- .../ads/sdk/ProductItemCommerceInsights.java | 8 +- .../java/com/facebook/ads/sdk/ProductSet.java | 96 +- .../com/facebook/ads/sdk/ProductVariant.java | 8 +- .../java/com/facebook/ads/sdk/Profile.java | 24 +- .../ads/sdk/ProfilePictureSource.java | 8 +- .../facebook/ads/sdk/PublisherBlockList.java | 48 +- .../com/facebook/ads/sdk/RTBDynamicPost.java | 40 +- .../facebook/ads/sdk/RawCustomAudience.java | 8 +- .../ads/sdk/ReachFrequencyActivity.java | 8 +- .../ads/sdk/ReachFrequencyAdFormat.java | 8 +- ...achFrequencyCurveLowerConfidenceRange.java | 8 +- ...achFrequencyCurveUpperConfidenceRange.java | 8 +- .../ads/sdk/ReachFrequencyDayPart.java | 8 +- .../ads/sdk/ReachFrequencyEstimatesCurve.java | 8 +- ...hFrequencyEstimatesPlacementBreakdown.java | 8 +- .../ads/sdk/ReachFrequencyPrediction.java | 16 +- .../facebook/ads/sdk/ReachFrequencySpec.java | 8 +- .../ReadOnlyAnalyticsUserPropertyConfig.java | 16 +- .../com/facebook/ads/sdk/Recommendation.java | 8 +- .../java/com/facebook/ads/sdk/Referral.java | 32 +- .../com/facebook/ads/sdk/RequestHistory.java | 8 +- .../com/facebook/ads/sdk/RevSharePolicy.java | 8 +- .../facebook/ads/sdk/RichMediaElement.java | 8 +- .../com/facebook/ads/sdk/SavedAudience.java | 24 +- .../ads/sdk/SavedMessageResponse.java | 16 +- .../facebook/ads/sdk/SecuritySettings.java | 8 +- .../com/facebook/ads/sdk/SplitTestConfig.java | 16 +- .../com/facebook/ads/sdk/SplitTestWinner.java | 8 +- .../ads/sdk/StoreCatalogSettings.java | 24 +- .../facebook/ads/sdk/StreamingReaction.java | 8 +- .../java/com/facebook/ads/sdk/SystemUser.java | 56 +- src/main/java/com/facebook/ads/sdk/Tab.java | 8 +- .../java/com/facebook/ads/sdk/Targeting.java | 8 +- .../ads/sdk/TargetingDynamicRule.java | 8 +- .../ads/sdk/TargetingGeoLocation.java | 8 +- .../ads/sdk/TargetingGeoLocationCity.java | 8 +- .../TargetingGeoLocationCustomLocation.java | 8 +- ...TargetingGeoLocationElectoralDistrict.java | 8 +- .../sdk/TargetingGeoLocationGeoEntities.java | 8 +- .../TargetingGeoLocationLocationCluster.java | 8 +- ...TargetingGeoLocationLocationExpansion.java | 8 +- .../ads/sdk/TargetingGeoLocationMarket.java | 8 +- .../ads/sdk/TargetingGeoLocationPlace.java | 8 +- ...TargetingGeoLocationPoliticalDistrict.java | 8 +- .../ads/sdk/TargetingGeoLocationRegion.java | 8 +- .../ads/sdk/TargetingGeoLocationZip.java | 8 +- .../ads/sdk/TargetingProductAudienceSpec.java | 8 +- .../sdk/TargetingProductAudienceSubSpec.java | 8 +- .../ads/sdk/TargetingProspectingAudience.java | 8 +- .../ads/sdk/TargetingSentenceLine.java | 8 +- .../ThirdPartyMeasurementReportDataset.java | 24 +- .../TrackingAndConversionWithDefaults.java | 8 +- src/main/java/com/facebook/ads/sdk/URL.java | 24 +- .../com/facebook/ads/sdk/UnifiedThread.java | 32 +- src/main/java/com/facebook/ads/sdk/User.java | 520 +++++----- .../com/facebook/ads/sdk/UserCoverPhoto.java | 8 +- .../java/com/facebook/ads/sdk/UserDevice.java | 8 +- .../com/facebook/ads/sdk/UserIDForApp.java | 8 +- .../com/facebook/ads/sdk/UserIDForPage.java | 8 +- .../com/facebook/ads/sdk/UserInfluence.java | 8 +- .../sdk/UserLeadGenDisclaimerResponse.java | 8 +- .../ads/sdk/UserLeadGenFieldData.java | 8 +- .../ads/sdk/UserPaymentMethodsInfo.java | 8 +- .../ads/sdk/UserPaymentMobilePricepoints.java | 8 +- .../ads/sdk/UserPaymentModulesOptions.java | 8 +- .../facebook/ads/sdk/UserTaggableFriend.java | 16 +- .../ads/sdk/ValueBasedEligibleSource.java | 8 +- .../java/com/facebook/ads/sdk/Vehicle.java | 24 +- .../com/facebook/ads/sdk/VehicleOffer.java | 16 +- .../com/facebook/ads/sdk/VideoCopyright.java | 24 +- .../ads/sdk/VideoCopyrightConditionGroup.java | 8 +- .../ads/sdk/VideoCopyrightGeoGate.java | 8 +- .../facebook/ads/sdk/VideoCopyrightRule.java | 16 +- .../ads/sdk/VideoCopyrightSegment.java | 8 +- .../com/facebook/ads/sdk/VideoGameShow.java | 40 +- .../java/com/facebook/ads/sdk/VideoList.java | 24 +- .../java/com/facebook/ads/sdk/VideoPoll.java | 32 +- .../com/facebook/ads/sdk/VideoThumbnail.java | 8 +- .../facebook/ads/sdk/VideoUploadLimits.java | 8 +- .../java/com/facebook/ads/sdk/VoipInfo.java | 8 +- .../java/com/facebook/ads/sdk/WebAppLink.java | 8 +- .../ads/sdk/WhatsAppBusinessAccount.java | 48 +- .../ads/sdk/WhatsAppBusinessProfile.java | 24 +- .../com/facebook/ads/sdk/WindowsAppLink.java | 8 +- .../facebook/ads/sdk/WindowsPhoneAppLink.java | 8 +- .../facebook/ads/sdk/WorkUserFrontline.java | 8 +- 411 files changed, 5992 insertions(+), 5992 deletions(-) diff --git a/src/main/java/com/facebook/ads/sdk/APIConfig.java b/src/main/java/com/facebook/ads/sdk/APIConfig.java index 36fa27e5..47558a50 100644 --- a/src/main/java/com/facebook/ads/sdk/APIConfig.java +++ b/src/main/java/com/facebook/ads/sdk/APIConfig.java @@ -28,4 +28,4 @@ public class APIConfig { public static final String DEFAULT_API_BASE = "https://graph.facebook.com"; public static final String DEFAULT_VIDEO_API_BASE = "https://graph-video.facebook.com"; public static final String USER_AGENT = "fbbizsdk-java-v6.0"; -}; +} diff --git a/src/main/java/com/facebook/ads/sdk/APINode.java b/src/main/java/com/facebook/ads/sdk/APINode.java index 2d5961c5..1584ff31 100644 --- a/src/main/java/com/facebook/ads/sdk/APINode.java +++ b/src/main/java/com/facebook/ads/sdk/APINode.java @@ -68,7 +68,7 @@ public String getId() { } catch (Exception e) { return null; } - }; + } public String getRawValue() { return rawValue; @@ -112,7 +112,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nodes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } return nodes; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nodes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/APIRequest.java b/src/main/java/com/facebook/ads/sdk/APIRequest.java index ef9776bd..e8baae2d 100644 --- a/src/main/java/com/facebook/ads/sdk/APIRequest.java +++ b/src/main/java/com/facebook/ads/sdk/APIRequest.java @@ -110,31 +110,31 @@ public APIRequest(APIContext context, String nodeId, String endpoint, String met public APIResponse getLastResponse() { return lastResponse; - }; + } - public APIResponse parseResponse(String response, String header) throws APIException { + public APIResponse parseResponse(String response, String header) throws APIException { if (parser != null) { return parser.parseResponse(response, context, this, header); } else { return APINode.parseResponse(response, context, new APIRequest(context, nodeId, endpoint, method, paramNames), header); } - }; + } - public APIResponse execute() throws APIException { + public APIResponse execute() throws APIException { return execute(new HashMap()); - }; + } - public APIResponse execute(Map extraParams) throws APIException { + public APIResponse execute(Map extraParams) throws APIException { ResponseWrapper rw = executeInternal(extraParams); lastResponse = parseResponse(rw.getBody(), rw.getHeader()); return lastResponse; - }; + } - public ListenableFuture executeAsyncBase() throws APIException { + public ListenableFuture executeAsyncBase() throws APIException { return executeAsyncBase(new HashMap()); - }; + } - public ListenableFuture executeAsyncBase(Map extraParams) throws APIException { + public ListenableFuture executeAsyncBase(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -147,9 +147,9 @@ public APIResponse apply(ResponseWrapper result) { } } ); - }; + } - public APIRequest setParam(String param, Object value) { + public APIRequest setParam(String param, Object value) { setParamInternal(param, value); return this; } diff --git a/src/main/java/com/facebook/ads/sdk/Ad.java b/src/main/java/com/facebook/ads/sdk/Ad.java index 92dadb4e..f0e5e947 100644 --- a/src/main/java/com/facebook/ads/sdk/Ad.java +++ b/src/main/java/com/facebook/ads/sdk/Ad.java @@ -203,7 +203,7 @@ public static Ad loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } ad.context = context; ad.rawValue = json; @@ -224,8 +224,8 @@ public static APINodeList parseResponse(String json, APIContext context, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { ads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return ads; + } + return ads; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -249,7 +249,7 @@ public static APINodeList parseResponse(String json, APIContext context, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { ads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -622,9 +622,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -637,9 +637,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdCreatives(String nodeId, APIContext context) { + public APIRequestGetAdCreatives(String nodeId, APIContext context) { super(context, nodeId, "/adcreatives", "GET", Arrays.asList(PARAMS)); } @@ -1113,9 +1113,9 @@ public Ad execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1128,9 +1128,9 @@ public Ad apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdLabel(String nodeId, APIContext context) { + public APIRequestCreateAdLabel(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "POST", Arrays.asList(PARAMS)); } @@ -1246,9 +1246,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1261,9 +1261,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdRulesGoverned(String nodeId, APIContext context) { + public APIRequestGetAdRulesGoverned(String nodeId, APIContext context) { super(context, nodeId, "/adrules_governed", "GET", Arrays.asList(PARAMS)); } @@ -1467,9 +1467,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1482,9 +1482,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCopies(String nodeId, APIContext context) { + public APIRequestGetCopies(String nodeId, APIContext context) { super(context, nodeId, "/copies", "GET", Arrays.asList(PARAMS)); } @@ -1848,9 +1848,9 @@ public Ad execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1863,9 +1863,9 @@ public Ad apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCopy(String nodeId, APIContext context) { + public APIRequestCreateCopy(String nodeId, APIContext context) { super(context, nodeId, "/copies", "POST", Arrays.asList(PARAMS)); } @@ -1995,9 +1995,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2010,9 +2010,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -2287,9 +2287,9 @@ public AdReportRun execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2302,9 +2302,9 @@ public AdReportRun apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsightsAsync(String nodeId, APIContext context) { + public APIRequestGetInsightsAsync(String nodeId, APIContext context) { super(context, nodeId, "/insights", "POST", Arrays.asList(PARAMS)); } @@ -2576,9 +2576,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2591,9 +2591,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLeads(String nodeId, APIContext context) { + public APIRequestGetLeads(String nodeId, APIContext context) { super(context, nodeId, "/leads", "GET", Arrays.asList(PARAMS)); } @@ -2813,9 +2813,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2828,9 +2828,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPreviews(String nodeId, APIContext context) { + public APIRequestGetPreviews(String nodeId, APIContext context) { super(context, nodeId, "/previews", "GET", Arrays.asList(PARAMS)); } @@ -3028,9 +3028,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3043,9 +3043,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingSentenceLines(String nodeId, APIContext context) { + public APIRequestGetTargetingSentenceLines(String nodeId, APIContext context) { super(context, nodeId, "/targetingsentencelines", "GET", Arrays.asList(PARAMS)); } @@ -3153,9 +3153,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3168,9 +3168,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -3296,9 +3296,9 @@ public Ad execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3311,9 +3311,9 @@ public Ad apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -3697,9 +3697,9 @@ public Ad execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3712,9 +3712,9 @@ public Ad apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdAccount.java b/src/main/java/com/facebook/ads/sdk/AdAccount.java index 893c91dd..cd7ae6b1 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccount.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccount.java @@ -258,7 +258,7 @@ public static AdAccount loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccount.context = context; adAccount.rawValue = json; @@ -290,8 +290,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccounts; + } + return adAccounts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -315,7 +315,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -1104,9 +1104,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1119,9 +1119,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetActivities(String nodeId, APIContext context) { + public APIRequestGetActivities(String nodeId, APIContext context) { super(context, nodeId, "/activities", "GET", Arrays.asList(PARAMS)); } @@ -1368,9 +1368,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1383,9 +1383,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdPlacePageSets(String nodeId, APIContext context) { + public APIRequestGetAdPlacePageSets(String nodeId, APIContext context) { super(context, nodeId, "/ad_place_page_sets", "GET", Arrays.asList(PARAMS)); } @@ -1518,9 +1518,9 @@ public AdPlacePageSet execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1533,9 +1533,9 @@ public AdPlacePageSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdPlacePageSet(String nodeId, APIContext context) { + public APIRequestCreateAdPlacePageSet(String nodeId, APIContext context) { super(context, nodeId, "/ad_place_page_sets", "POST", Arrays.asList(PARAMS)); } @@ -1654,9 +1654,9 @@ public AdPlacePageSet execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1669,9 +1669,9 @@ public AdPlacePageSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdPlacePageSetsAsync(String nodeId, APIContext context) { + public APIRequestCreateAdPlacePageSetsAsync(String nodeId, APIContext context) { super(context, nodeId, "/ad_place_page_sets_async", "POST", Arrays.asList(PARAMS)); } @@ -1790,9 +1790,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1805,9 +1805,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdSets(String nodeId, APIContext context) { + public APIRequestDeleteAdSets(String nodeId, APIContext context) { super(context, nodeId, "/ad_sets", "DELETE", Arrays.asList(PARAMS)); } @@ -1941,9 +1941,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1956,9 +1956,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdStudies(String nodeId, APIContext context) { + public APIRequestGetAdStudies(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "GET", Arrays.asList(PARAMS)); } @@ -2205,9 +2205,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2220,9 +2220,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdCreatives(String nodeId, APIContext context) { + public APIRequestGetAdCreatives(String nodeId, APIContext context) { super(context, nodeId, "/adcreatives", "GET", Arrays.asList(PARAMS)); } @@ -2736,9 +2736,9 @@ public AdCreative execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2751,9 +2751,9 @@ public AdCreative apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdCreative(String nodeId, APIContext context) { + public APIRequestCreateAdCreative(String nodeId, APIContext context) { super(context, nodeId, "/adcreatives", "POST", Arrays.asList(PARAMS)); } @@ -3187,9 +3187,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3202,9 +3202,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdCreativesByLabels(String nodeId, APIContext context) { + public APIRequestGetAdCreativesByLabels(String nodeId, APIContext context) { super(context, nodeId, "/adcreativesbylabels", "GET", Arrays.asList(PARAMS)); } @@ -3695,9 +3695,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3710,9 +3710,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdImages(String nodeId, APIContext context) { + public APIRequestDeleteAdImages(String nodeId, APIContext context) { super(context, nodeId, "/adimages", "DELETE", Arrays.asList(PARAMS)); } @@ -3826,9 +3826,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3841,9 +3841,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdImages(String nodeId, APIContext context) { + public APIRequestGetAdImages(String nodeId, APIContext context) { super(context, nodeId, "/adimages", "GET", Arrays.asList(PARAMS)); } @@ -4090,9 +4090,9 @@ public AdImage execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4105,9 +4105,9 @@ public AdImage apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdImage(String nodeId, APIContext context) { + public APIRequestCreateAdImage(String nodeId, APIContext context) { super(context, nodeId, "/adimages", "POST", Arrays.asList(PARAMS)); } @@ -4217,9 +4217,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4232,9 +4232,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdLabels(String nodeId, APIContext context) { + public APIRequestGetAdLabels(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "GET", Arrays.asList(PARAMS)); } @@ -4357,9 +4357,9 @@ public AdLabel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4372,9 +4372,9 @@ public AdLabel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdLabel(String nodeId, APIContext context) { + public APIRequestCreateAdLabel(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "POST", Arrays.asList(PARAMS)); } @@ -4469,9 +4469,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4484,9 +4484,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdPlayables(String nodeId, APIContext context) { + public APIRequestGetAdPlayables(String nodeId, APIContext context) { super(context, nodeId, "/adplayables", "GET", Arrays.asList(PARAMS)); } @@ -4599,9 +4599,9 @@ public PlayableContent execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4614,9 +4614,9 @@ public PlayableContent apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdPlayable(String nodeId, APIContext context) { + public APIRequestCreateAdPlayable(String nodeId, APIContext context) { super(context, nodeId, "/adplayables", "POST", Arrays.asList(PARAMS)); } @@ -4736,9 +4736,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4751,9 +4751,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdReportSchedules(String nodeId, APIContext context) { + public APIRequestGetAdReportSchedules(String nodeId, APIContext context) { super(context, nodeId, "/adreportschedules", "GET", Arrays.asList(PARAMS)); } @@ -4867,9 +4867,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4882,9 +4882,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdReportSchedule(String nodeId, APIContext context) { + public APIRequestCreateAdReportSchedule(String nodeId, APIContext context) { super(context, nodeId, "/adreportschedules", "POST", Arrays.asList(PARAMS)); } @@ -5207,9 +5207,9 @@ public APINodeList execute(Map extraPar public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5222,9 +5222,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdRulesHistory(String nodeId, APIContext context) { + public APIRequestGetAdRulesHistory(String nodeId, APIContext context) { super(context, nodeId, "/adrules_history", "GET", Arrays.asList(PARAMS)); } @@ -5416,9 +5416,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5431,9 +5431,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdRulesLibrary(String nodeId, APIContext context) { + public APIRequestGetAdRulesLibrary(String nodeId, APIContext context) { super(context, nodeId, "/adrules_library", "GET", Arrays.asList(PARAMS)); } @@ -5596,9 +5596,9 @@ public AdRule execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5611,9 +5611,9 @@ public AdRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdRulesLibrary(String nodeId, APIContext context) { + public APIRequestCreateAdRulesLibrary(String nodeId, APIContext context) { super(context, nodeId, "/adrules_library", "POST", Arrays.asList(PARAMS)); } @@ -5787,9 +5787,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5802,9 +5802,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAds(String nodeId, APIContext context) { + public APIRequestGetAds(String nodeId, APIContext context) { super(context, nodeId, "/ads", "GET", Arrays.asList(PARAMS)); } @@ -6206,9 +6206,9 @@ public Ad execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6221,9 +6221,9 @@ public Ad apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAd(String nodeId, APIContext context) { + public APIRequestCreateAd(String nodeId, APIContext context) { super(context, nodeId, "/ads", "POST", Arrays.asList(PARAMS)); } @@ -6457,9 +6457,9 @@ public APINodeList execute(Map extraParams) t public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6472,9 +6472,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdsVolume(String nodeId, APIContext context) { + public APIRequestGetAdsVolume(String nodeId, APIContext context) { super(context, nodeId, "/ads_volume", "GET", Arrays.asList(PARAMS)); } @@ -6636,9 +6636,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6651,9 +6651,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdsByLabels(String nodeId, APIContext context) { + public APIRequestGetAdsByLabels(String nodeId, APIContext context) { super(context, nodeId, "/adsbylabels", "GET", Arrays.asList(PARAMS)); } @@ -7054,9 +7054,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7069,9 +7069,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdSets(String nodeId, APIContext context) { + public APIRequestGetAdSets(String nodeId, APIContext context) { super(context, nodeId, "/adsets", "GET", Arrays.asList(PARAMS)); } @@ -7619,9 +7619,9 @@ public AdSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7634,9 +7634,9 @@ public AdSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdSet(String nodeId, APIContext context) { + public APIRequestCreateAdSet(String nodeId, APIContext context) { super(context, nodeId, "/adsets", "POST", Arrays.asList(PARAMS)); } @@ -8137,9 +8137,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8152,9 +8152,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdSetsByLabels(String nodeId, APIContext context) { + public APIRequestGetAdSetsByLabels(String nodeId, APIContext context) { super(context, nodeId, "/adsetsbylabels", "GET", Arrays.asList(PARAMS)); } @@ -8632,9 +8632,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8647,9 +8647,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdsPixels(String nodeId, APIContext context) { + public APIRequestGetAdsPixels(String nodeId, APIContext context) { super(context, nodeId, "/adspixels", "GET", Arrays.asList(PARAMS)); } @@ -8851,9 +8851,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8866,9 +8866,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdsPixel(String nodeId, APIContext context) { + public APIRequestCreateAdsPixel(String nodeId, APIContext context) { super(context, nodeId, "/adspixels", "POST", Arrays.asList(PARAMS)); } @@ -9062,9 +9062,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9077,9 +9077,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdvertisableApplications(String nodeId, APIContext context) { + public APIRequestGetAdvertisableApplications(String nodeId, APIContext context) { super(context, nodeId, "/advertisable_applications", "GET", Arrays.asList(PARAMS)); } @@ -9877,9 +9877,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9892,9 +9892,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdVideos(String nodeId, APIContext context) { + public APIRequestDeleteAdVideos(String nodeId, APIContext context) { super(context, nodeId, "/advideos", "DELETE", Arrays.asList(PARAMS)); } @@ -10035,9 +10035,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -10050,9 +10050,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdVideos(String nodeId, APIContext context) { + public APIRequestGetAdVideos(String nodeId, APIContext context) { super(context, nodeId, "/advideos", "GET", Arrays.asList(PARAMS)); } @@ -10568,9 +10568,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -10583,9 +10583,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdVideo(String nodeId, APIContext context) { + public APIRequestCreateAdVideo(String nodeId, APIContext context) { super(context, nodeId, "/advideos", "POST", Arrays.asList(PARAMS)); this.setUseVideoEndpoint(true); } @@ -11250,9 +11250,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11265,9 +11265,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAffectedAdSets(String nodeId, APIContext context) { + public APIRequestGetAffectedAdSets(String nodeId, APIContext context) { super(context, nodeId, "/affectedadsets", "GET", Arrays.asList(PARAMS)); } @@ -11712,9 +11712,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11727,9 +11727,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAgencies(String nodeId, APIContext context) { + public APIRequestDeleteAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "DELETE", Arrays.asList(PARAMS)); } @@ -11839,9 +11839,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11854,9 +11854,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -12071,9 +12071,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -12086,9 +12086,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAgency(String nodeId, APIContext context) { + public APIRequestCreateAgency(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "POST", Arrays.asList(PARAMS)); } @@ -12289,9 +12289,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -12304,9 +12304,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetApplications(String nodeId, APIContext context) { + public APIRequestGetApplications(String nodeId, APIContext context) { super(context, nodeId, "/applications", "GET", Arrays.asList(PARAMS)); } @@ -13094,9 +13094,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13109,9 +13109,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { + public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "DELETE", Arrays.asList(PARAMS)); } @@ -13212,9 +13212,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13227,9 +13227,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedUsers(String nodeId, APIContext context) { + public APIRequestGetAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "GET", Arrays.asList(PARAMS)); } @@ -13351,9 +13351,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -13366,9 +13366,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAssignedUser(String nodeId, APIContext context) { + public APIRequestCreateAssignedUser(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "POST", Arrays.asList(PARAMS)); } @@ -13475,9 +13475,9 @@ public Campaign execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -13490,9 +13490,9 @@ public Campaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAsyncBatchRequest(String nodeId, APIContext context) { + public APIRequestCreateAsyncBatchRequest(String nodeId, APIContext context) { super(context, nodeId, "/async_batch_requests", "POST", Arrays.asList(PARAMS)); } @@ -13599,9 +13599,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13614,9 +13614,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAsyncRequests(String nodeId, APIContext context) { + public APIRequestGetAsyncRequests(String nodeId, APIContext context) { super(context, nodeId, "/async_requests", "GET", Arrays.asList(PARAMS)); } @@ -13766,9 +13766,9 @@ public APINodeList execute(Map extraParams) t public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13781,9 +13781,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAsyncAdRequestSets(String nodeId, APIContext context) { + public APIRequestGetAsyncAdRequestSets(String nodeId, APIContext context) { super(context, nodeId, "/asyncadrequestsets", "GET", Arrays.asList(PARAMS)); } @@ -13995,9 +13995,9 @@ public AdAsyncRequestSet execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14010,9 +14010,9 @@ public AdAsyncRequestSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAsyncAdRequestSet(String nodeId, APIContext context) { + public APIRequestCreateAsyncAdRequestSet(String nodeId, APIContext context) { super(context, nodeId, "/asyncadrequestsets", "POST", Arrays.asList(PARAMS)); } @@ -14129,9 +14129,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14144,9 +14144,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAudienceReplace(String nodeId, APIContext context) { + public APIRequestCreateAudienceReplace(String nodeId, APIContext context) { super(context, nodeId, "/audiencereplace", "POST", Arrays.asList(PARAMS)); } @@ -14252,9 +14252,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14267,9 +14267,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBatchReplace(String nodeId, APIContext context) { + public APIRequestCreateBatchReplace(String nodeId, APIContext context) { super(context, nodeId, "/batchreplace", "POST", Arrays.asList(PARAMS)); } @@ -14366,9 +14366,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14381,9 +14381,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBatchUpload(String nodeId, APIContext context) { + public APIRequestCreateBatchUpload(String nodeId, APIContext context) { super(context, nodeId, "/batchupload", "POST", Arrays.asList(PARAMS)); } @@ -14480,9 +14480,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14495,9 +14495,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBlockListDraft(String nodeId, APIContext context) { + public APIRequestCreateBlockListDraft(String nodeId, APIContext context) { super(context, nodeId, "/block_list_drafts", "POST", Arrays.asList(PARAMS)); } @@ -14605,9 +14605,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14620,9 +14620,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBroadTargetingCategories(String nodeId, APIContext context) { + public APIRequestGetBroadTargetingCategories(String nodeId, APIContext context) { super(context, nodeId, "/broadtargetingcategories", "GET", Arrays.asList(PARAMS)); } @@ -14799,9 +14799,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14814,9 +14814,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteCampaigns(String nodeId, APIContext context) { + public APIRequestDeleteCampaigns(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "DELETE", Arrays.asList(PARAMS)); } @@ -14973,9 +14973,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14988,9 +14988,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCampaigns(String nodeId, APIContext context) { + public APIRequestGetCampaigns(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "GET", Arrays.asList(PARAMS)); } @@ -15373,9 +15373,9 @@ public Campaign execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -15388,9 +15388,9 @@ public Campaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCampaign(String nodeId, APIContext context) { + public APIRequestCreateCampaign(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "POST", Arrays.asList(PARAMS)); } @@ -15657,9 +15657,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15672,9 +15672,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCampaignsByLabels(String nodeId, APIContext context) { + public APIRequestGetCampaignsByLabels(String nodeId, APIContext context) { super(context, nodeId, "/campaignsbylabels", "GET", Arrays.asList(PARAMS)); } @@ -16013,9 +16013,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16028,9 +16028,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { + public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { super(context, nodeId, "/content_delivery_report", "GET", Arrays.asList(PARAMS)); } @@ -16193,9 +16193,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16208,9 +16208,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomAudiences(String nodeId, APIContext context) { + public APIRequestGetCustomAudiences(String nodeId, APIContext context) { super(context, nodeId, "/customaudiences", "GET", Arrays.asList(PARAMS)); } @@ -16372,9 +16372,9 @@ public CustomAudience execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -16387,9 +16387,9 @@ public CustomAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCustomAudience(String nodeId, APIContext context) { + public APIRequestCreateCustomAudience(String nodeId, APIContext context) { super(context, nodeId, "/customaudiences", "POST", Arrays.asList(PARAMS)); } @@ -16822,9 +16822,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16837,9 +16837,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomAudiencesTos(String nodeId, APIContext context) { + public APIRequestGetCustomAudiencesTos(String nodeId, APIContext context) { super(context, nodeId, "/customaudiencestos", "GET", Arrays.asList(PARAMS)); } @@ -16949,9 +16949,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -16964,9 +16964,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCustomAudiencesTo(String nodeId, APIContext context) { + public APIRequestCreateCustomAudiencesTo(String nodeId, APIContext context) { super(context, nodeId, "/customaudiencestos", "POST", Arrays.asList(PARAMS)); } @@ -17082,9 +17082,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17097,9 +17097,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomConversions(String nodeId, APIContext context) { + public APIRequestGetCustomConversions(String nodeId, APIContext context) { super(context, nodeId, "/customconversions", "GET", Arrays.asList(PARAMS)); } @@ -17326,9 +17326,9 @@ public CustomConversion execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -17341,9 +17341,9 @@ public CustomConversion apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCustomConversion(String nodeId, APIContext context) { + public APIRequestCreateCustomConversion(String nodeId, APIContext context) { super(context, nodeId, "/customconversions", "POST", Arrays.asList(PARAMS)); } @@ -17480,9 +17480,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17495,9 +17495,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDeliveryEstimate(String nodeId, APIContext context) { + public APIRequestGetDeliveryEstimate(String nodeId, APIContext context) { super(context, nodeId, "/delivery_estimate", "GET", Arrays.asList(PARAMS)); } @@ -17691,9 +17691,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17706,9 +17706,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDeprecatedTargetingAdSets(String nodeId, APIContext context) { + public APIRequestGetDeprecatedTargetingAdSets(String nodeId, APIContext context) { super(context, nodeId, "/deprecatedtargetingadsets", "GET", Arrays.asList(PARAMS)); } @@ -18172,9 +18172,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -18187,9 +18187,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetGeneratePreviews(String nodeId, APIContext context) { + public APIRequestGetGeneratePreviews(String nodeId, APIContext context) { super(context, nodeId, "/generatepreviews", "GET", Arrays.asList(PARAMS)); } @@ -18408,9 +18408,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -18423,9 +18423,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetImpactingAdStudies(String nodeId, APIContext context) { + public APIRequestGetImpactingAdStudies(String nodeId, APIContext context) { super(context, nodeId, "/impacting_ad_studies", "GET", Arrays.asList(PARAMS)); } @@ -18637,9 +18637,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -18652,9 +18652,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -18929,9 +18929,9 @@ public AdReportRun execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -18944,9 +18944,9 @@ public AdReportRun apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsightsAsync(String nodeId, APIContext context) { + public APIRequestGetInsightsAsync(String nodeId, APIContext context) { super(context, nodeId, "/insights", "POST", Arrays.asList(PARAMS)); } @@ -19210,9 +19210,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19225,9 +19225,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInstagramAccounts(String nodeId, APIContext context) { + public APIRequestGetInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/instagram_accounts", "GET", Arrays.asList(PARAMS)); } @@ -19390,9 +19390,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19405,9 +19405,9 @@ public APINodeList apply(ResponseWra } } ); - }; + } - public APIRequestGetMatchedSearchApplications(String nodeId, APIContext context) { + public APIRequestGetMatchedSearchApplications(String nodeId, APIContext context) { super(context, nodeId, "/matched_search_applications", "GET", Arrays.asList(PARAMS)); } @@ -19584,9 +19584,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19599,9 +19599,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMaxBid(String nodeId, APIContext context) { + public APIRequestGetMaxBid(String nodeId, APIContext context) { super(context, nodeId, "/max_bid", "GET", Arrays.asList(PARAMS)); } @@ -19701,9 +19701,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19716,9 +19716,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMinimumBudgets(String nodeId, APIContext context) { + public APIRequestGetMinimumBudgets(String nodeId, APIContext context) { super(context, nodeId, "/minimum_budgets", "GET", Arrays.asList(PARAMS)); } @@ -19869,9 +19869,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19884,9 +19884,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOfflineConversionDataSets(String nodeId, APIContext context) { + public APIRequestGetOfflineConversionDataSets(String nodeId, APIContext context) { super(context, nodeId, "/offline_conversion_data_sets", "GET", Arrays.asList(PARAMS)); } @@ -20119,9 +20119,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -20134,9 +20134,9 @@ public APINodeList apply(ResponseWrapper r } } ); - }; + } - public APIRequestGetOnBehalfRequests(String nodeId, APIContext context) { + public APIRequestGetOnBehalfRequests(String nodeId, APIContext context) { super(context, nodeId, "/onbehalf_requests", "GET", Arrays.asList(PARAMS)); } @@ -20290,9 +20290,9 @@ public CustomAudience execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -20305,9 +20305,9 @@ public CustomAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProductAudience(String nodeId, APIContext context) { + public APIRequestCreateProductAudience(String nodeId, APIContext context) { super(context, nodeId, "/product_audiences", "POST", Arrays.asList(PARAMS)); } @@ -20719,9 +20719,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -20734,9 +20734,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPromotePages(String nodeId, APIContext context) { + public APIRequestGetPromotePages(String nodeId, APIContext context) { super(context, nodeId, "/promote_pages", "GET", Arrays.asList(PARAMS)); } @@ -21799,9 +21799,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -21814,9 +21814,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPublisherBlockLists(String nodeId, APIContext context) { + public APIRequestGetPublisherBlockLists(String nodeId, APIContext context) { super(context, nodeId, "/publisher_block_lists", "GET", Arrays.asList(PARAMS)); } @@ -21974,9 +21974,9 @@ public PublisherBlockList execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -21989,9 +21989,9 @@ public PublisherBlockList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePublisherBlockList(String nodeId, APIContext context) { + public APIRequestCreatePublisherBlockList(String nodeId, APIContext context) { super(context, nodeId, "/publisher_block_lists", "POST", Arrays.asList(PARAMS)); } @@ -22092,9 +22092,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -22107,9 +22107,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReachEstimate(String nodeId, APIContext context) { + public APIRequestGetReachEstimate(String nodeId, APIContext context) { super(context, nodeId, "/reachestimate", "GET", Arrays.asList(PARAMS)); } @@ -22340,9 +22340,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -22355,9 +22355,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReachFrequencyPredictions(String nodeId, APIContext context) { + public APIRequestGetReachFrequencyPredictions(String nodeId, APIContext context) { super(context, nodeId, "/reachfrequencypredictions", "GET", Arrays.asList(PARAMS)); } @@ -23063,9 +23063,9 @@ public ReachFrequencyPrediction execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -23078,9 +23078,9 @@ public ReachFrequencyPrediction apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateReachFrequencyPrediction(String nodeId, APIContext context) { + public APIRequestCreateReachFrequencyPrediction(String nodeId, APIContext context) { super(context, nodeId, "/reachfrequencypredictions", "POST", Arrays.asList(PARAMS)); } @@ -23485,9 +23485,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -23500,9 +23500,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRoas(String nodeId, APIContext context) { + public APIRequestGetRoas(String nodeId, APIContext context) { super(context, nodeId, "/roas", "GET", Arrays.asList(PARAMS)); } @@ -23624,9 +23624,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -23639,9 +23639,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSavedAudiences(String nodeId, APIContext context) { + public APIRequestGetSavedAudiences(String nodeId, APIContext context) { super(context, nodeId, "/saved_audiences", "GET", Arrays.asList(PARAMS)); } @@ -23755,9 +23755,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -23770,9 +23770,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSponsoredMessageAd(String nodeId, APIContext context) { + public APIRequestCreateSponsoredMessageAd(String nodeId, APIContext context) { super(context, nodeId, "/sponsored_message_ads", "POST", Arrays.asList(PARAMS)); } @@ -23892,9 +23892,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -23907,9 +23907,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteSubscribedApps(String nodeId, APIContext context) { + public APIRequestDeleteSubscribedApps(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_apps", "DELETE", Arrays.asList(PARAMS)); } @@ -24003,9 +24003,9 @@ public APINodeList execute(Map extraPar public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24018,9 +24018,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSubscribedApps(String nodeId, APIContext context) { + public APIRequestGetSubscribedApps(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_apps", "GET", Arrays.asList(PARAMS)); } @@ -24122,9 +24122,9 @@ public AdAccountSubscribedApps execute(Map extraParams) throws A public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -24137,9 +24137,9 @@ public AdAccountSubscribedApps apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSubscribedApp(String nodeId, APIContext context) { + public APIRequestCreateSubscribedApp(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_apps", "POST", Arrays.asList(PARAMS)); } @@ -24259,9 +24259,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24274,9 +24274,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingBrowse(String nodeId, APIContext context) { + public APIRequestGetTargetingBrowse(String nodeId, APIContext context) { super(context, nodeId, "/targetingbrowse", "GET", Arrays.asList(PARAMS)); } @@ -24598,9 +24598,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24613,9 +24613,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingSearch(String nodeId, APIContext context) { + public APIRequestGetTargetingSearch(String nodeId, APIContext context) { super(context, nodeId, "/targetingsearch", "GET", Arrays.asList(PARAMS)); } @@ -24940,9 +24940,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24955,9 +24955,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingSentenceLines(String nodeId, APIContext context) { + public APIRequestGetTargetingSentenceLines(String nodeId, APIContext context) { super(context, nodeId, "/targetingsentencelines", "GET", Arrays.asList(PARAMS)); } @@ -25132,9 +25132,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -25147,9 +25147,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingSuggestions(String nodeId, APIContext context) { + public APIRequestGetTargetingSuggestions(String nodeId, APIContext context) { super(context, nodeId, "/targetingsuggestions", "GET", Arrays.asList(PARAMS)); } @@ -25497,9 +25497,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -25512,9 +25512,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingValidation(String nodeId, APIContext context) { + public APIRequestGetTargetingValidation(String nodeId, APIContext context) { super(context, nodeId, "/targetingvalidation", "GET", Arrays.asList(PARAMS)); } @@ -25792,9 +25792,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -25807,9 +25807,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteTracking(String nodeId, APIContext context) { + public APIRequestDeleteTracking(String nodeId, APIContext context) { super(context, nodeId, "/tracking", "DELETE", Arrays.asList(PARAMS)); } @@ -25906,9 +25906,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -25921,9 +25921,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTracking(String nodeId, APIContext context) { + public APIRequestGetTracking(String nodeId, APIContext context) { super(context, nodeId, "/tracking", "GET", Arrays.asList(PARAMS)); } @@ -26018,9 +26018,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -26033,9 +26033,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateTracking(String nodeId, APIContext context) { + public APIRequestCreateTracking(String nodeId, APIContext context) { super(context, nodeId, "/tracking", "POST", Arrays.asList(PARAMS)); } @@ -26134,9 +26134,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -26149,9 +26149,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUsers(String nodeId, APIContext context) { + public APIRequestGetUsers(String nodeId, APIContext context) { super(context, nodeId, "/users", "GET", Arrays.asList(PARAMS)); } @@ -26262,9 +26262,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -26277,9 +26277,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteUsersOfAnyAudience(String nodeId, APIContext context) { + public APIRequestDeleteUsersOfAnyAudience(String nodeId, APIContext context) { super(context, nodeId, "/usersofanyaudience", "DELETE", Arrays.asList(PARAMS)); } @@ -26449,9 +26449,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -26464,9 +26464,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -26986,9 +26986,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -27001,9 +27001,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountActivity.java b/src/main/java/com/facebook/ads/sdk/AdAccountActivity.java index 938f932c..c3759d41 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountActivity.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountActivity.java @@ -197,7 +197,7 @@ public static AdAccountActivity loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountActivity.context = context; adAccountActivity.rawValue = json; @@ -218,8 +218,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountActivitys; + } + return adAccountActivitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -243,7 +243,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -520,9 +520,9 @@ public AdAccountActivity execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -535,9 +535,9 @@ public AdAccountActivity apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountAdRulesHistory.java b/src/main/java/com/facebook/ads/sdk/AdAccountAdRulesHistory.java index 4c89f49b..5e38431f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountAdRulesHistory.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountAdRulesHistory.java @@ -94,7 +94,7 @@ public static AdAccountAdRulesHistory loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountAdRulesHistory.context = context; adAccountAdRulesHistory.rawValue = json; @@ -115,8 +115,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountAdRulesHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountAdRulesHistorys; + } + return adAccountAdRulesHistorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -140,7 +140,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountAdRulesHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java b/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java index 38bbdb37..85a655ce 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountAdVolume.java @@ -82,7 +82,7 @@ public static AdAccountAdVolume loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountAdVolume.context = context; adAccountAdVolume.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountAdVolumes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountAdVolumes; + } + return adAccountAdVolumes; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountAdVolumes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountContentFilterLevelsInheritance.java b/src/main/java/com/facebook/ads/sdk/AdAccountContentFilterLevelsInheritance.java index 38dc7e3b..f3e00d4e 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountContentFilterLevelsInheritance.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountContentFilterLevelsInheritance.java @@ -84,7 +84,7 @@ public static AdAccountContentFilterLevelsInheritance loadJSON(String json, APIC context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountContentFilterLevelsInheritance.context = context; adAccountContentFilterLevelsInheritance.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountContentFilterLevelsInheritances.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountContentFilterLevelsInheritances; + } + return adAccountContentFilterLevelsInheritances; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountContentFilterLevelsInheritances.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountCreationRequest.java b/src/main/java/com/facebook/ads/sdk/AdAccountCreationRequest.java index c61633d0..405c4da4 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountCreationRequest.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountCreationRequest.java @@ -203,7 +203,7 @@ public static AdAccountCreationRequest loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountCreationRequest.context = context; adAccountCreationRequest.rawValue = json; @@ -224,8 +224,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountCreationRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountCreationRequests; + } + return adAccountCreationRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -249,7 +249,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountCreationRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -583,9 +583,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -598,9 +598,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -1141,9 +1141,9 @@ public AdAccountCreationRequest execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1156,9 +1156,9 @@ public AdAccountCreationRequest apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountDefaultDestination.java b/src/main/java/com/facebook/ads/sdk/AdAccountDefaultDestination.java index 19a977c4..45528bf9 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountDefaultDestination.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountDefaultDestination.java @@ -80,7 +80,7 @@ public static AdAccountDefaultDestination loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountDefaultDestination.context = context; adAccountDefaultDestination.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountDefaultDestinations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountDefaultDestinations; + } + return adAccountDefaultDestinations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountDefaultDestinations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountDefaultObjective.java b/src/main/java/com/facebook/ads/sdk/AdAccountDefaultObjective.java index da4d8452..77d54a8b 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountDefaultObjective.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountDefaultObjective.java @@ -80,7 +80,7 @@ public static AdAccountDefaultObjective loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountDefaultObjective.context = context; adAccountDefaultObjective.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountDefaultObjectives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountDefaultObjectives; + } + return adAccountDefaultObjectives; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountDefaultObjectives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountDeliveryEstimate.java b/src/main/java/com/facebook/ads/sdk/AdAccountDeliveryEstimate.java index 70e0e789..5d0786e8 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountDeliveryEstimate.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountDeliveryEstimate.java @@ -84,7 +84,7 @@ public static AdAccountDeliveryEstimate loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountDeliveryEstimate.context = context; adAccountDeliveryEstimate.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountDeliveryEstimates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountDeliveryEstimates; + } + return adAccountDeliveryEstimates; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountDeliveryEstimates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountMatchedSearchApplicationsEdgeData.java b/src/main/java/com/facebook/ads/sdk/AdAccountMatchedSearchApplicationsEdgeData.java index 3d6cb61c..177e6264 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountMatchedSearchApplicationsEdgeData.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountMatchedSearchApplicationsEdgeData.java @@ -92,7 +92,7 @@ public static AdAccountMatchedSearchApplicationsEdgeData loadJSON(String json, A context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountMatchedSearchApplicationsEdgeData.context = context; adAccountMatchedSearchApplicationsEdgeData.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseRespo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountMatchedSearchApplicationsEdgeDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountMatchedSearchApplicationsEdgeDatas; + } + return adAccountMatchedSearchApplicationsEdgeDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseRespo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountMatchedSearchApplicationsEdgeDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountMaxBid.java b/src/main/java/com/facebook/ads/sdk/AdAccountMaxBid.java index b72fb839..24d2fe55 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountMaxBid.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountMaxBid.java @@ -78,7 +78,7 @@ public static AdAccountMaxBid loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountMaxBid.context = context; adAccountMaxBid.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountMaxBids.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountMaxBids; + } + return adAccountMaxBids; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountMaxBids.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountPromotableObjects.java b/src/main/java/com/facebook/ads/sdk/AdAccountPromotableObjects.java index b9108c0f..500675dd 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountPromotableObjects.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountPromotableObjects.java @@ -82,7 +82,7 @@ public static AdAccountPromotableObjects loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountPromotableObjects.context = context; adAccountPromotableObjects.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountPromotableObjectss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountPromotableObjectss; + } + return adAccountPromotableObjectss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountPromotableObjectss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountReachEstimate.java b/src/main/java/com/facebook/ads/sdk/AdAccountReachEstimate.java index 0c9d26ec..e1e39fac 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountReachEstimate.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountReachEstimate.java @@ -80,7 +80,7 @@ public static AdAccountReachEstimate loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountReachEstimate.context = context; adAccountReachEstimate.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountReachEstimates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountReachEstimates; + } + return adAccountReachEstimates; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountReachEstimates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountRecommendedCamapaignBudget.java b/src/main/java/com/facebook/ads/sdk/AdAccountRecommendedCamapaignBudget.java index 394b4c93..571d855b 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountRecommendedCamapaignBudget.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountRecommendedCamapaignBudget.java @@ -82,7 +82,7 @@ public static AdAccountRecommendedCamapaignBudget loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountRecommendedCamapaignBudget.context = context; adAccountRecommendedCamapaignBudget.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountRecommendedCamapaignBudgets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountRecommendedCamapaignBudgets; + } + return adAccountRecommendedCamapaignBudgets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountRecommendedCamapaignBudgets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountRoas.java b/src/main/java/com/facebook/ads/sdk/AdAccountRoas.java index e84b9a84..b3c30f7e 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountRoas.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountRoas.java @@ -134,7 +134,7 @@ public static AdAccountRoas loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountRoas.context = context; adAccountRoas.rawValue = json; @@ -155,8 +155,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountRoass.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountRoass; + } + return adAccountRoass; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -180,7 +180,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountRoass.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountSubscribedApps.java b/src/main/java/com/facebook/ads/sdk/AdAccountSubscribedApps.java index 01d7ec4e..d1a03b82 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountSubscribedApps.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountSubscribedApps.java @@ -80,7 +80,7 @@ public static AdAccountSubscribedApps loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountSubscribedApps.context = context; adAccountSubscribedApps.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountSubscribedAppss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountSubscribedAppss; + } + return adAccountSubscribedAppss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountSubscribedAppss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountTargetingUnified.java b/src/main/java/com/facebook/ads/sdk/AdAccountTargetingUnified.java index 874d9e94..6475baad 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountTargetingUnified.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountTargetingUnified.java @@ -120,7 +120,7 @@ public static AdAccountTargetingUnified loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountTargetingUnified.context = context; adAccountTargetingUnified.rawValue = json; @@ -141,8 +141,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountTargetingUnifieds.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountTargetingUnifieds; + } + return adAccountTargetingUnifieds; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -166,7 +166,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountTargetingUnifieds.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountTrackingData.java b/src/main/java/com/facebook/ads/sdk/AdAccountTrackingData.java index 7c104137..272ffc63 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountTrackingData.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountTrackingData.java @@ -78,7 +78,7 @@ public static AdAccountTrackingData loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountTrackingData.context = context; adAccountTrackingData.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountTrackingDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountTrackingDatas; + } + return adAccountTrackingDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountTrackingDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAccountUser.java b/src/main/java/com/facebook/ads/sdk/AdAccountUser.java index f375cbf5..89942987 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAccountUser.java +++ b/src/main/java/com/facebook/ads/sdk/AdAccountUser.java @@ -82,7 +82,7 @@ public static AdAccountUser loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAccountUser.context = context; adAccountUser.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAccountUsers; + } + return adAccountUsers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAccountUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdActivity.java b/src/main/java/com/facebook/ads/sdk/AdActivity.java index b597f403..b3bea475 100644 --- a/src/main/java/com/facebook/ads/sdk/AdActivity.java +++ b/src/main/java/com/facebook/ads/sdk/AdActivity.java @@ -100,7 +100,7 @@ public static AdActivity loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adActivity.context = context; adActivity.rawValue = json; @@ -121,8 +121,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adActivitys; + } + return adActivitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -146,7 +146,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java index 1a3a1019..1455a0bd 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpec.java @@ -106,7 +106,7 @@ public static AdAssetFeedSpec loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpec.context = context; adAssetFeedSpec.rawValue = json; @@ -127,8 +127,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecs; + } + return adAssetFeedSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -152,7 +152,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecAssetLabel.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecAssetLabel.java index 303a636b..44c6bda1 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecAssetLabel.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecAssetLabel.java @@ -80,7 +80,7 @@ public static AdAssetFeedSpecAssetLabel loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecAssetLabel.context = context; adAssetFeedSpecAssetLabel.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecAssetLabels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecAssetLabels; + } + return adAssetFeedSpecAssetLabels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecAssetLabels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecBody.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecBody.java index b6199502..91e0c014 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecBody.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecBody.java @@ -82,7 +82,7 @@ public static AdAssetFeedSpecBody loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecBody.context = context; adAssetFeedSpecBody.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecBodys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecBodys; + } + return adAssetFeedSpecBodys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecBodys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecCaption.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecCaption.java index fa122b25..455a09b2 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecCaption.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecCaption.java @@ -82,7 +82,7 @@ public static AdAssetFeedSpecCaption loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecCaption.context = context; adAssetFeedSpecCaption.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecCaptions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecCaptions; + } + return adAssetFeedSpecCaptions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecCaptions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecDescription.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecDescription.java index 49f55eae..21ac007a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecDescription.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecDescription.java @@ -82,7 +82,7 @@ public static AdAssetFeedSpecDescription loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecDescription.context = context; adAssetFeedSpecDescription.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecDescriptions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecDescriptions; + } + return adAssetFeedSpecDescriptions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecDescriptions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecGroupRule.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecGroupRule.java index aa84a31c..a1661bcc 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecGroupRule.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecGroupRule.java @@ -90,7 +90,7 @@ public static AdAssetFeedSpecGroupRule loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecGroupRule.context = context; adAssetFeedSpecGroupRule.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecGroupRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecGroupRules; + } + return adAssetFeedSpecGroupRules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecGroupRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecImage.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecImage.java index 5b1e17bf..2f382c0a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecImage.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecImage.java @@ -86,7 +86,7 @@ public static AdAssetFeedSpecImage loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecImage.context = context; adAssetFeedSpecImage.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecImages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecImages; + } + return adAssetFeedSpecImages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecImages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecLinkURL.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecLinkURL.java index a4d639ae..566ae059 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecLinkURL.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecLinkURL.java @@ -88,7 +88,7 @@ public static AdAssetFeedSpecLinkURL loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecLinkURL.context = context; adAssetFeedSpecLinkURL.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecLinkURLs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecLinkURLs; + } + return adAssetFeedSpecLinkURLs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecLinkURLs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecTitle.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecTitle.java index 6e58cb1a..f307a423 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecTitle.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecTitle.java @@ -82,7 +82,7 @@ public static AdAssetFeedSpecTitle loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecTitle.context = context; adAssetFeedSpecTitle.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecTitles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecTitles; + } + return adAssetFeedSpecTitles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecTitles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecVideo.java b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecVideo.java index 12d57e31..10ce6113 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecVideo.java +++ b/src/main/java/com/facebook/ads/sdk/AdAssetFeedSpecVideo.java @@ -88,7 +88,7 @@ public static AdAssetFeedSpecVideo loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAssetFeedSpecVideo.context = context; adAssetFeedSpecVideo.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAssetFeedSpecVideos; + } + return adAssetFeedSpecVideos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAssetFeedSpecVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdAsyncRequest.java b/src/main/java/com/facebook/ads/sdk/AdAsyncRequest.java index fd02e812..2015b4e3 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAsyncRequest.java +++ b/src/main/java/com/facebook/ads/sdk/AdAsyncRequest.java @@ -153,7 +153,7 @@ public static AdAsyncRequest loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAsyncRequest.context = context; adAsyncRequest.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAsyncRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAsyncRequests; + } + return adAsyncRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAsyncRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -364,9 +364,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -379,9 +379,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -477,9 +477,9 @@ public AdAsyncRequest execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -492,9 +492,9 @@ public AdAsyncRequest apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSet.java b/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSet.java index 5db2da10..19e35b93 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSet.java +++ b/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSet.java @@ -167,7 +167,7 @@ public static AdAsyncRequestSet loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAsyncRequestSet.context = context; adAsyncRequestSet.rawValue = json; @@ -188,8 +188,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAsyncRequestSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAsyncRequestSets; + } + return adAsyncRequestSets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -213,7 +213,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAsyncRequestSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -421,9 +421,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -436,9 +436,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRequests(String nodeId, APIContext context) { + public APIRequestGetRequests(String nodeId, APIContext context) { super(context, nodeId, "/requests", "GET", Arrays.asList(PARAMS)); } @@ -597,9 +597,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -612,9 +612,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -717,9 +717,9 @@ public AdAsyncRequestSet execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -732,9 +732,9 @@ public AdAsyncRequestSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -936,9 +936,9 @@ public AdAsyncRequestSet execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -951,9 +951,9 @@ public AdAsyncRequestSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSetNotificationResult.java b/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSetNotificationResult.java index d20d9a1b..eb506049 100644 --- a/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSetNotificationResult.java +++ b/src/main/java/com/facebook/ads/sdk/AdAsyncRequestSetNotificationResult.java @@ -80,7 +80,7 @@ public static AdAsyncRequestSetNotificationResult loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adAsyncRequestSetNotificationResult.context = context; adAsyncRequestSetNotificationResult.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAsyncRequestSetNotificationResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adAsyncRequestSetNotificationResults; + } + return adAsyncRequestSetNotificationResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adAsyncRequestSetNotificationResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdBidAdjustments.java b/src/main/java/com/facebook/ads/sdk/AdBidAdjustments.java index e9e4f0d4..3de05987 100644 --- a/src/main/java/com/facebook/ads/sdk/AdBidAdjustments.java +++ b/src/main/java/com/facebook/ads/sdk/AdBidAdjustments.java @@ -82,7 +82,7 @@ public static AdBidAdjustments loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adBidAdjustments.context = context; adBidAdjustments.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adBidAdjustmentss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adBidAdjustmentss; + } + return adBidAdjustmentss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adBidAdjustmentss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignActivity.java b/src/main/java/com/facebook/ads/sdk/AdCampaignActivity.java index 81189e0c..d04443b1 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignActivity.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignActivity.java @@ -247,7 +247,7 @@ public static AdCampaignActivity loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignActivity.context = context; adCampaignActivity.rawValue = json; @@ -268,8 +268,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignActivitys; + } + return adCampaignActivitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -293,7 +293,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -695,9 +695,9 @@ public AdCampaignActivity execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -710,9 +710,9 @@ public AdCampaignActivity apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignBidConstraint.java b/src/main/java/com/facebook/ads/sdk/AdCampaignBidConstraint.java index 83e79f08..20fdb6b1 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignBidConstraint.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignBidConstraint.java @@ -78,7 +78,7 @@ public static AdCampaignBidConstraint loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignBidConstraint.context = context; adCampaignBidConstraint.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignBidConstraints.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignBidConstraints; + } + return adCampaignBidConstraints; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignBidConstraints.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryEstimate.java b/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryEstimate.java index 475197dc..3feab88f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryEstimate.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryEstimate.java @@ -84,7 +84,7 @@ public static AdCampaignDeliveryEstimate loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignDeliveryEstimate.context = context; adCampaignDeliveryEstimate.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignDeliveryEstimates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignDeliveryEstimates; + } + return adCampaignDeliveryEstimates; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignDeliveryEstimates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryStatsUnsupportedReasons.java b/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryStatsUnsupportedReasons.java index 2192db7f..ee28b6f8 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryStatsUnsupportedReasons.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignDeliveryStatsUnsupportedReasons.java @@ -80,7 +80,7 @@ public static AdCampaignDeliveryStatsUnsupportedReasons loadJSON(String json, AP context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignDeliveryStatsUnsupportedReasons.context = context; adCampaignDeliveryStatsUnsupportedReasons.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseRespon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignDeliveryStatsUnsupportedReasonss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignDeliveryStatsUnsupportedReasonss; + } + return adCampaignDeliveryStatsUnsupportedReasonss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseRespon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignDeliveryStatsUnsupportedReasonss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignFrequencyControlSpecs.java b/src/main/java/com/facebook/ads/sdk/AdCampaignFrequencyControlSpecs.java index 3f1d27be..59b9ae74 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignFrequencyControlSpecs.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignFrequencyControlSpecs.java @@ -82,7 +82,7 @@ public static AdCampaignFrequencyControlSpecs loadJSON(String json, APIContext c context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignFrequencyControlSpecs.context = context; adCampaignFrequencyControlSpecs.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignFrequencyControlSpecss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignFrequencyControlSpecss; + } + return adCampaignFrequencyControlSpecss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignFrequencyControlSpecss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignGroupActivity.java b/src/main/java/com/facebook/ads/sdk/AdCampaignGroupActivity.java index 3dfa3d86..ddda64bf 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignGroupActivity.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignGroupActivity.java @@ -181,7 +181,7 @@ public static AdCampaignGroupActivity loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignGroupActivity.context = context; adCampaignGroupActivity.rawValue = json; @@ -202,8 +202,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignGroupActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignGroupActivitys; + } + return adCampaignGroupActivitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -227,7 +227,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignGroupActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -464,9 +464,9 @@ public AdCampaignGroupActivity execute(Map extraParams) throws A public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -479,9 +479,9 @@ public AdCampaignGroupActivity apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignIssuesInfo.java b/src/main/java/com/facebook/ads/sdk/AdCampaignIssuesInfo.java index 3b5f41ea..e4c5b40d 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignIssuesInfo.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignIssuesInfo.java @@ -86,7 +86,7 @@ public static AdCampaignIssuesInfo loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignIssuesInfo.context = context; adCampaignIssuesInfo.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignIssuesInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignIssuesInfos; + } + return adCampaignIssuesInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignIssuesInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignLearningStageInfo.java b/src/main/java/com/facebook/ads/sdk/AdCampaignLearningStageInfo.java index 71a950db..ab92ce1f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignLearningStageInfo.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignLearningStageInfo.java @@ -88,7 +88,7 @@ public static AdCampaignLearningStageInfo loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignLearningStageInfo.context = context; adCampaignLearningStageInfo.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignLearningStageInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignLearningStageInfos; + } + return adCampaignLearningStageInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignLearningStageInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignOptimizationEvent.java b/src/main/java/com/facebook/ads/sdk/AdCampaignOptimizationEvent.java index 46a7b976..742ebdd0 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignOptimizationEvent.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignOptimizationEvent.java @@ -82,7 +82,7 @@ public static AdCampaignOptimizationEvent loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignOptimizationEvent.context = context; adCampaignOptimizationEvent.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignOptimizationEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignOptimizationEvents; + } + return adCampaignOptimizationEvents; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignOptimizationEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCampaignPacedBidInfo.java b/src/main/java/com/facebook/ads/sdk/AdCampaignPacedBidInfo.java index d9c4c5e6..3691e86a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCampaignPacedBidInfo.java +++ b/src/main/java/com/facebook/ads/sdk/AdCampaignPacedBidInfo.java @@ -78,7 +78,7 @@ public static AdCampaignPacedBidInfo loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCampaignPacedBidInfo.context = context; adCampaignPacedBidInfo.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignPacedBidInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCampaignPacedBidInfos; + } + return adCampaignPacedBidInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCampaignPacedBidInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreative.java b/src/main/java/com/facebook/ads/sdk/AdCreative.java index c403fadc..c9fa26ea 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreative.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreative.java @@ -249,7 +249,7 @@ public static AdCreative loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreative.context = context; adCreative.rawValue = json; @@ -271,8 +271,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreatives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreatives; + } + return adCreatives; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -296,7 +296,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreatives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -984,9 +984,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -999,9 +999,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdLabels(String nodeId, APIContext context) { + public APIRequestDeleteAdLabels(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "DELETE", Arrays.asList(PARAMS)); } @@ -1098,9 +1098,9 @@ public AdCreative execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1113,9 +1113,9 @@ public AdCreative apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdLabel(String nodeId, APIContext context) { + public APIRequestCreateAdLabel(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "POST", Arrays.asList(PARAMS)); } @@ -1212,9 +1212,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1227,9 +1227,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCreativeInsights(String nodeId, APIContext context) { + public APIRequestGetCreativeInsights(String nodeId, APIContext context) { super(context, nodeId, "/creative_insights", "GET", Arrays.asList(PARAMS)); } @@ -1337,9 +1337,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1352,9 +1352,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPreviews(String nodeId, APIContext context) { + public APIRequestGetPreviews(String nodeId, APIContext context) { super(context, nodeId, "/previews", "GET", Arrays.asList(PARAMS)); } @@ -1553,9 +1553,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1568,9 +1568,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1742,9 +1742,9 @@ public AdCreative execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1757,9 +1757,9 @@ public AdCreative apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2253,9 +2253,9 @@ public AdCreative execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2268,9 +2268,9 @@ public AdCreative apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeCollectionThumbnailInfo.java b/src/main/java/com/facebook/ads/sdk/AdCreativeCollectionThumbnailInfo.java index b1ca634f..43477d7d 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeCollectionThumbnailInfo.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeCollectionThumbnailInfo.java @@ -82,7 +82,7 @@ public static AdCreativeCollectionThumbnailInfo loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeCollectionThumbnailInfo.context = context; adCreativeCollectionThumbnailInfo.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(Strin arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeCollectionThumbnailInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeCollectionThumbnailInfos; + } + return adCreativeCollectionThumbnailInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(Strin arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeCollectionThumbnailInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeInsights.java b/src/main/java/com/facebook/ads/sdk/AdCreativeInsights.java index c8be078f..b7f45b0e 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeInsights.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeInsights.java @@ -78,7 +78,7 @@ public static AdCreativeInsights loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeInsights.context = context; adCreativeInsights.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeInsightss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeInsightss; + } + return adCreativeInsightss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeInsightss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeInteractiveComponentsSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeInteractiveComponentsSpec.java index d0eb82f4..e071365a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeInteractiveComponentsSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeInteractiveComponentsSpec.java @@ -78,7 +78,7 @@ public static AdCreativeInteractiveComponentsSpec loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeInteractiveComponentsSpec.context = context; adCreativeInteractiveComponentsSpec.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeInteractiveComponentsSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeInteractiveComponentsSpecs; + } + return adCreativeInteractiveComponentsSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeInteractiveComponentsSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkData.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkData.java index abe9810f..f9bb3c2f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkData.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkData.java @@ -140,7 +140,7 @@ public static AdCreativeLinkData loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkData.context = context; adCreativeLinkData.rawValue = json; @@ -161,8 +161,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDatas; + } + return adCreativeLinkDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -186,7 +186,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataAppLinkSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataAppLinkSpec.java index 6d2e8b68..1bdc235a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataAppLinkSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataAppLinkSpec.java @@ -84,7 +84,7 @@ public static AdCreativeLinkDataAppLinkSpec loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataAppLinkSpec.context = context; adCreativeLinkDataAppLinkSpec.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataAppLinkSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataAppLinkSpecs; + } + return adCreativeLinkDataAppLinkSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataAppLinkSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java index 8b06b7e0..2e8943f0 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToAction.java @@ -80,7 +80,7 @@ public static AdCreativeLinkDataCallToAction loadJSON(String json, APIContext co context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataCallToAction.context = context; adCreativeLinkDataCallToAction.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String j arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataCallToActions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataCallToActions; + } + return adCreativeLinkDataCallToActions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String j arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataCallToActions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToActionValue.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToActionValue.java index a4c5f2dd..916189aa 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToActionValue.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataCallToActionValue.java @@ -98,7 +98,7 @@ public static AdCreativeLinkDataCallToActionValue loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataCallToActionValue.context = context; adCreativeLinkDataCallToActionValue.rawValue = json; @@ -119,8 +119,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataCallToActionValues.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataCallToActionValues; + } + return adCreativeLinkDataCallToActionValues; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -144,7 +144,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataCallToActionValues.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataChildAttachment.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataChildAttachment.java index 6cf9a26a..fb170dd1 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataChildAttachment.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataChildAttachment.java @@ -98,7 +98,7 @@ public static AdCreativeLinkDataChildAttachment loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataChildAttachment.context = context; adCreativeLinkDataChildAttachment.rawValue = json; @@ -119,8 +119,8 @@ public static APINodeList parseResponse(Strin arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataChildAttachments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataChildAttachments; + } + return adCreativeLinkDataChildAttachments; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -144,7 +144,7 @@ public static APINodeList parseResponse(Strin arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataChildAttachments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageLayerSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageLayerSpec.java index 2d1dc0b8..98805ccb 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageLayerSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageLayerSpec.java @@ -102,7 +102,7 @@ public static AdCreativeLinkDataImageLayerSpec loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataImageLayerSpec.context = context; adCreativeLinkDataImageLayerSpec.rawValue = json; @@ -123,8 +123,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataImageLayerSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataImageLayerSpecs; + } + return adCreativeLinkDataImageLayerSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -148,7 +148,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataImageLayerSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageOverlaySpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageOverlaySpec.java index 02d99a63..54f0878f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageOverlaySpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataImageOverlaySpec.java @@ -92,7 +92,7 @@ public static AdCreativeLinkDataImageOverlaySpec loadJSON(String json, APIContex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataImageOverlaySpec.context = context; adCreativeLinkDataImageOverlaySpec.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(Stri arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataImageOverlaySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataImageOverlaySpecs; + } + return adCreativeLinkDataImageOverlaySpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(Stri arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataImageOverlaySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataSponsorshipInfoSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataSponsorshipInfoSpec.java index bbfd5b50..a729cd86 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataSponsorshipInfoSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataSponsorshipInfoSpec.java @@ -80,7 +80,7 @@ public static AdCreativeLinkDataSponsorshipInfoSpec loadJSON(String json, APICon context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataSponsorshipInfoSpec.context = context; adCreativeLinkDataSponsorshipInfoSpec.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(S arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataSponsorshipInfoSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataSponsorshipInfoSpecs; + } + return adCreativeLinkDataSponsorshipInfoSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(S arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataSponsorshipInfoSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataTemplateVideoSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataTemplateVideoSpec.java index da4326cc..578d5967 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataTemplateVideoSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeLinkDataTemplateVideoSpec.java @@ -82,7 +82,7 @@ public static AdCreativeLinkDataTemplateVideoSpec loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeLinkDataTemplateVideoSpec.context = context; adCreativeLinkDataTemplateVideoSpec.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataTemplateVideoSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeLinkDataTemplateVideoSpecs; + } + return adCreativeLinkDataTemplateVideoSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeLinkDataTemplateVideoSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeObjectStorySpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeObjectStorySpec.java index 9faa7fb9..0a091b9a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeObjectStorySpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeObjectStorySpec.java @@ -90,7 +90,7 @@ public static AdCreativeObjectStorySpec loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeObjectStorySpec.context = context; adCreativeObjectStorySpec.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeObjectStorySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeObjectStorySpecs; + } + return adCreativeObjectStorySpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeObjectStorySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativePhotoData.java b/src/main/java/com/facebook/ads/sdk/AdCreativePhotoData.java index a3ce5c0b..6e7a882b 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativePhotoData.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativePhotoData.java @@ -88,7 +88,7 @@ public static AdCreativePhotoData loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativePhotoData.context = context; adCreativePhotoData.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePhotoDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativePhotoDatas; + } + return adCreativePhotoDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePhotoDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativePlaceData.java b/src/main/java/com/facebook/ads/sdk/AdCreativePlaceData.java index 30fa2a97..fe7946ab 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativePlaceData.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativePlaceData.java @@ -88,7 +88,7 @@ public static AdCreativePlaceData loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativePlaceData.context = context; adCreativePlaceData.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePlaceDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativePlaceDatas; + } + return adCreativePlaceDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePlaceDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativePlatformCustomization.java b/src/main/java/com/facebook/ads/sdk/AdCreativePlatformCustomization.java index 736fd0c0..be732e89 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativePlatformCustomization.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativePlatformCustomization.java @@ -78,7 +78,7 @@ public static AdCreativePlatformCustomization loadJSON(String json, APIContext c context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativePlatformCustomization.context = context; adCreativePlatformCustomization.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePlatformCustomizations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativePlatformCustomizations; + } + return adCreativePlatformCustomizations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePlatformCustomizations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativePortraitCustomizations.java b/src/main/java/com/facebook/ads/sdk/AdCreativePortraitCustomizations.java index 6e43357c..99145a7d 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativePortraitCustomizations.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativePortraitCustomizations.java @@ -78,7 +78,7 @@ public static AdCreativePortraitCustomizations loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativePortraitCustomizations.context = context; adCreativePortraitCustomizations.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePortraitCustomizationss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativePortraitCustomizationss; + } + return adCreativePortraitCustomizationss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePortraitCustomizationss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativePostClickConfiguration.java b/src/main/java/com/facebook/ads/sdk/AdCreativePostClickConfiguration.java index 45400aa1..61ef7234 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativePostClickConfiguration.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativePostClickConfiguration.java @@ -80,7 +80,7 @@ public static AdCreativePostClickConfiguration loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativePostClickConfiguration.context = context; adCreativePostClickConfiguration.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePostClickConfigurations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativePostClickConfigurations; + } + return adCreativePostClickConfigurations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativePostClickConfigurations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeRecommenderSettings.java b/src/main/java/com/facebook/ads/sdk/AdCreativeRecommenderSettings.java index 6c0a9a4c..039cc54b 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeRecommenderSettings.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeRecommenderSettings.java @@ -80,7 +80,7 @@ public static AdCreativeRecommenderSettings loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeRecommenderSettings.context = context; adCreativeRecommenderSettings.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeRecommenderSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeRecommenderSettingss; + } + return adCreativeRecommenderSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeRecommenderSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeStaticFallbackSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeStaticFallbackSpec.java index 48159592..628d36b0 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeStaticFallbackSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeStaticFallbackSpec.java @@ -88,7 +88,7 @@ public static AdCreativeStaticFallbackSpec loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeStaticFallbackSpec.context = context; adCreativeStaticFallbackSpec.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeStaticFallbackSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeStaticFallbackSpecs; + } + return adCreativeStaticFallbackSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeStaticFallbackSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeTemplateURLSpec.java b/src/main/java/com/facebook/ads/sdk/AdCreativeTemplateURLSpec.java index 269e6fe6..2234d5be 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeTemplateURLSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeTemplateURLSpec.java @@ -90,7 +90,7 @@ public static AdCreativeTemplateURLSpec loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeTemplateURLSpec.context = context; adCreativeTemplateURLSpec.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeTemplateURLSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeTemplateURLSpecs; + } + return adCreativeTemplateURLSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeTemplateURLSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeTextData.java b/src/main/java/com/facebook/ads/sdk/AdCreativeTextData.java index b3e73fae..79115b32 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeTextData.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeTextData.java @@ -78,7 +78,7 @@ public static AdCreativeTextData loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeTextData.context = context; adCreativeTextData.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeTextDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeTextDatas; + } + return adCreativeTextDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeTextDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCreativeVideoData.java b/src/main/java/com/facebook/ads/sdk/AdCreativeVideoData.java index 666e207a..4da406a4 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCreativeVideoData.java +++ b/src/main/java/com/facebook/ads/sdk/AdCreativeVideoData.java @@ -108,7 +108,7 @@ public static AdCreativeVideoData loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCreativeVideoData.context = context; adCreativeVideoData.rawValue = json; @@ -129,8 +129,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeVideoDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCreativeVideoDatas; + } + return adCreativeVideoDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -154,7 +154,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCreativeVideoDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdCustomizationRuleSpec.java b/src/main/java/com/facebook/ads/sdk/AdCustomizationRuleSpec.java index 9fd06ff2..7ac39f14 100644 --- a/src/main/java/com/facebook/ads/sdk/AdCustomizationRuleSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdCustomizationRuleSpec.java @@ -92,7 +92,7 @@ public static AdCustomizationRuleSpec loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adCustomizationRuleSpec.context = context; adCustomizationRuleSpec.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCustomizationRuleSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adCustomizationRuleSpecs; + } + return adCustomizationRuleSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adCustomizationRuleSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdDynamicCreative.java b/src/main/java/com/facebook/ads/sdk/AdDynamicCreative.java index d198023e..957bdaee 100644 --- a/src/main/java/com/facebook/ads/sdk/AdDynamicCreative.java +++ b/src/main/java/com/facebook/ads/sdk/AdDynamicCreative.java @@ -78,7 +78,7 @@ public static AdDynamicCreative loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adDynamicCreative.context = context; adDynamicCreative.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adDynamicCreatives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adDynamicCreatives; + } + return adDynamicCreatives; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adDynamicCreatives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdEntityTargetSpend.java b/src/main/java/com/facebook/ads/sdk/AdEntityTargetSpend.java index 0ac83cd9..853b9859 100644 --- a/src/main/java/com/facebook/ads/sdk/AdEntityTargetSpend.java +++ b/src/main/java/com/facebook/ads/sdk/AdEntityTargetSpend.java @@ -86,7 +86,7 @@ public static AdEntityTargetSpend loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adEntityTargetSpend.context = context; adEntityTargetSpend.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adEntityTargetSpends.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adEntityTargetSpends; + } + return adEntityTargetSpends; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adEntityTargetSpends.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdImage.java b/src/main/java/com/facebook/ads/sdk/AdImage.java index 2d390c92..9cf553c8 100644 --- a/src/main/java/com/facebook/ads/sdk/AdImage.java +++ b/src/main/java/com/facebook/ads/sdk/AdImage.java @@ -167,7 +167,7 @@ public static AdImage loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adImage.context = context; adImage.rawValue = json; @@ -188,8 +188,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adImages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adImages; + } + return adImages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -213,7 +213,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adImages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -415,9 +415,9 @@ public AdImage execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -430,9 +430,9 @@ public AdImage apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdKeywords.java b/src/main/java/com/facebook/ads/sdk/AdKeywords.java index 3960fa67..bcb6278e 100644 --- a/src/main/java/com/facebook/ads/sdk/AdKeywords.java +++ b/src/main/java/com/facebook/ads/sdk/AdKeywords.java @@ -84,7 +84,7 @@ public static AdKeywords loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adKeywords.context = context; adKeywords.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adKeywordss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adKeywordss; + } + return adKeywordss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adKeywordss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdLabel.java b/src/main/java/com/facebook/ads/sdk/AdLabel.java index 5b4dcc64..72e7b6f7 100644 --- a/src/main/java/com/facebook/ads/sdk/AdLabel.java +++ b/src/main/java/com/facebook/ads/sdk/AdLabel.java @@ -145,7 +145,7 @@ public static AdLabel loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adLabel.context = context; adLabel.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adLabels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adLabels; + } + return adLabels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adLabels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -415,9 +415,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -430,9 +430,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdCreatives(String nodeId, APIContext context) { + public APIRequestGetAdCreatives(String nodeId, APIContext context) { super(context, nodeId, "/adcreatives", "GET", Arrays.asList(PARAMS)); } @@ -938,9 +938,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -953,9 +953,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAds(String nodeId, APIContext context) { + public APIRequestGetAds(String nodeId, APIContext context) { super(context, nodeId, "/ads", "GET", Arrays.asList(PARAMS)); } @@ -1331,9 +1331,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1346,9 +1346,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdSets(String nodeId, APIContext context) { + public APIRequestGetAdSets(String nodeId, APIContext context) { super(context, nodeId, "/adsets", "GET", Arrays.asList(PARAMS)); } @@ -1824,9 +1824,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1839,9 +1839,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCampaigns(String nodeId, APIContext context) { + public APIRequestGetCampaigns(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "GET", Arrays.asList(PARAMS)); } @@ -2152,9 +2152,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2167,9 +2167,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -2261,9 +2261,9 @@ public AdLabel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2276,9 +2276,9 @@ public AdLabel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2401,9 +2401,9 @@ public AdLabel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2416,9 +2416,9 @@ public AdLabel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdMonetizationProperty.java b/src/main/java/com/facebook/ads/sdk/AdMonetizationProperty.java index 648bf2b3..35a7c366 100644 --- a/src/main/java/com/facebook/ads/sdk/AdMonetizationProperty.java +++ b/src/main/java/com/facebook/ads/sdk/AdMonetizationProperty.java @@ -137,7 +137,7 @@ public static AdMonetizationProperty loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adMonetizationProperty.context = context; adMonetizationProperty.rawValue = json; @@ -158,8 +158,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adMonetizationPropertys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adMonetizationPropertys; + } + return adMonetizationPropertys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -183,7 +183,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adMonetizationPropertys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -332,9 +332,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -347,9 +347,9 @@ public APINodeList apply(ResponseWrapper resu } } ); - }; + } - public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) { + public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics", "GET", Arrays.asList(PARAMS)); } @@ -532,9 +532,9 @@ public AdMonetizationProperty execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -547,9 +547,9 @@ public AdMonetizationProperty apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) { + public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics", "POST", Arrays.asList(PARAMS)); } @@ -715,9 +715,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -730,9 +730,9 @@ public APINodeList apply(ResponseWrapper res } } ); - }; + } - public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) { + public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics_results", "GET", Arrays.asList(PARAMS)); } @@ -864,9 +864,9 @@ public AdMonetizationProperty execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -879,9 +879,9 @@ public AdMonetizationProperty apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsAsyncQueryResult.java b/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsAsyncQueryResult.java index f0963547..65c1d70a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsAsyncQueryResult.java +++ b/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsAsyncQueryResult.java @@ -86,7 +86,7 @@ public static AdNetworkAnalyticsAsyncQueryResult loadJSON(String json, APIContex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adNetworkAnalyticsAsyncQueryResult.context = context; adNetworkAnalyticsAsyncQueryResult.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(Stri arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adNetworkAnalyticsAsyncQueryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adNetworkAnalyticsAsyncQueryResults; + } + return adNetworkAnalyticsAsyncQueryResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(Stri arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adNetworkAnalyticsAsyncQueryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsSyncQueryResult.java b/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsSyncQueryResult.java index 99ed12f3..b63c10d1 100644 --- a/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsSyncQueryResult.java +++ b/src/main/java/com/facebook/ads/sdk/AdNetworkAnalyticsSyncQueryResult.java @@ -80,7 +80,7 @@ public static AdNetworkAnalyticsSyncQueryResult loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adNetworkAnalyticsSyncQueryResult.context = context; adNetworkAnalyticsSyncQueryResult.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(Strin arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adNetworkAnalyticsSyncQueryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adNetworkAnalyticsSyncQueryResults; + } + return adNetworkAnalyticsSyncQueryResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(Strin arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adNetworkAnalyticsSyncQueryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdPlacePageSet.java b/src/main/java/com/facebook/ads/sdk/AdPlacePageSet.java index b06a9559..791e80dd 100644 --- a/src/main/java/com/facebook/ads/sdk/AdPlacePageSet.java +++ b/src/main/java/com/facebook/ads/sdk/AdPlacePageSet.java @@ -147,7 +147,7 @@ public static AdPlacePageSet loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adPlacePageSet.context = context; adPlacePageSet.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPlacePageSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adPlacePageSets; + } + return adPlacePageSets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPlacePageSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -352,9 +352,9 @@ public AdPlacePageSet execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -367,9 +367,9 @@ public AdPlacePageSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -499,9 +499,9 @@ public AdPlacePageSet execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -514,9 +514,9 @@ public AdPlacePageSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdPlacePageSetMetadata.java b/src/main/java/com/facebook/ads/sdk/AdPlacePageSetMetadata.java index 2a5e1aca..68a7b57b 100644 --- a/src/main/java/com/facebook/ads/sdk/AdPlacePageSetMetadata.java +++ b/src/main/java/com/facebook/ads/sdk/AdPlacePageSetMetadata.java @@ -84,7 +84,7 @@ public static AdPlacePageSetMetadata loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adPlacePageSetMetadata.context = context; adPlacePageSetMetadata.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPlacePageSetMetadatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adPlacePageSetMetadatas; + } + return adPlacePageSetMetadatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPlacePageSetMetadatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdPlacement.java b/src/main/java/com/facebook/ads/sdk/AdPlacement.java index cae12724..44e63063 100644 --- a/src/main/java/com/facebook/ads/sdk/AdPlacement.java +++ b/src/main/java/com/facebook/ads/sdk/AdPlacement.java @@ -151,7 +151,7 @@ public static AdPlacement loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adPlacement.context = context; adPlacement.rawValue = json; @@ -172,8 +172,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPlacements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adPlacements; + } + return adPlacements; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -197,7 +197,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPlacements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -359,9 +359,9 @@ public AdPlacement execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -374,9 +374,9 @@ public AdPlacement apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdPreview.java b/src/main/java/com/facebook/ads/sdk/AdPreview.java index 4a7b2c44..6d6107f2 100644 --- a/src/main/java/com/facebook/ads/sdk/AdPreview.java +++ b/src/main/java/com/facebook/ads/sdk/AdPreview.java @@ -78,7 +78,7 @@ public static AdPreview loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adPreview.context = context; adPreview.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPreviews.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adPreviews; + } + return adPreviews; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPreviews.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java b/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java index 42d80efa..e6e4ecac 100644 --- a/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java +++ b/src/main/java/com/facebook/ads/sdk/AdPromotedObject.java @@ -112,7 +112,7 @@ public static AdPromotedObject loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adPromotedObject.context = context; adPromotedObject.rawValue = json; @@ -133,8 +133,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPromotedObjects.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adPromotedObjects; + } + return adPromotedObjects; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -158,7 +158,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adPromotedObjects.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRecommendation.java b/src/main/java/com/facebook/ads/sdk/AdRecommendation.java index 5241fff6..d32838ba 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRecommendation.java +++ b/src/main/java/com/facebook/ads/sdk/AdRecommendation.java @@ -90,7 +90,7 @@ public static AdRecommendation loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRecommendation.context = context; adRecommendation.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRecommendations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRecommendations; + } + return adRecommendations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRecommendations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRecommendationData.java b/src/main/java/com/facebook/ads/sdk/AdRecommendationData.java index 93da3ab0..aa802f75 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRecommendationData.java +++ b/src/main/java/com/facebook/ads/sdk/AdRecommendationData.java @@ -78,7 +78,7 @@ public static AdRecommendationData loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRecommendationData.context = context; adRecommendationData.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRecommendationDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRecommendationDatas; + } + return adRecommendationDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRecommendationDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdReportRun.java b/src/main/java/com/facebook/ads/sdk/AdReportRun.java index f4e62767..0ad2badf 100644 --- a/src/main/java/com/facebook/ads/sdk/AdReportRun.java +++ b/src/main/java/com/facebook/ads/sdk/AdReportRun.java @@ -161,7 +161,7 @@ public static AdReportRun loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adReportRun.context = context; adReportRun.rawValue = json; @@ -191,8 +191,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adReportRuns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adReportRuns; + } + return adReportRuns; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -216,7 +216,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adReportRuns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -634,9 +634,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -649,9 +649,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -2362,9 +2362,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2377,9 +2377,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -2479,9 +2479,9 @@ public AdReportRun execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2494,9 +2494,9 @@ public AdReportRun apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2676,9 +2676,9 @@ public AdReportRun execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2691,9 +2691,9 @@ public AdReportRun apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdReportSpec.java b/src/main/java/com/facebook/ads/sdk/AdReportSpec.java index 4be7827f..b37868b0 100644 --- a/src/main/java/com/facebook/ads/sdk/AdReportSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdReportSpec.java @@ -171,7 +171,7 @@ public static AdReportSpec loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adReportSpec.context = context; adReportSpec.rawValue = json; @@ -192,8 +192,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adReportSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adReportSpecs; + } + return adReportSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -217,7 +217,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adReportSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -415,9 +415,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -430,9 +430,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -537,9 +537,9 @@ public AdReportSpec execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -552,9 +552,9 @@ public AdReportSpec apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdRule.java b/src/main/java/com/facebook/ads/sdk/AdRule.java index 72126678..cd31628f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRule.java +++ b/src/main/java/com/facebook/ads/sdk/AdRule.java @@ -155,7 +155,7 @@ public static AdRule loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRule.context = context; adRule.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRules; + } + return adRules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -386,9 +386,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -401,9 +401,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateExecute(String nodeId, APIContext context) { + public APIRequestCreateExecute(String nodeId, APIContext context) { super(context, nodeId, "/execute", "POST", Arrays.asList(PARAMS)); } @@ -501,9 +501,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -516,9 +516,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHistory(String nodeId, APIContext context) { + public APIRequestGetHistory(String nodeId, APIContext context) { super(context, nodeId, "/history", "GET", Arrays.asList(PARAMS)); } @@ -684,9 +684,9 @@ public AdRule execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -699,9 +699,9 @@ public AdRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePreview(String nodeId, APIContext context) { + public APIRequestCreatePreview(String nodeId, APIContext context) { super(context, nodeId, "/preview", "POST", Arrays.asList(PARAMS)); } @@ -788,9 +788,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -803,9 +803,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -902,9 +902,9 @@ public AdRule execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -917,9 +917,9 @@ public AdRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1081,9 +1081,9 @@ public AdRule execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1096,9 +1096,9 @@ public AdRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleEvaluationSpec.java b/src/main/java/com/facebook/ads/sdk/AdRuleEvaluationSpec.java index cf74c2dd..469457a6 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleEvaluationSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleEvaluationSpec.java @@ -82,7 +82,7 @@ public static AdRuleEvaluationSpec loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleEvaluationSpec.context = context; adRuleEvaluationSpec.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleEvaluationSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleEvaluationSpecs; + } + return adRuleEvaluationSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleEvaluationSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleExecutionOptions.java b/src/main/java/com/facebook/ads/sdk/AdRuleExecutionOptions.java index 24a499fc..9c346f14 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleExecutionOptions.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleExecutionOptions.java @@ -82,7 +82,7 @@ public static AdRuleExecutionOptions loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleExecutionOptions.context = context; adRuleExecutionOptions.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleExecutionOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleExecutionOptionss; + } + return adRuleExecutionOptionss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleExecutionOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleExecutionSpec.java b/src/main/java/com/facebook/ads/sdk/AdRuleExecutionSpec.java index 7c6698bf..32f24450 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleExecutionSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleExecutionSpec.java @@ -80,7 +80,7 @@ public static AdRuleExecutionSpec loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleExecutionSpec.context = context; adRuleExecutionSpec.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleExecutionSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleExecutionSpecs; + } + return adRuleExecutionSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleExecutionSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleFilters.java b/src/main/java/com/facebook/ads/sdk/AdRuleFilters.java index e9b61a77..08ff6068 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleFilters.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleFilters.java @@ -82,7 +82,7 @@ public static AdRuleFilters loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleFilters.context = context; adRuleFilters.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleFilterss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleFilterss; + } + return adRuleFilterss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleFilterss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleHistory.java b/src/main/java/com/facebook/ads/sdk/AdRuleHistory.java index 79e3bf7f..297049c7 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleHistory.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleHistory.java @@ -92,7 +92,7 @@ public static AdRuleHistory loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleHistory.context = context; adRuleHistory.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleHistorys; + } + return adRuleHistorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResult.java b/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResult.java index 7c7f2f82..bfedf4a8 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResult.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResult.java @@ -82,7 +82,7 @@ public static AdRuleHistoryResult loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleHistoryResult.context = context; adRuleHistoryResult.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleHistoryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleHistoryResults; + } + return adRuleHistoryResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleHistoryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResultAction.java b/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResultAction.java index 724597f5..e5be5970 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResultAction.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleHistoryResultAction.java @@ -84,7 +84,7 @@ public static AdRuleHistoryResultAction loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleHistoryResultAction.context = context; adRuleHistoryResultAction.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleHistoryResultActions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleHistoryResultActions; + } + return adRuleHistoryResultActions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleHistoryResultActions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleSchedule.java b/src/main/java/com/facebook/ads/sdk/AdRuleSchedule.java index e457c05d..054cd86f 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleSchedule.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleSchedule.java @@ -82,7 +82,7 @@ public static AdRuleSchedule loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleSchedule.context = context; adRuleSchedule.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleSchedules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleSchedules; + } + return adRuleSchedules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleSchedules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleScheduleSpec.java b/src/main/java/com/facebook/ads/sdk/AdRuleScheduleSpec.java index 61a6d6c9..474f99fa 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleScheduleSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleScheduleSpec.java @@ -80,7 +80,7 @@ public static AdRuleScheduleSpec loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleScheduleSpec.context = context; adRuleScheduleSpec.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleScheduleSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleScheduleSpecs; + } + return adRuleScheduleSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleScheduleSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdRuleTrigger.java b/src/main/java/com/facebook/ads/sdk/AdRuleTrigger.java index d40967a9..217a3809 100644 --- a/src/main/java/com/facebook/ads/sdk/AdRuleTrigger.java +++ b/src/main/java/com/facebook/ads/sdk/AdRuleTrigger.java @@ -84,7 +84,7 @@ public static AdRuleTrigger loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adRuleTrigger.context = context; adRuleTrigger.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleTriggers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adRuleTriggers; + } + return adRuleTriggers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adRuleTriggers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdSet.java b/src/main/java/com/facebook/ads/sdk/AdSet.java index 36fddd7b..207ea773 100644 --- a/src/main/java/com/facebook/ads/sdk/AdSet.java +++ b/src/main/java/com/facebook/ads/sdk/AdSet.java @@ -237,7 +237,7 @@ public static AdSet loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adSet.context = context; adSet.rawValue = json; @@ -258,8 +258,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adSets; + } + return adSets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -283,7 +283,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -1017,9 +1017,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1032,9 +1032,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetActivities(String nodeId, APIContext context) { + public APIRequestGetActivities(String nodeId, APIContext context) { super(context, nodeId, "/activities", "GET", Arrays.asList(PARAMS)); } @@ -1267,9 +1267,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1282,9 +1282,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdStudies(String nodeId, APIContext context) { + public APIRequestGetAdStudies(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "GET", Arrays.asList(PARAMS)); } @@ -1531,9 +1531,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1546,9 +1546,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdCreatives(String nodeId, APIContext context) { + public APIRequestGetAdCreatives(String nodeId, APIContext context) { super(context, nodeId, "/adcreatives", "GET", Arrays.asList(PARAMS)); } @@ -2022,9 +2022,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2037,9 +2037,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdLabels(String nodeId, APIContext context) { + public APIRequestDeleteAdLabels(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "DELETE", Arrays.asList(PARAMS)); } @@ -2146,9 +2146,9 @@ public AdSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2161,9 +2161,9 @@ public AdSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdLabel(String nodeId, APIContext context) { + public APIRequestCreateAdLabel(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "POST", Arrays.asList(PARAMS)); } @@ -2279,9 +2279,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2294,9 +2294,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdRulesGoverned(String nodeId, APIContext context) { + public APIRequestGetAdRulesGoverned(String nodeId, APIContext context) { super(context, nodeId, "/adrules_governed", "GET", Arrays.asList(PARAMS)); } @@ -2502,9 +2502,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2517,9 +2517,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAds(String nodeId, APIContext context) { + public APIRequestGetAds(String nodeId, APIContext context) { super(context, nodeId, "/ads", "GET", Arrays.asList(PARAMS)); } @@ -2904,9 +2904,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2919,9 +2919,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAsyncAdRequests(String nodeId, APIContext context) { + public APIRequestGetAsyncAdRequests(String nodeId, APIContext context) { super(context, nodeId, "/asyncadrequests", "GET", Arrays.asList(PARAMS)); } @@ -3090,9 +3090,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3105,9 +3105,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { + public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { super(context, nodeId, "/content_delivery_report", "GET", Arrays.asList(PARAMS)); } @@ -3321,9 +3321,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3336,9 +3336,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCopies(String nodeId, APIContext context) { + public APIRequestGetCopies(String nodeId, APIContext context) { super(context, nodeId, "/copies", "GET", Arrays.asList(PARAMS)); } @@ -3825,9 +3825,9 @@ public AdSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3840,9 +3840,9 @@ public AdSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCopy(String nodeId, APIContext context) { + public APIRequestCreateCopy(String nodeId, APIContext context) { super(context, nodeId, "/copies", "POST", Arrays.asList(PARAMS)); } @@ -3987,9 +3987,9 @@ public APINodeList execute(Map extra public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4002,9 +4002,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDeliveryEstimate(String nodeId, APIContext context) { + public APIRequestGetDeliveryEstimate(String nodeId, APIContext context) { super(context, nodeId, "/delivery_estimate", "GET", Arrays.asList(PARAMS)); } @@ -4166,9 +4166,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4181,9 +4181,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -4458,9 +4458,9 @@ public AdReportRun execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4473,9 +4473,9 @@ public AdReportRun apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsightsAsync(String nodeId, APIContext context) { + public APIRequestGetInsightsAsync(String nodeId, APIContext context) { super(context, nodeId, "/insights", "POST", Arrays.asList(PARAMS)); } @@ -4733,9 +4733,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4748,9 +4748,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTargetingSentenceLines(String nodeId, APIContext context) { + public APIRequestGetTargetingSentenceLines(String nodeId, APIContext context) { super(context, nodeId, "/targetingsentencelines", "GET", Arrays.asList(PARAMS)); } @@ -4858,9 +4858,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4873,9 +4873,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -5017,9 +5017,9 @@ public AdSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5032,9 +5032,9 @@ public AdSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -5554,9 +5554,9 @@ public AdSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5569,9 +5569,9 @@ public AdSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdStudy.java b/src/main/java/com/facebook/ads/sdk/AdStudy.java index ce43df68..34710741 100644 --- a/src/main/java/com/facebook/ads/sdk/AdStudy.java +++ b/src/main/java/com/facebook/ads/sdk/AdStudy.java @@ -165,7 +165,7 @@ public static AdStudy loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adStudy.context = context; adStudy.rawValue = json; @@ -186,8 +186,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adStudys; + } + return adStudys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -211,7 +211,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -431,9 +431,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -446,9 +446,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCells(String nodeId, APIContext context) { + public APIRequestGetCells(String nodeId, APIContext context) { super(context, nodeId, "/cells", "GET", Arrays.asList(PARAMS)); } @@ -572,9 +572,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -587,9 +587,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHealthCheckErrors(String nodeId, APIContext context) { + public APIRequestGetHealthCheckErrors(String nodeId, APIContext context) { super(context, nodeId, "/health_check_errors", "GET", Arrays.asList(PARAMS)); } @@ -696,9 +696,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -711,9 +711,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetObjectives(String nodeId, APIContext context) { + public APIRequestGetObjectives(String nodeId, APIContext context) { super(context, nodeId, "/objectives", "GET", Arrays.asList(PARAMS)); } @@ -851,9 +851,9 @@ public AdStudyObjective execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -866,9 +866,9 @@ public AdStudyObjective apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateObjective(String nodeId, APIContext context) { + public APIRequestCreateObjective(String nodeId, APIContext context) { super(context, nodeId, "/objectives", "POST", Arrays.asList(PARAMS)); } @@ -1032,9 +1032,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1047,9 +1047,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1151,9 +1151,9 @@ public AdStudy execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1166,9 +1166,9 @@ public AdStudy apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1372,9 +1372,9 @@ public AdStudy execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1387,9 +1387,9 @@ public AdStudy apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdStudyCell.java b/src/main/java/com/facebook/ads/sdk/AdStudyCell.java index 52cfa9aa..b94cf665 100644 --- a/src/main/java/com/facebook/ads/sdk/AdStudyCell.java +++ b/src/main/java/com/facebook/ads/sdk/AdStudyCell.java @@ -145,7 +145,7 @@ public static AdStudyCell loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adStudyCell.context = context; adStudyCell.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudyCells.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adStudyCells; + } + return adStudyCells; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudyCells.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -413,9 +413,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -428,9 +428,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -988,9 +988,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1003,9 +1003,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdSets(String nodeId, APIContext context) { + public APIRequestGetAdSets(String nodeId, APIContext context) { super(context, nodeId, "/adsets", "GET", Arrays.asList(PARAMS)); } @@ -1481,9 +1481,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1496,9 +1496,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCampaigns(String nodeId, APIContext context) { + public APIRequestGetCampaigns(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "GET", Arrays.asList(PARAMS)); } @@ -1809,9 +1809,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1824,9 +1824,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1918,9 +1918,9 @@ public AdStudyCell execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1933,9 +1933,9 @@ public AdStudyCell apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2063,9 +2063,9 @@ public AdStudyCell execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2078,9 +2078,9 @@ public AdStudyCell apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdStudyObjective.java b/src/main/java/com/facebook/ads/sdk/AdStudyObjective.java index f592342a..9230f1d8 100644 --- a/src/main/java/com/facebook/ads/sdk/AdStudyObjective.java +++ b/src/main/java/com/facebook/ads/sdk/AdStudyObjective.java @@ -147,7 +147,7 @@ public static AdStudyObjective loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adStudyObjective.context = context; adStudyObjective.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudyObjectives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adStudyObjectives; + } + return adStudyObjectives; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudyObjectives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -381,9 +381,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -396,9 +396,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdPlacePageSets(String nodeId, APIContext context) { + public APIRequestGetAdPlacePageSets(String nodeId, APIContext context) { super(context, nodeId, "/ad_place_page_sets", "GET", Arrays.asList(PARAMS)); } @@ -542,9 +542,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -557,9 +557,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdsPixels(String nodeId, APIContext context) { + public APIRequestGetAdsPixels(String nodeId, APIContext context) { super(context, nodeId, "/adspixels", "GET", Arrays.asList(PARAMS)); } @@ -851,9 +851,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -866,9 +866,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetApplications(String nodeId, APIContext context) { + public APIRequestGetApplications(String nodeId, APIContext context) { super(context, nodeId, "/applications", "GET", Arrays.asList(PARAMS)); } @@ -1674,9 +1674,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1689,9 +1689,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomConversions(String nodeId, APIContext context) { + public APIRequestGetCustomConversions(String nodeId, APIContext context) { super(context, nodeId, "/customconversions", "GET", Arrays.asList(PARAMS)); } @@ -1931,9 +1931,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1946,9 +1946,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOfflineConversionDataSets(String nodeId, APIContext context) { + public APIRequestGetOfflineConversionDataSets(String nodeId, APIContext context) { super(context, nodeId, "/offline_conversion_data_sets", "GET", Arrays.asList(PARAMS)); } @@ -2181,9 +2181,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2196,9 +2196,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOffsitePixels(String nodeId, APIContext context) { + public APIRequestGetOffsitePixels(String nodeId, APIContext context) { super(context, nodeId, "/offsitepixels", "GET", Arrays.asList(PARAMS)); } @@ -2345,9 +2345,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2360,9 +2360,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPartnerStudies(String nodeId, APIContext context) { + public APIRequestGetPartnerStudies(String nodeId, APIContext context) { super(context, nodeId, "/partnerstudies", "GET", Arrays.asList(PARAMS)); } @@ -2575,9 +2575,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2590,9 +2590,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -2686,9 +2686,9 @@ public AdStudyObjective execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2701,9 +2701,9 @@ public AdStudyObjective apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2850,9 +2850,9 @@ public AdStudyObjective execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2865,9 +2865,9 @@ public AdStudyObjective apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdStudyObjectiveID.java b/src/main/java/com/facebook/ads/sdk/AdStudyObjectiveID.java index f45a5903..4ab1423b 100644 --- a/src/main/java/com/facebook/ads/sdk/AdStudyObjectiveID.java +++ b/src/main/java/com/facebook/ads/sdk/AdStudyObjectiveID.java @@ -82,7 +82,7 @@ public static AdStudyObjectiveID loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adStudyObjectiveID.context = context; adStudyObjectiveID.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudyObjectiveIDs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adStudyObjectiveIDs; + } + return adStudyObjectiveIDs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adStudyObjectiveIDs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdVideo.java b/src/main/java/com/facebook/ads/sdk/AdVideo.java index a0848e0e..a5b99270 100644 --- a/src/main/java/com/facebook/ads/sdk/AdVideo.java +++ b/src/main/java/com/facebook/ads/sdk/AdVideo.java @@ -215,7 +215,7 @@ public static AdVideo loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adVideo.context = context; adVideo.rawValue = json; @@ -236,8 +236,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adVideos; + } + return adVideos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -261,7 +261,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -635,9 +635,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -650,9 +650,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCaptions(String nodeId, APIContext context) { + public APIRequestGetCaptions(String nodeId, APIContext context) { super(context, nodeId, "/captions", "GET", Arrays.asList(PARAMS)); } @@ -742,9 +742,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -757,9 +757,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCaption(String nodeId, APIContext context) { + public APIRequestCreateCaption(String nodeId, APIContext context) { super(context, nodeId, "/captions", "POST", Arrays.asList(PARAMS)); } @@ -896,9 +896,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -911,9 +911,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -1206,9 +1206,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1221,9 +1221,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -1529,9 +1529,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1544,9 +1544,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCrosspostSharedPages(String nodeId, APIContext context) { + public APIRequestGetCrosspostSharedPages(String nodeId, APIContext context) { super(context, nodeId, "/crosspost_shared_pages", "GET", Arrays.asList(PARAMS)); } @@ -2610,9 +2610,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2625,9 +2625,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -2795,9 +2795,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2810,9 +2810,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLike(String nodeId, APIContext context) { + public APIRequestCreateLike(String nodeId, APIContext context) { super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS)); } @@ -2923,9 +2923,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2938,9 +2938,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPollSettings(String nodeId, APIContext context) { + public APIRequestGetPollSettings(String nodeId, APIContext context) { super(context, nodeId, "/poll_settings", "GET", Arrays.asList(PARAMS)); } @@ -3029,9 +3029,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3044,9 +3044,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePollSetting(String nodeId, APIContext context) { + public APIRequestCreatePollSetting(String nodeId, APIContext context) { super(context, nodeId, "/poll_settings", "POST", Arrays.asList(PARAMS)); } @@ -3158,9 +3158,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3173,9 +3173,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPolls(String nodeId, APIContext context) { + public APIRequestGetPolls(String nodeId, APIContext context) { super(context, nodeId, "/polls", "GET", Arrays.asList(PARAMS)); } @@ -3318,9 +3318,9 @@ public VideoPoll execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3333,9 +3333,9 @@ public VideoPoll apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePoll(String nodeId, APIContext context) { + public APIRequestCreatePoll(String nodeId, APIContext context) { super(context, nodeId, "/polls", "POST", Arrays.asList(PARAMS)); } @@ -3542,9 +3542,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3557,9 +3557,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -4211,9 +4211,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4226,9 +4226,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSponsorTags(String nodeId, APIContext context) { + public APIRequestGetSponsorTags(String nodeId, APIContext context) { super(context, nodeId, "/sponsor_tags", "GET", Arrays.asList(PARAMS)); } @@ -5281,9 +5281,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5296,9 +5296,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTags(String nodeId, APIContext context) { + public APIRequestGetTags(String nodeId, APIContext context) { super(context, nodeId, "/tags", "GET", Arrays.asList(PARAMS)); } @@ -5388,9 +5388,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5403,9 +5403,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateTag(String nodeId, APIContext context) { + public APIRequestCreateTag(String nodeId, APIContext context) { super(context, nodeId, "/tags", "POST", Arrays.asList(PARAMS)); } @@ -5522,9 +5522,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5537,9 +5537,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetThumbnails(String nodeId, APIContext context) { + public APIRequestGetThumbnails(String nodeId, APIContext context) { super(context, nodeId, "/thumbnails", "GET", Arrays.asList(PARAMS)); } @@ -5677,9 +5677,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5692,9 +5692,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateThumbnail(String nodeId, APIContext context) { + public APIRequestCreateThumbnail(String nodeId, APIContext context) { super(context, nodeId, "/thumbnails", "POST", Arrays.asList(PARAMS)); } @@ -5810,9 +5810,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5825,9 +5825,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideoInsights(String nodeId, APIContext context) { + public APIRequestGetVideoInsights(String nodeId, APIContext context) { super(context, nodeId, "/video_insights", "GET", Arrays.asList(PARAMS)); } @@ -5991,9 +5991,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6006,9 +6006,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -6135,9 +6135,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6150,9 +6150,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -6547,9 +6547,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6562,9 +6562,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdgroupActivity.java b/src/main/java/com/facebook/ads/sdk/AdgroupActivity.java index 589c93df..f9c020ee 100644 --- a/src/main/java/com/facebook/ads/sdk/AdgroupActivity.java +++ b/src/main/java/com/facebook/ads/sdk/AdgroupActivity.java @@ -239,7 +239,7 @@ public static AdgroupActivity loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adgroupActivity.context = context; adgroupActivity.rawValue = json; @@ -260,8 +260,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adgroupActivitys; + } + return adgroupActivitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -285,7 +285,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -667,9 +667,9 @@ public AdgroupActivity execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -682,9 +682,9 @@ public AdgroupActivity apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdgroupIssuesInfo.java b/src/main/java/com/facebook/ads/sdk/AdgroupIssuesInfo.java index 04495a45..047367ca 100644 --- a/src/main/java/com/facebook/ads/sdk/AdgroupIssuesInfo.java +++ b/src/main/java/com/facebook/ads/sdk/AdgroupIssuesInfo.java @@ -86,7 +86,7 @@ public static AdgroupIssuesInfo loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adgroupIssuesInfo.context = context; adgroupIssuesInfo.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupIssuesInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adgroupIssuesInfos; + } + return adgroupIssuesInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupIssuesInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdgroupPlacementSpecificReviewFeedback.java b/src/main/java/com/facebook/ads/sdk/AdgroupPlacementSpecificReviewFeedback.java index a5fc59da..755f2aee 100644 --- a/src/main/java/com/facebook/ads/sdk/AdgroupPlacementSpecificReviewFeedback.java +++ b/src/main/java/com/facebook/ads/sdk/AdgroupPlacementSpecificReviewFeedback.java @@ -128,7 +128,7 @@ public static AdgroupPlacementSpecificReviewFeedback loadJSON(String json, APICo context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adgroupPlacementSpecificReviewFeedback.context = context; adgroupPlacementSpecificReviewFeedback.rawValue = json; @@ -149,8 +149,8 @@ public static APINodeList parseResponse( arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupPlacementSpecificReviewFeedbacks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adgroupPlacementSpecificReviewFeedbacks; + } + return adgroupPlacementSpecificReviewFeedbacks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -174,7 +174,7 @@ public static APINodeList parseResponse( arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupPlacementSpecificReviewFeedbacks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdgroupRelevanceScore.java b/src/main/java/com/facebook/ads/sdk/AdgroupRelevanceScore.java index e95e9318..4588657a 100644 --- a/src/main/java/com/facebook/ads/sdk/AdgroupRelevanceScore.java +++ b/src/main/java/com/facebook/ads/sdk/AdgroupRelevanceScore.java @@ -84,7 +84,7 @@ public static AdgroupRelevanceScore loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adgroupRelevanceScore.context = context; adgroupRelevanceScore.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupRelevanceScores.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adgroupRelevanceScores; + } + return adgroupRelevanceScores; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupRelevanceScores.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdgroupReviewFeedback.java b/src/main/java/com/facebook/ads/sdk/AdgroupReviewFeedback.java index 49d67a12..578f66fd 100644 --- a/src/main/java/com/facebook/ads/sdk/AdgroupReviewFeedback.java +++ b/src/main/java/com/facebook/ads/sdk/AdgroupReviewFeedback.java @@ -80,7 +80,7 @@ public static AdgroupReviewFeedback loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adgroupReviewFeedback.context = context; adgroupReviewFeedback.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupReviewFeedbacks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adgroupReviewFeedbacks; + } + return adgroupReviewFeedbacks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adgroupReviewFeedbacks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsActionStats.java b/src/main/java/com/facebook/ads/sdk/AdsActionStats.java index c81db2b0..b4b94a47 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsActionStats.java +++ b/src/main/java/com/facebook/ads/sdk/AdsActionStats.java @@ -130,7 +130,7 @@ public static AdsActionStats loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsActionStats.context = context; adsActionStats.rawValue = json; @@ -151,8 +151,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsActionStatss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsActionStatss; + } + return adsActionStatss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -176,7 +176,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsActionStatss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsImageCrops.java b/src/main/java/com/facebook/ads/sdk/AdsImageCrops.java index 00be5c2f..172d8555 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsImageCrops.java +++ b/src/main/java/com/facebook/ads/sdk/AdsImageCrops.java @@ -90,7 +90,7 @@ public static AdsImageCrops loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsImageCrops.context = context; adsImageCrops.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsImageCropss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsImageCropss; + } + return adsImageCropss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsImageCropss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsInsights.java b/src/main/java/com/facebook/ads/sdk/AdsInsights.java index 25c9e75d..f707c3e0 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsInsights.java +++ b/src/main/java/com/facebook/ads/sdk/AdsInsights.java @@ -540,7 +540,7 @@ public static AdsInsights loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsInsights.context = context; adsInsights.rawValue = json; @@ -561,8 +561,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsInsightss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsInsightss; + } + return adsInsightss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -586,7 +586,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsInsightss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsOptimalDeliveryGrowthOpportunity.java b/src/main/java/com/facebook/ads/sdk/AdsOptimalDeliveryGrowthOpportunity.java index 783e664a..d71fd545 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsOptimalDeliveryGrowthOpportunity.java +++ b/src/main/java/com/facebook/ads/sdk/AdsOptimalDeliveryGrowthOpportunity.java @@ -82,7 +82,7 @@ public static AdsOptimalDeliveryGrowthOpportunity loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsOptimalDeliveryGrowthOpportunity.context = context; adsOptimalDeliveryGrowthOpportunity.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsOptimalDeliveryGrowthOpportunitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsOptimalDeliveryGrowthOpportunitys; + } + return adsOptimalDeliveryGrowthOpportunitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsOptimalDeliveryGrowthOpportunitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsPixel.java b/src/main/java/com/facebook/ads/sdk/AdsPixel.java index 996e3a8e..200a6009 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsPixel.java +++ b/src/main/java/com/facebook/ads/sdk/AdsPixel.java @@ -165,7 +165,7 @@ public static AdsPixel loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsPixel.context = context; adsPixel.rawValue = json; @@ -186,8 +186,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsPixels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsPixels; + } + return adsPixels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -211,7 +211,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsPixels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -447,9 +447,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -462,9 +462,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { + public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "DELETE", Arrays.asList(PARAMS)); } @@ -565,9 +565,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -580,9 +580,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedUsers(String nodeId, APIContext context) { + public APIRequestGetAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "GET", Arrays.asList(PARAMS)); } @@ -704,9 +704,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -719,9 +719,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAssignedUser(String nodeId, APIContext context) { + public APIRequestCreateAssignedUser(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "POST", Arrays.asList(PARAMS)); } @@ -833,9 +833,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -848,9 +848,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDaChecks(String nodeId, APIContext context) { + public APIRequestGetDaChecks(String nodeId, APIContext context) { super(context, nodeId, "/da_checks", "GET", Arrays.asList(PARAMS)); } @@ -992,9 +992,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1007,9 +1007,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateEvent(String nodeId, APIContext context) { + public APIRequestCreateEvent(String nodeId, APIContext context) { super(context, nodeId, "/events", "POST", Arrays.asList(PARAMS)); } @@ -1126,9 +1126,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1141,9 +1141,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteSharedAccounts(String nodeId, APIContext context) { + public APIRequestDeleteSharedAccounts(String nodeId, APIContext context) { super(context, nodeId, "/shared_accounts", "DELETE", Arrays.asList(PARAMS)); } @@ -1301,9 +1301,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1316,9 +1316,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedAccounts(String nodeId, APIContext context) { + public APIRequestGetSharedAccounts(String nodeId, APIContext context) { super(context, nodeId, "/shared_accounts", "GET", Arrays.asList(PARAMS)); } @@ -1832,9 +1832,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1847,9 +1847,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSharedAccount(String nodeId, APIContext context) { + public APIRequestCreateSharedAccount(String nodeId, APIContext context) { super(context, nodeId, "/shared_accounts", "POST", Arrays.asList(PARAMS)); } @@ -1964,9 +1964,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1979,9 +1979,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedAgencies(String nodeId, APIContext context) { + public APIRequestGetSharedAgencies(String nodeId, APIContext context) { super(context, nodeId, "/shared_agencies", "GET", Arrays.asList(PARAMS)); } @@ -2202,9 +2202,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2217,9 +2217,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetStats(String nodeId, APIContext context) { + public APIRequestGetStats(String nodeId, APIContext context) { super(context, nodeId, "/stats", "GET", Arrays.asList(PARAMS)); } @@ -2371,9 +2371,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2386,9 +2386,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2586,9 +2586,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2601,9 +2601,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AdsPixelStats.java b/src/main/java/com/facebook/ads/sdk/AdsPixelStats.java index 22b1c2f2..4d5cac52 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsPixelStats.java +++ b/src/main/java/com/facebook/ads/sdk/AdsPixelStats.java @@ -84,7 +84,7 @@ public static AdsPixelStats loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsPixelStats.context = context; adsPixelStats.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsPixelStatss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsPixelStatss; + } + return adsPixelStatss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsPixelStatss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsPixelStatsResult.java b/src/main/java/com/facebook/ads/sdk/AdsPixelStatsResult.java index 4e11ed71..48e221a6 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsPixelStatsResult.java +++ b/src/main/java/com/facebook/ads/sdk/AdsPixelStatsResult.java @@ -82,7 +82,7 @@ public static AdsPixelStatsResult loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsPixelStatsResult.context = context; adsPixelStatsResult.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsPixelStatsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsPixelStatsResults; + } + return adsPixelStatsResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsPixelStatsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AdsTALHealthCheckError.java b/src/main/java/com/facebook/ads/sdk/AdsTALHealthCheckError.java index 2bd73e19..6586a0ff 100644 --- a/src/main/java/com/facebook/ads/sdk/AdsTALHealthCheckError.java +++ b/src/main/java/com/facebook/ads/sdk/AdsTALHealthCheckError.java @@ -80,7 +80,7 @@ public static AdsTALHealthCheckError loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } adsTALHealthCheckError.context = context; adsTALHealthCheckError.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsTALHealthCheckErrors.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return adsTALHealthCheckErrors; + } + return adsTALHealthCheckErrors; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { adsTALHealthCheckErrors.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AgeRange.java b/src/main/java/com/facebook/ads/sdk/AgeRange.java index 5d4f653d..9f3e0cf1 100644 --- a/src/main/java/com/facebook/ads/sdk/AgeRange.java +++ b/src/main/java/com/facebook/ads/sdk/AgeRange.java @@ -80,7 +80,7 @@ public static AgeRange loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } ageRange.context = context; ageRange.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { ageRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return ageRanges; + } + return ageRanges; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { ageRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AgencyClientDeclaration.java b/src/main/java/com/facebook/ads/sdk/AgencyClientDeclaration.java index 0fbc9067..897f9249 100644 --- a/src/main/java/com/facebook/ads/sdk/AgencyClientDeclaration.java +++ b/src/main/java/com/facebook/ads/sdk/AgencyClientDeclaration.java @@ -100,7 +100,7 @@ public static AgencyClientDeclaration loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } agencyClientDeclaration.context = context; agencyClientDeclaration.rawValue = json; @@ -121,8 +121,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { agencyClientDeclarations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return agencyClientDeclarations; + } + return agencyClientDeclarations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -146,7 +146,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { agencyClientDeclarations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Album.java b/src/main/java/com/facebook/ads/sdk/Album.java index f43f5483..a07a2826 100644 --- a/src/main/java/com/facebook/ads/sdk/Album.java +++ b/src/main/java/com/facebook/ads/sdk/Album.java @@ -181,7 +181,7 @@ public static Album loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } album.context = context; album.rawValue = json; @@ -202,8 +202,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { albums.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return albums; + } + return albums; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -227,7 +227,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { albums.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -505,9 +505,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -520,9 +520,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -815,9 +815,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -830,9 +830,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -1004,9 +1004,9 @@ public Album execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1019,9 +1019,9 @@ public Album apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLike(String nodeId, APIContext context) { + public APIRequestCreateLike(String nodeId, APIContext context) { super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS)); } @@ -1159,9 +1159,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1174,9 +1174,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhotos(String nodeId, APIContext context) { + public APIRequestGetPhotos(String nodeId, APIContext context) { super(context, nodeId, "/photos", "GET", Arrays.asList(PARAMS)); } @@ -1504,9 +1504,9 @@ public Photo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1519,9 +1519,9 @@ public Photo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePhoto(String nodeId, APIContext context) { + public APIRequestCreatePhoto(String nodeId, APIContext context) { super(context, nodeId, "/photos", "POST", Arrays.asList(PARAMS)); } @@ -2003,9 +2003,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2018,9 +2018,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -2249,9 +2249,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2264,9 +2264,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -2803,9 +2803,9 @@ public Album execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2818,9 +2818,9 @@ public Album apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AndroidAppLink.java b/src/main/java/com/facebook/ads/sdk/AndroidAppLink.java index 280c06a8..bcbcb27a 100644 --- a/src/main/java/com/facebook/ads/sdk/AndroidAppLink.java +++ b/src/main/java/com/facebook/ads/sdk/AndroidAppLink.java @@ -84,7 +84,7 @@ public static AndroidAppLink loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } androidAppLink.context = context; androidAppLink.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { androidAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return androidAppLinks; + } + return androidAppLinks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { androidAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AppRequest.java b/src/main/java/com/facebook/ads/sdk/AppRequest.java index 2eb87117..4c05fadf 100644 --- a/src/main/java/com/facebook/ads/sdk/AppRequest.java +++ b/src/main/java/com/facebook/ads/sdk/AppRequest.java @@ -153,7 +153,7 @@ public static AppRequest loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } appRequest.context = context; appRequest.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { appRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return appRequests; + } + return appRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { appRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -371,9 +371,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -386,9 +386,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -493,9 +493,9 @@ public AppRequest execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -508,9 +508,9 @@ public AppRequest apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AppRequestFormerRecipient.java b/src/main/java/com/facebook/ads/sdk/AppRequestFormerRecipient.java index 4bf2ca9d..993b414d 100644 --- a/src/main/java/com/facebook/ads/sdk/AppRequestFormerRecipient.java +++ b/src/main/java/com/facebook/ads/sdk/AppRequestFormerRecipient.java @@ -80,7 +80,7 @@ public static AppRequestFormerRecipient loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } appRequestFormerRecipient.context = context; appRequestFormerRecipient.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { appRequestFormerRecipients.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return appRequestFormerRecipients; + } + return appRequestFormerRecipients; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { appRequestFormerRecipients.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Application.java b/src/main/java/com/facebook/ads/sdk/Application.java index 7838436a..434b6bf5 100644 --- a/src/main/java/com/facebook/ads/sdk/Application.java +++ b/src/main/java/com/facebook/ads/sdk/Application.java @@ -335,7 +335,7 @@ public static Application loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } application.context = context; application.rawValue = json; @@ -356,8 +356,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { applications.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return applications; + } + return applications; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -381,7 +381,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { applications.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -1117,9 +1117,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1132,9 +1132,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAccounts(String nodeId, APIContext context) { + public APIRequestDeleteAccounts(String nodeId, APIContext context) { super(context, nodeId, "/accounts", "DELETE", Arrays.asList(PARAMS)); } @@ -1240,9 +1240,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1255,9 +1255,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAccounts(String nodeId, APIContext context) { + public APIRequestGetAccounts(String nodeId, APIContext context) { super(context, nodeId, "/accounts", "GET", Arrays.asList(PARAMS)); } @@ -1360,9 +1360,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1375,9 +1375,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAccount(String nodeId, APIContext context) { + public APIRequestCreateAccount(String nodeId, APIContext context) { super(context, nodeId, "/accounts", "POST", Arrays.asList(PARAMS)); } @@ -1548,9 +1548,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1563,9 +1563,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateActivity(String nodeId, APIContext context) { + public APIRequestCreateActivity(String nodeId, APIContext context) { super(context, nodeId, "/activities", "POST", Arrays.asList(PARAMS)); } @@ -1868,9 +1868,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1883,9 +1883,9 @@ public APINodeList apply(ResponseWrapper resu } } ); - }; + } - public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) { + public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics", "GET", Arrays.asList(PARAMS)); } @@ -2068,9 +2068,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2083,9 +2083,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) { + public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics", "POST", Arrays.asList(PARAMS)); } @@ -2251,9 +2251,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2266,9 +2266,9 @@ public APINodeList apply(ResponseWrapper res } } ); - }; + } - public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) { + public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics_results", "GET", Arrays.asList(PARAMS)); } @@ -2417,9 +2417,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2432,9 +2432,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -2647,9 +2647,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2662,9 +2662,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAppEventTypes(String nodeId, APIContext context) { + public APIRequestGetAppEventTypes(String nodeId, APIContext context) { super(context, nodeId, "/app_event_types", "GET", Arrays.asList(PARAMS)); } @@ -2757,9 +2757,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2772,9 +2772,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAppIndexing(String nodeId, APIContext context) { + public APIRequestCreateAppIndexing(String nodeId, APIContext context) { super(context, nodeId, "/app_indexing", "POST", Arrays.asList(PARAMS)); } @@ -2905,9 +2905,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2920,9 +2920,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAppIndexingSession(String nodeId, APIContext context) { + public APIRequestCreateAppIndexingSession(String nodeId, APIContext context) { super(context, nodeId, "/app_indexing_session", "POST", Arrays.asList(PARAMS)); } @@ -3028,9 +3028,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3043,9 +3043,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAppInsights(String nodeId, APIContext context) { + public APIRequestGetAppInsights(String nodeId, APIContext context) { super(context, nodeId, "/app_insights", "GET", Arrays.asList(PARAMS)); } @@ -3217,9 +3217,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3232,9 +3232,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAppInstalledGroups(String nodeId, APIContext context) { + public APIRequestGetAppInstalledGroups(String nodeId, APIContext context) { super(context, nodeId, "/app_installed_groups", "GET", Arrays.asList(PARAMS)); } @@ -3462,9 +3462,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3477,9 +3477,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAppPushDeviceToken(String nodeId, APIContext context) { + public APIRequestCreateAppPushDeviceToken(String nodeId, APIContext context) { super(context, nodeId, "/app_push_device_token", "POST", Arrays.asList(PARAMS)); } @@ -3585,9 +3585,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3600,9 +3600,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAppAssets(String nodeId, APIContext context) { + public APIRequestGetAppAssets(String nodeId, APIContext context) { super(context, nodeId, "/appassets", "GET", Arrays.asList(PARAMS)); } @@ -3692,9 +3692,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3707,9 +3707,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAsset(String nodeId, APIContext context) { + public APIRequestCreateAsset(String nodeId, APIContext context) { super(context, nodeId, "/assets", "POST", Arrays.asList(PARAMS)); } @@ -3876,9 +3876,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3891,9 +3891,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAuthorizedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAuthorizedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/authorized_adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -4406,9 +4406,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4421,9 +4421,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteBanned(String nodeId, APIContext context) { + public APIRequestDeleteBanned(String nodeId, APIContext context) { super(context, nodeId, "/banned", "DELETE", Arrays.asList(PARAMS)); } @@ -4520,9 +4520,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4535,9 +4535,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetButtonAutoDetectionDeviceSelection(String nodeId, APIContext context) { + public APIRequestGetButtonAutoDetectionDeviceSelection(String nodeId, APIContext context) { super(context, nodeId, "/button_auto_detection_device_selection", "GET", Arrays.asList(PARAMS)); } @@ -4633,9 +4633,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4648,9 +4648,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateButtonIndexing(String nodeId, APIContext context) { + public APIRequestCreateButtonIndexing(String nodeId, APIContext context) { super(context, nodeId, "/button_indexing", "POST", Arrays.asList(PARAMS)); } @@ -4765,9 +4765,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4780,9 +4780,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCodelessEventMapping(String nodeId, APIContext context) { + public APIRequestCreateCodelessEventMapping(String nodeId, APIContext context) { super(context, nodeId, "/codeless_event_mappings", "POST", Arrays.asList(PARAMS)); } @@ -4912,9 +4912,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4927,9 +4927,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDaChecks(String nodeId, APIContext context) { + public APIRequestGetDaChecks(String nodeId, APIContext context) { super(context, nodeId, "/da_checks", "GET", Arrays.asList(PARAMS)); } @@ -5099,9 +5099,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5114,9 +5114,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEvents(String nodeId, APIContext context) { + public APIRequestGetEvents(String nodeId, APIContext context) { super(context, nodeId, "/events", "GET", Arrays.asList(PARAMS)); } @@ -5432,9 +5432,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5447,9 +5447,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFullAppIndexingInfos(String nodeId, APIContext context) { + public APIRequestGetFullAppIndexingInfos(String nodeId, APIContext context) { super(context, nodeId, "/full_app_indexing_infos", "GET", Arrays.asList(PARAMS)); } @@ -5543,9 +5543,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5558,9 +5558,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateFullAppIndexingInfo(String nodeId, APIContext context) { + public APIRequestCreateFullAppIndexingInfo(String nodeId, APIContext context) { super(context, nodeId, "/full_app_indexing_infos", "POST", Arrays.asList(PARAMS)); } @@ -5661,9 +5661,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5676,9 +5676,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsightsPushSchedule(String nodeId, APIContext context) { + public APIRequestGetInsightsPushSchedule(String nodeId, APIContext context) { super(context, nodeId, "/insights_push_schedule", "GET", Arrays.asList(PARAMS)); } @@ -5777,9 +5777,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5792,9 +5792,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateInsightsPushSchedule(String nodeId, APIContext context) { + public APIRequestCreateInsightsPushSchedule(String nodeId, APIContext context) { super(context, nodeId, "/insights_push_schedule", "POST", Arrays.asList(PARAMS)); } @@ -5973,9 +5973,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5988,9 +5988,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetIosDialogConfigs(String nodeId, APIContext context) { + public APIRequestGetIosDialogConfigs(String nodeId, APIContext context) { super(context, nodeId, "/ios_dialog_configs", "GET", Arrays.asList(PARAMS)); } @@ -6083,9 +6083,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6098,9 +6098,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLeaderboardsCreate(String nodeId, APIContext context) { + public APIRequestCreateLeaderboardsCreate(String nodeId, APIContext context) { super(context, nodeId, "/leaderboards_create", "POST", Arrays.asList(PARAMS)); } @@ -6231,9 +6231,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6246,9 +6246,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLeaderboardsDeleteEntry(String nodeId, APIContext context) { + public APIRequestCreateLeaderboardsDeleteEntry(String nodeId, APIContext context) { super(context, nodeId, "/leaderboards_delete_entry", "POST", Arrays.asList(PARAMS)); } @@ -6347,9 +6347,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6362,9 +6362,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLeaderboardsReset(String nodeId, APIContext context) { + public APIRequestCreateLeaderboardsReset(String nodeId, APIContext context) { super(context, nodeId, "/leaderboards_reset", "POST", Arrays.asList(PARAMS)); } @@ -6465,9 +6465,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6480,9 +6480,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLeaderboardsSetScore(String nodeId, APIContext context) { + public APIRequestCreateLeaderboardsSetScore(String nodeId, APIContext context) { super(context, nodeId, "/leaderboards_set_score", "POST", Arrays.asList(PARAMS)); } @@ -6607,9 +6607,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6622,9 +6622,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMmpAuditing(String nodeId, APIContext context) { + public APIRequestCreateMmpAuditing(String nodeId, APIContext context) { super(context, nodeId, "/mmp_auditing", "POST", Arrays.asList(PARAMS)); } @@ -6817,9 +6817,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6832,9 +6832,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMobileSdkGk(String nodeId, APIContext context) { + public APIRequestGetMobileSdkGk(String nodeId, APIContext context) { super(context, nodeId, "/mobile_sdk_gk", "GET", Arrays.asList(PARAMS)); } @@ -6956,9 +6956,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6971,9 +6971,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMonetization(String nodeId, APIContext context) { + public APIRequestCreateMonetization(String nodeId, APIContext context) { super(context, nodeId, "/monetization", "POST", Arrays.asList(PARAMS)); } @@ -7105,9 +7105,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7120,9 +7120,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOccludesPopup(String nodeId, APIContext context) { + public APIRequestCreateOccludesPopup(String nodeId, APIContext context) { super(context, nodeId, "/occludespopups", "POST", Arrays.asList(PARAMS)); } @@ -7227,9 +7227,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7242,9 +7242,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOzoneRelease(String nodeId, APIContext context) { + public APIRequestGetOzoneRelease(String nodeId, APIContext context) { super(context, nodeId, "/ozone_release", "GET", Arrays.asList(PARAMS)); } @@ -7338,9 +7338,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7353,9 +7353,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePageActivity(String nodeId, APIContext context) { + public APIRequestCreatePageActivity(String nodeId, APIContext context) { super(context, nodeId, "/page_activities", "POST", Arrays.asList(PARAMS)); } @@ -7506,9 +7506,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7521,9 +7521,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeletePaymentCurrencies(String nodeId, APIContext context) { + public APIRequestDeletePaymentCurrencies(String nodeId, APIContext context) { super(context, nodeId, "/payment_currencies", "DELETE", Arrays.asList(PARAMS)); } @@ -7616,9 +7616,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7631,9 +7631,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePaymentCurrency(String nodeId, APIContext context) { + public APIRequestCreatePaymentCurrency(String nodeId, APIContext context) { super(context, nodeId, "/payment_currencies", "POST", Arrays.asList(PARAMS)); } @@ -7730,9 +7730,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7745,9 +7745,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPermissions(String nodeId, APIContext context) { + public APIRequestGetPermissions(String nodeId, APIContext context) { super(context, nodeId, "/permissions", "GET", Arrays.asList(PARAMS)); } @@ -7872,9 +7872,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7887,9 +7887,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProducts(String nodeId, APIContext context) { + public APIRequestGetProducts(String nodeId, APIContext context) { super(context, nodeId, "/products", "GET", Arrays.asList(PARAMS)); } @@ -7986,9 +7986,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8001,9 +8001,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPurchases(String nodeId, APIContext context) { + public APIRequestGetPurchases(String nodeId, APIContext context) { super(context, nodeId, "/purchases", "GET", Arrays.asList(PARAMS)); } @@ -8099,9 +8099,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8114,9 +8114,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRoles(String nodeId, APIContext context) { + public APIRequestGetRoles(String nodeId, APIContext context) { super(context, nodeId, "/roles", "GET", Arrays.asList(PARAMS)); } @@ -8203,9 +8203,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8218,9 +8218,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSubscribedDomains(String nodeId, APIContext context) { + public APIRequestGetSubscribedDomains(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_domains", "GET", Arrays.asList(PARAMS)); } @@ -8309,9 +8309,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8324,9 +8324,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSubscribedDomain(String nodeId, APIContext context) { + public APIRequestCreateSubscribedDomain(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_domains", "POST", Arrays.asList(PARAMS)); } @@ -8431,9 +8431,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8446,9 +8446,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSubscribedDomainsPhishing(String nodeId, APIContext context) { + public APIRequestGetSubscribedDomainsPhishing(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_domains_phishing", "GET", Arrays.asList(PARAMS)); } @@ -8537,9 +8537,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8552,9 +8552,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSubscribedDomainsPhishing(String nodeId, APIContext context) { + public APIRequestCreateSubscribedDomainsPhishing(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_domains_phishing", "POST", Arrays.asList(PARAMS)); } @@ -8661,9 +8661,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8676,9 +8676,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteSubscriptions(String nodeId, APIContext context) { + public APIRequestDeleteSubscriptions(String nodeId, APIContext context) { super(context, nodeId, "/subscriptions", "DELETE", Arrays.asList(PARAMS)); } @@ -8784,9 +8784,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8799,9 +8799,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSubscription(String nodeId, APIContext context) { + public APIRequestCreateSubscription(String nodeId, APIContext context) { super(context, nodeId, "/subscriptions", "POST", Arrays.asList(PARAMS)); } @@ -8925,9 +8925,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8940,9 +8940,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUpload(String nodeId, APIContext context) { + public APIRequestCreateUpload(String nodeId, APIContext context) { super(context, nodeId, "/uploads", "POST", Arrays.asList(PARAMS)); } @@ -9066,9 +9066,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9081,9 +9081,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUserProperty(String nodeId, APIContext context) { + public APIRequestCreateUserProperty(String nodeId, APIContext context) { super(context, nodeId, "/user_properties", "POST", Arrays.asList(PARAMS)); } @@ -9280,9 +9280,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9295,9 +9295,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -10137,9 +10137,9 @@ public Application execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -10152,9 +10152,9 @@ public Application apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AssignedUser.java b/src/main/java/com/facebook/ads/sdk/AssignedUser.java index f2798191..e594c11c 100644 --- a/src/main/java/com/facebook/ads/sdk/AssignedUser.java +++ b/src/main/java/com/facebook/ads/sdk/AssignedUser.java @@ -84,7 +84,7 @@ public static AssignedUser loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } assignedUser.context = context; assignedUser.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { assignedUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return assignedUsers; + } + return assignedUsers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { assignedUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AsyncRequest.java b/src/main/java/com/facebook/ads/sdk/AsyncRequest.java index 162fbecd..59d05fb9 100644 --- a/src/main/java/com/facebook/ads/sdk/AsyncRequest.java +++ b/src/main/java/com/facebook/ads/sdk/AsyncRequest.java @@ -84,7 +84,7 @@ public static AsyncRequest loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } asyncRequest.context = context; asyncRequest.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { asyncRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return asyncRequests; + } + return asyncRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { asyncRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AsyncSession.java b/src/main/java/com/facebook/ads/sdk/AsyncSession.java index 751e9eaa..a9b52471 100644 --- a/src/main/java/com/facebook/ads/sdk/AsyncSession.java +++ b/src/main/java/com/facebook/ads/sdk/AsyncSession.java @@ -165,7 +165,7 @@ public static AsyncSession loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } asyncSession.context = context; asyncSession.rawValue = json; @@ -186,8 +186,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { asyncSessions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return asyncSessions; + } + return asyncSessions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -211,7 +211,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { asyncSessions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -417,9 +417,9 @@ public AsyncSession execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -432,9 +432,9 @@ public AsyncSession apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AtlasCampaign.java b/src/main/java/com/facebook/ads/sdk/AtlasCampaign.java index 2da0ec45..05d6dcb4 100644 --- a/src/main/java/com/facebook/ads/sdk/AtlasCampaign.java +++ b/src/main/java/com/facebook/ads/sdk/AtlasCampaign.java @@ -331,7 +331,7 @@ public static AtlasCampaign loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } atlasCampaign.context = context; atlasCampaign.rawValue = json; @@ -352,8 +352,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { atlasCampaigns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return atlasCampaigns; + } + return atlasCampaigns; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -377,7 +377,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { atlasCampaigns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -910,9 +910,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -925,9 +925,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdSets(String nodeId, APIContext context) { + public APIRequestGetAdSets(String nodeId, APIContext context) { super(context, nodeId, "/ad_sets", "GET", Arrays.asList(PARAMS)); } @@ -1042,9 +1042,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1057,9 +1057,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinessUnit(String nodeId, APIContext context) { + public APIRequestGetBusinessUnit(String nodeId, APIContext context) { super(context, nodeId, "/business_unit", "GET", Arrays.asList(PARAMS)); } @@ -1213,9 +1213,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1228,9 +1228,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMetricsBreakdown(String nodeId, APIContext context) { + public APIRequestGetMetricsBreakdown(String nodeId, APIContext context) { super(context, nodeId, "/metrics_breakdown", "GET", Arrays.asList(PARAMS)); } @@ -1356,9 +1356,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1371,9 +1371,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSources(String nodeId, APIContext context) { + public APIRequestGetSources(String nodeId, APIContext context) { super(context, nodeId, "/sources", "GET", Arrays.asList(PARAMS)); } @@ -1578,9 +1578,9 @@ public AtlasCampaign execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1593,9 +1593,9 @@ public AtlasCampaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AtlasURL.java b/src/main/java/com/facebook/ads/sdk/AtlasURL.java index 13b6d437..09a380af 100644 --- a/src/main/java/com/facebook/ads/sdk/AtlasURL.java +++ b/src/main/java/com/facebook/ads/sdk/AtlasURL.java @@ -78,7 +78,7 @@ public static AtlasURL loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } atlasURL.context = context; atlasURL.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { atlasURLs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return atlasURLs; + } + return atlasURLs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { atlasURLs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AttributionSpec.java b/src/main/java/com/facebook/ads/sdk/AttributionSpec.java index 66354e53..4fe2d719 100644 --- a/src/main/java/com/facebook/ads/sdk/AttributionSpec.java +++ b/src/main/java/com/facebook/ads/sdk/AttributionSpec.java @@ -80,7 +80,7 @@ public static AttributionSpec loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } attributionSpec.context = context; attributionSpec.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { attributionSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return attributionSpecs; + } + return attributionSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { attributionSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AudienceInsightsStudySpec.java b/src/main/java/com/facebook/ads/sdk/AudienceInsightsStudySpec.java index 8ca87d5b..9c4219a7 100644 --- a/src/main/java/com/facebook/ads/sdk/AudienceInsightsStudySpec.java +++ b/src/main/java/com/facebook/ads/sdk/AudienceInsightsStudySpec.java @@ -92,7 +92,7 @@ public static AudienceInsightsStudySpec loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } audienceInsightsStudySpec.context = context; audienceInsightsStudySpec.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { audienceInsightsStudySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return audienceInsightsStudySpecs; + } + return audienceInsightsStudySpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { audienceInsightsStudySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AudiencePermissionForActions.java b/src/main/java/com/facebook/ads/sdk/AudiencePermissionForActions.java index edcf9f67..5424bdc0 100644 --- a/src/main/java/com/facebook/ads/sdk/AudiencePermissionForActions.java +++ b/src/main/java/com/facebook/ads/sdk/AudiencePermissionForActions.java @@ -86,7 +86,7 @@ public static AudiencePermissionForActions loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } audiencePermissionForActions.context = context; audiencePermissionForActions.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { audiencePermissionForActionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return audiencePermissionForActionss; + } + return audiencePermissionForActionss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { audiencePermissionForActionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/AudioCopyright.java b/src/main/java/com/facebook/ads/sdk/AudioCopyright.java index e262863b..abe9f928 100644 --- a/src/main/java/com/facebook/ads/sdk/AudioCopyright.java +++ b/src/main/java/com/facebook/ads/sdk/AudioCopyright.java @@ -159,7 +159,7 @@ public static AudioCopyright loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } audioCopyright.context = context; audioCopyright.rawValue = json; @@ -180,8 +180,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { audioCopyrights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return audioCopyrights; + } + return audioCopyrights; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -205,7 +205,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { audioCopyrights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -390,9 +390,9 @@ public AudioCopyright execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -405,9 +405,9 @@ public AudioCopyright apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/AutomotiveModel.java b/src/main/java/com/facebook/ads/sdk/AutomotiveModel.java index 38027447..696c9253 100644 --- a/src/main/java/com/facebook/ads/sdk/AutomotiveModel.java +++ b/src/main/java/com/facebook/ads/sdk/AutomotiveModel.java @@ -185,7 +185,7 @@ public static AutomotiveModel loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } automotiveModel.context = context; automotiveModel.rawValue = json; @@ -206,8 +206,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { automotiveModels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return automotiveModels; + } + return automotiveModels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -231,7 +231,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { automotiveModels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -478,9 +478,9 @@ public AutomotiveModel execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -493,9 +493,9 @@ public AutomotiveModel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BilledAmountDetails.java b/src/main/java/com/facebook/ads/sdk/BilledAmountDetails.java index 45621f85..6499320e 100644 --- a/src/main/java/com/facebook/ads/sdk/BilledAmountDetails.java +++ b/src/main/java/com/facebook/ads/sdk/BilledAmountDetails.java @@ -84,7 +84,7 @@ public static BilledAmountDetails loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } billedAmountDetails.context = context; billedAmountDetails.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { billedAmountDetailss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return billedAmountDetailss; + } + return billedAmountDetailss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { billedAmountDetailss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/BrandAudience.java b/src/main/java/com/facebook/ads/sdk/BrandAudience.java index bfba3c9d..98bfc8b9 100644 --- a/src/main/java/com/facebook/ads/sdk/BrandAudience.java +++ b/src/main/java/com/facebook/ads/sdk/BrandAudience.java @@ -155,7 +155,7 @@ public static BrandAudience loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } brandAudience.context = context; brandAudience.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { brandAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return brandAudiences; + } + return brandAudiences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { brandAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -376,9 +376,9 @@ public BrandAudience execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -391,9 +391,9 @@ public BrandAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BrandSafetyBlockListUsage.java b/src/main/java/com/facebook/ads/sdk/BrandSafetyBlockListUsage.java index 23bd62bc..21ba1495 100644 --- a/src/main/java/com/facebook/ads/sdk/BrandSafetyBlockListUsage.java +++ b/src/main/java/com/facebook/ads/sdk/BrandSafetyBlockListUsage.java @@ -86,7 +86,7 @@ public static BrandSafetyBlockListUsage loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } brandSafetyBlockListUsage.context = context; brandSafetyBlockListUsage.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { brandSafetyBlockListUsages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return brandSafetyBlockListUsages; + } + return brandSafetyBlockListUsages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { brandSafetyBlockListUsages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/BroadTargetingCategories.java b/src/main/java/com/facebook/ads/sdk/BroadTargetingCategories.java index fd600122..b33969c5 100644 --- a/src/main/java/com/facebook/ads/sdk/BroadTargetingCategories.java +++ b/src/main/java/com/facebook/ads/sdk/BroadTargetingCategories.java @@ -98,7 +98,7 @@ public static BroadTargetingCategories loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } broadTargetingCategories.context = context; broadTargetingCategories.rawValue = json; @@ -119,8 +119,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { broadTargetingCategoriess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return broadTargetingCategoriess; + } + return broadTargetingCategoriess; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -144,7 +144,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { broadTargetingCategoriess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Business.java b/src/main/java/com/facebook/ads/sdk/Business.java index 254f7aba..e001f788 100644 --- a/src/main/java/com/facebook/ads/sdk/Business.java +++ b/src/main/java/com/facebook/ads/sdk/Business.java @@ -173,7 +173,7 @@ public static Business loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } business.context = context; business.rawValue = json; @@ -194,8 +194,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businesss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businesss; + } + return businesss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -219,7 +219,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businesss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -735,9 +735,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -750,9 +750,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAccessToken(String nodeId, APIContext context) { + public APIRequestCreateAccessToken(String nodeId, APIContext context) { super(context, nodeId, "/access_token", "POST", Arrays.asList(PARAMS)); } @@ -873,9 +873,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -888,9 +888,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdStudies(String nodeId, APIContext context) { + public APIRequestGetAdStudies(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "GET", Arrays.asList(PARAMS)); } @@ -1094,9 +1094,9 @@ public AdStudy execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1109,9 +1109,9 @@ public AdStudy apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdStudy(String nodeId, APIContext context) { + public APIRequestCreateAdStudy(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "POST", Arrays.asList(PARAMS)); } @@ -1307,9 +1307,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1322,9 +1322,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdAccount(String nodeId, APIContext context) { + public APIRequestCreateAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/adaccount", "POST", Arrays.asList(PARAMS)); } @@ -1511,9 +1511,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1526,9 +1526,9 @@ public APINodeList apply(ResponseWrapper resu } } ); - }; + } - public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) { + public APIRequestGetAdNetworkAnalytics(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics", "GET", Arrays.asList(PARAMS)); } @@ -1711,9 +1711,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1726,9 +1726,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) { + public APIRequestCreateAdNetworkAnalytic(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics", "POST", Arrays.asList(PARAMS)); } @@ -1894,9 +1894,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1909,9 +1909,9 @@ public APINodeList apply(ResponseWrapper res } } ); - }; + } - public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) { + public APIRequestGetAdNetworkAnalyticsResults(String nodeId, APIContext context) { super(context, nodeId, "/adnetworkanalytics_results", "GET", Arrays.asList(PARAMS)); } @@ -2060,9 +2060,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2075,9 +2075,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdsPixels(String nodeId, APIContext context) { + public APIRequestGetAdsPixels(String nodeId, APIContext context) { super(context, nodeId, "/adspixels", "GET", Arrays.asList(PARAMS)); } @@ -2289,9 +2289,9 @@ public AdsPixel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2304,9 +2304,9 @@ public AdsPixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdsPixel(String nodeId, APIContext context) { + public APIRequestCreateAdsPixel(String nodeId, APIContext context) { super(context, nodeId, "/adspixels", "POST", Arrays.asList(PARAMS)); } @@ -2399,9 +2399,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2414,9 +2414,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAgencies(String nodeId, APIContext context) { + public APIRequestDeleteAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "DELETE", Arrays.asList(PARAMS)); } @@ -2526,9 +2526,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2541,9 +2541,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -2764,9 +2764,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2779,9 +2779,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAnPlacements(String nodeId, APIContext context) { + public APIRequestGetAnPlacements(String nodeId, APIContext context) { super(context, nodeId, "/an_placements", "GET", Arrays.asList(PARAMS)); } @@ -2925,9 +2925,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2940,9 +2940,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBlockListDraft(String nodeId, APIContext context) { + public APIRequestCreateBlockListDraft(String nodeId, APIContext context) { super(context, nodeId, "/block_list_drafts", "POST", Arrays.asList(PARAMS)); } @@ -3040,9 +3040,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3055,9 +3055,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinessAssetGroups(String nodeId, APIContext context) { + public APIRequestGetBusinessAssetGroups(String nodeId, APIContext context) { super(context, nodeId, "/business_asset_groups", "GET", Arrays.asList(PARAMS)); } @@ -3184,9 +3184,9 @@ public APINodeList execute(Map extraParams) t public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3199,9 +3199,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinessInvoices(String nodeId, APIContext context) { + public APIRequestGetBusinessInvoices(String nodeId, APIContext context) { super(context, nodeId, "/business_invoices", "GET", Arrays.asList(PARAMS)); } @@ -3477,9 +3477,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3492,9 +3492,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinessUnits(String nodeId, APIContext context) { + public APIRequestGetBusinessUnits(String nodeId, APIContext context) { super(context, nodeId, "/business_units", "GET", Arrays.asList(PARAMS)); } @@ -3645,9 +3645,9 @@ public BusinessUnit execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3660,9 +3660,9 @@ public BusinessUnit apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBusinessUnit(String nodeId, APIContext context) { + public APIRequestCreateBusinessUnit(String nodeId, APIContext context) { super(context, nodeId, "/business_units", "POST", Arrays.asList(PARAMS)); } @@ -3771,9 +3771,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3786,9 +3786,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinessUsers(String nodeId, APIContext context) { + public APIRequestGetBusinessUsers(String nodeId, APIContext context) { super(context, nodeId, "/business_users", "GET", Arrays.asList(PARAMS)); } @@ -3968,9 +3968,9 @@ public BusinessUser execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3983,9 +3983,9 @@ public BusinessUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBusinessUser(String nodeId, APIContext context) { + public APIRequestCreateBusinessUser(String nodeId, APIContext context) { super(context, nodeId, "/business_users", "POST", Arrays.asList(PARAMS)); } @@ -4087,9 +4087,9 @@ public CustomConversion execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4102,9 +4102,9 @@ public CustomConversion apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateClaimCustomConversion(String nodeId, APIContext context) { + public APIRequestCreateClaimCustomConversion(String nodeId, APIContext context) { super(context, nodeId, "/claim_custom_conversions", "POST", Arrays.asList(PARAMS)); } @@ -4256,9 +4256,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4271,9 +4271,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClientAdAccounts(String nodeId, APIContext context) { + public APIRequestGetClientAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/client_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -4782,9 +4782,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4797,9 +4797,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateClientAdAccount(String nodeId, APIContext context) { + public APIRequestCreateClientAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/client_ad_accounts", "POST", Arrays.asList(PARAMS)); } @@ -5000,9 +5000,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5015,9 +5015,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClientApps(String nodeId, APIContext context) { + public APIRequestGetClientApps(String nodeId, APIContext context) { super(context, nodeId, "/client_apps", "GET", Arrays.asList(PARAMS)); } @@ -5805,9 +5805,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5820,9 +5820,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateClientApp(String nodeId, APIContext context) { + public APIRequestCreateClientApp(String nodeId, APIContext context) { super(context, nodeId, "/client_apps", "POST", Arrays.asList(PARAMS)); } @@ -6056,9 +6056,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6071,9 +6071,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClientPages(String nodeId, APIContext context) { + public APIRequestGetClientPages(String nodeId, APIContext context) { super(context, nodeId, "/client_pages", "GET", Arrays.asList(PARAMS)); } @@ -7128,9 +7128,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7143,9 +7143,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateClientPage(String nodeId, APIContext context) { + public APIRequestCreateClientPage(String nodeId, APIContext context) { super(context, nodeId, "/client_pages", "POST", Arrays.asList(PARAMS)); } @@ -7265,9 +7265,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7280,9 +7280,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClientPixels(String nodeId, APIContext context) { + public APIRequestGetClientPixels(String nodeId, APIContext context) { super(context, nodeId, "/client_pixels", "GET", Arrays.asList(PARAMS)); } @@ -7485,9 +7485,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7500,9 +7500,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClientProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetClientProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/client_product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -7667,9 +7667,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7682,9 +7682,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteClients(String nodeId, APIContext context) { + public APIRequestDeleteClients(String nodeId, APIContext context) { super(context, nodeId, "/clients", "DELETE", Arrays.asList(PARAMS)); } @@ -7794,9 +7794,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7809,9 +7809,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClients(String nodeId, APIContext context) { + public APIRequestGetClients(String nodeId, APIContext context) { super(context, nodeId, "/clients", "GET", Arrays.asList(PARAMS)); } @@ -8034,9 +8034,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8049,9 +8049,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { + public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { super(context, nodeId, "/content_delivery_report", "GET", Arrays.asList(PARAMS)); } @@ -8217,9 +8217,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8232,9 +8232,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCreativeFolders(String nodeId, APIContext context) { + public APIRequestGetCreativeFolders(String nodeId, APIContext context) { super(context, nodeId, "/creative_folders", "GET", Arrays.asList(PARAMS)); } @@ -8373,9 +8373,9 @@ public BusinessCreativeFolder execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8388,9 +8388,9 @@ public BusinessCreativeFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCreativeFolder(String nodeId, APIContext context) { + public APIRequestCreateCreativeFolder(String nodeId, APIContext context) { super(context, nodeId, "/creative_folders", "POST", Arrays.asList(PARAMS)); } @@ -8504,9 +8504,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8519,9 +8519,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCreatives(String nodeId, APIContext context) { + public APIRequestGetCreatives(String nodeId, APIContext context) { super(context, nodeId, "/creatives", "GET", Arrays.asList(PARAMS)); } @@ -8697,9 +8697,9 @@ public CustomConversion execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8712,9 +8712,9 @@ public CustomConversion apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCustomConversion(String nodeId, APIContext context) { + public APIRequestCreateCustomConversion(String nodeId, APIContext context) { super(context, nodeId, "/customconversions", "POST", Arrays.asList(PARAMS)); } @@ -8848,9 +8848,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8863,9 +8863,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEventSourceGroups(String nodeId, APIContext context) { + public APIRequestGetEventSourceGroups(String nodeId, APIContext context) { super(context, nodeId, "/event_source_groups", "GET", Arrays.asList(PARAMS)); } @@ -8982,9 +8982,9 @@ public EventSourceGroup execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8997,9 +8997,9 @@ public EventSourceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateEventSourceGroup(String nodeId, APIContext context) { + public APIRequestCreateEventSourceGroup(String nodeId, APIContext context) { super(context, nodeId, "/event_source_groups", "POST", Arrays.asList(PARAMS)); } @@ -9117,9 +9117,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9132,9 +9132,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetExtendedCredits(String nodeId, APIContext context) { + public APIRequestGetExtendedCredits(String nodeId, APIContext context) { super(context, nodeId, "/extendedcredits", "GET", Arrays.asList(PARAMS)); } @@ -9345,9 +9345,9 @@ public BusinessImage execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9360,9 +9360,9 @@ public BusinessImage apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateImage(String nodeId, APIContext context) { + public APIRequestCreateImage(String nodeId, APIContext context) { super(context, nodeId, "/images", "POST", Arrays.asList(PARAMS)); } @@ -9494,9 +9494,9 @@ public APINodeList execute(Map ex public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9509,9 +9509,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetInitiatedAudienceSharingRequests(String nodeId, APIContext context) { + public APIRequestGetInitiatedAudienceSharingRequests(String nodeId, APIContext context) { super(context, nodeId, "/initiated_audience_sharing_requests", "GET", Arrays.asList(PARAMS)); } @@ -9655,9 +9655,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9670,9 +9670,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteInstagramAccounts(String nodeId, APIContext context) { + public APIRequestDeleteInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/instagram_accounts", "DELETE", Arrays.asList(PARAMS)); } @@ -9773,9 +9773,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9788,9 +9788,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInstagramAccounts(String nodeId, APIContext context) { + public APIRequestGetInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/instagram_accounts", "GET", Arrays.asList(PARAMS)); } @@ -9941,9 +9941,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9956,9 +9956,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteManagedBusinesses(String nodeId, APIContext context) { + public APIRequestDeleteManagedBusinesses(String nodeId, APIContext context) { super(context, nodeId, "/managed_businesses", "DELETE", Arrays.asList(PARAMS)); } @@ -10058,9 +10058,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -10073,9 +10073,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateManagedBusiness(String nodeId, APIContext context) { + public APIRequestCreateManagedBusiness(String nodeId, APIContext context) { super(context, nodeId, "/managed_businesses", "POST", Arrays.asList(PARAMS)); } @@ -10224,9 +10224,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -10239,9 +10239,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMoveAsset(String nodeId, APIContext context) { + public APIRequestCreateMoveAsset(String nodeId, APIContext context) { super(context, nodeId, "/move_asset", "POST", Arrays.asList(PARAMS)); } @@ -10358,9 +10358,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -10373,9 +10373,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOfflineConversionDataSets(String nodeId, APIContext context) { + public APIRequestGetOfflineConversionDataSets(String nodeId, APIContext context) { super(context, nodeId, "/offline_conversion_data_sets", "GET", Arrays.asList(PARAMS)); } @@ -10607,9 +10607,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -10622,9 +10622,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOfflineConversionDataSet(String nodeId, APIContext context) { + public APIRequestCreateOfflineConversionDataSet(String nodeId, APIContext context) { super(context, nodeId, "/offline_conversion_data_sets", "POST", Arrays.asList(PARAMS)); } @@ -10808,9 +10808,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -10823,9 +10823,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetOwnedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/owned_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -11333,9 +11333,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -11348,9 +11348,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOwnedAdAccount(String nodeId, APIContext context) { + public APIRequestCreateOwnedAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/owned_ad_accounts", "POST", Arrays.asList(PARAMS)); } @@ -11542,9 +11542,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11557,9 +11557,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedApps(String nodeId, APIContext context) { + public APIRequestGetOwnedApps(String nodeId, APIContext context) { super(context, nodeId, "/owned_apps", "GET", Arrays.asList(PARAMS)); } @@ -12347,9 +12347,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -12362,9 +12362,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOwnedApp(String nodeId, APIContext context) { + public APIRequestCreateOwnedApp(String nodeId, APIContext context) { super(context, nodeId, "/owned_apps", "POST", Arrays.asList(PARAMS)); } @@ -12461,9 +12461,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -12476,9 +12476,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteOwnedBusinesses(String nodeId, APIContext context) { + public APIRequestDeleteOwnedBusinesses(String nodeId, APIContext context) { super(context, nodeId, "/owned_businesses", "DELETE", Arrays.asList(PARAMS)); } @@ -12589,9 +12589,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -12604,9 +12604,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedBusinesses(String nodeId, APIContext context) { + public APIRequestGetOwnedBusinesses(String nodeId, APIContext context) { super(context, nodeId, "/owned_businesses", "GET", Arrays.asList(PARAMS)); } @@ -12837,9 +12837,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -12852,9 +12852,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOwnedBusiness(String nodeId, APIContext context) { + public APIRequestCreateOwnedBusiness(String nodeId, APIContext context) { super(context, nodeId, "/owned_businesses", "POST", Arrays.asList(PARAMS)); } @@ -13019,9 +13019,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13034,9 +13034,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedInstagramAccounts(String nodeId, APIContext context) { + public APIRequestGetOwnedInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/owned_instagram_accounts", "GET", Arrays.asList(PARAMS)); } @@ -13324,9 +13324,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13339,9 +13339,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedPages(String nodeId, APIContext context) { + public APIRequestGetOwnedPages(String nodeId, APIContext context) { super(context, nodeId, "/owned_pages", "GET", Arrays.asList(PARAMS)); } @@ -14396,9 +14396,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14411,9 +14411,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOwnedPage(String nodeId, APIContext context) { + public APIRequestCreateOwnedPage(String nodeId, APIContext context) { super(context, nodeId, "/owned_pages", "POST", Arrays.asList(PARAMS)); } @@ -14529,9 +14529,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14544,9 +14544,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedPixels(String nodeId, APIContext context) { + public APIRequestGetOwnedPixels(String nodeId, APIContext context) { super(context, nodeId, "/owned_pixels", "GET", Arrays.asList(PARAMS)); } @@ -14749,9 +14749,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14764,9 +14764,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOwnedProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetOwnedProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/owned_product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -14936,9 +14936,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14951,9 +14951,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOwnedProductCatalog(String nodeId, APIContext context) { + public APIRequestCreateOwnedProductCatalog(String nodeId, APIContext context) { super(context, nodeId, "/owned_product_catalogs", "POST", Arrays.asList(PARAMS)); } @@ -15091,9 +15091,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15106,9 +15106,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeletePages(String nodeId, APIContext context) { + public APIRequestDeletePages(String nodeId, APIContext context) { super(context, nodeId, "/pages", "DELETE", Arrays.asList(PARAMS)); } @@ -15206,9 +15206,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15221,9 +15221,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingClientAdAccounts(String nodeId, APIContext context) { + public APIRequestGetPendingClientAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/pending_client_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -15326,9 +15326,9 @@ public APINodeList execute(Map extra public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15341,9 +15341,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingClientApps(String nodeId, APIContext context) { + public APIRequestGetPendingClientApps(String nodeId, APIContext context) { super(context, nodeId, "/pending_client_apps", "GET", Arrays.asList(PARAMS)); } @@ -15446,9 +15446,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15461,9 +15461,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingClientPages(String nodeId, APIContext context) { + public APIRequestGetPendingClientPages(String nodeId, APIContext context) { super(context, nodeId, "/pending_client_pages", "GET", Arrays.asList(PARAMS)); } @@ -15566,9 +15566,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15581,9 +15581,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingOwnedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetPendingOwnedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/pending_owned_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -15686,9 +15686,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15701,9 +15701,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingOwnedPages(String nodeId, APIContext context) { + public APIRequestGetPendingOwnedPages(String nodeId, APIContext context) { super(context, nodeId, "/pending_owned_pages", "GET", Arrays.asList(PARAMS)); } @@ -15811,9 +15811,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15826,9 +15826,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingSharedCreativeFolders(String nodeId, APIContext context) { + public APIRequestGetPendingSharedCreativeFolders(String nodeId, APIContext context) { super(context, nodeId, "/pending_shared_creative_folders", "GET", Arrays.asList(PARAMS)); } @@ -15979,9 +15979,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15994,9 +15994,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPendingUsers(String nodeId, APIContext context) { + public APIRequestGetPendingUsers(String nodeId, APIContext context) { super(context, nodeId, "/pending_users", "GET", Arrays.asList(PARAMS)); } @@ -16199,9 +16199,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16214,9 +16214,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -16404,9 +16404,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16419,9 +16419,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPixelTos(String nodeId, APIContext context) { + public APIRequestGetPixelTos(String nodeId, APIContext context) { super(context, nodeId, "/pixel_tos", "GET", Arrays.asList(PARAMS)); } @@ -16522,9 +16522,9 @@ public BusinessPixelTOS execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -16537,9 +16537,9 @@ public BusinessPixelTOS apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePixelTo(String nodeId, APIContext context) { + public APIRequestCreatePixelTo(String nodeId, APIContext context) { super(context, nodeId, "/pixel_tos", "POST", Arrays.asList(PARAMS)); } @@ -16634,9 +16634,9 @@ public APINodeList execute(Map ex public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16649,9 +16649,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetReceivedAudienceSharingRequests(String nodeId, APIContext context) { + public APIRequestGetReceivedAudienceSharingRequests(String nodeId, APIContext context) { super(context, nodeId, "/received_audience_sharing_requests", "GET", Arrays.asList(PARAMS)); } @@ -16800,9 +16800,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16815,9 +16815,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSystemUsers(String nodeId, APIContext context) { + public APIRequestGetSystemUsers(String nodeId, APIContext context) { super(context, nodeId, "/system_users", "GET", Arrays.asList(PARAMS)); } @@ -16949,9 +16949,9 @@ public SystemUser execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -16964,9 +16964,9 @@ public SystemUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSystemUser(String nodeId, APIContext context) { + public APIRequestCreateSystemUser(String nodeId, APIContext context) { super(context, nodeId, "/system_users", "POST", Arrays.asList(PARAMS)); } @@ -17081,9 +17081,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17096,9 +17096,9 @@ public APINodeList apply(ResponseWrapper res } } ); - }; + } - public APIRequestGetThirdPartyMeasurementReportDataset(String nodeId, APIContext context) { + public APIRequestGetThirdPartyMeasurementReportDataset(String nodeId, APIContext context) { super(context, nodeId, "/third_party_measurement_report_dataset", "GET", Arrays.asList(PARAMS)); } @@ -17228,9 +17228,9 @@ public MeasurementUploadEvent execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -17243,9 +17243,9 @@ public MeasurementUploadEvent apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUploadEvent(String nodeId, APIContext context) { + public APIRequestCreateUploadEvent(String nodeId, APIContext context) { super(context, nodeId, "/upload_event", "POST", Arrays.asList(PARAMS)); } @@ -17465,9 +17465,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -17480,9 +17480,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVideo(String nodeId, APIContext context) { + public APIRequestCreateVideo(String nodeId, APIContext context) { super(context, nodeId, "/videos", "POST", Arrays.asList(PARAMS)); } @@ -18104,9 +18104,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -18119,9 +18119,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -18339,9 +18339,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -18354,9 +18354,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessAdAccountRequest.java b/src/main/java/com/facebook/ads/sdk/BusinessAdAccountRequest.java index 8b873ad2..96c13d6e 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessAdAccountRequest.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessAdAccountRequest.java @@ -80,7 +80,7 @@ public static BusinessAdAccountRequest loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessAdAccountRequest.context = context; businessAdAccountRequest.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessAdAccountRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessAdAccountRequests; + } + return businessAdAccountRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessAdAccountRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/BusinessApplicationRequest.java b/src/main/java/com/facebook/ads/sdk/BusinessApplicationRequest.java index fc5a98a4..e56c99fa 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessApplicationRequest.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessApplicationRequest.java @@ -80,7 +80,7 @@ public static BusinessApplicationRequest loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessApplicationRequest.context = context; businessApplicationRequest.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessApplicationRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessApplicationRequests; + } + return businessApplicationRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessApplicationRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java b/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java index 97883ac3..686205c2 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessAssetGroup.java @@ -139,7 +139,7 @@ public static BusinessAssetGroup loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessAssetGroup.context = context; businessAssetGroup.rawValue = json; @@ -160,8 +160,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessAssetGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessAssetGroups; + } + return businessAssetGroups; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -185,7 +185,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessAssetGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -428,9 +428,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -443,9 +443,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { + public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "DELETE", Arrays.asList(PARAMS)); } @@ -546,9 +546,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -561,9 +561,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedUsers(String nodeId, APIContext context) { + public APIRequestGetAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "GET", Arrays.asList(PARAMS)); } @@ -688,9 +688,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -703,9 +703,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAssignedUser(String nodeId, APIContext context) { + public APIRequestCreateAssignedUser(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "POST", Arrays.asList(PARAMS)); } @@ -838,9 +838,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -853,9 +853,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedAdAccounts(String nodeId, APIContext context) { + public APIRequestDeleteContainedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/contained_adaccounts", "DELETE", Arrays.asList(PARAMS)); } @@ -1007,9 +1007,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1022,9 +1022,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetContainedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/contained_adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -1532,9 +1532,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1547,9 +1547,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedAdAccount(String nodeId, APIContext context) { + public APIRequestCreateContainedAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/contained_adaccounts", "POST", Arrays.asList(PARAMS)); } @@ -1642,9 +1642,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1657,9 +1657,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedApplications(String nodeId, APIContext context) { + public APIRequestDeleteContainedApplications(String nodeId, APIContext context) { super(context, nodeId, "/contained_applications", "DELETE", Arrays.asList(PARAMS)); } @@ -1851,9 +1851,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1866,9 +1866,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedApplications(String nodeId, APIContext context) { + public APIRequestGetContainedApplications(String nodeId, APIContext context) { super(context, nodeId, "/contained_applications", "GET", Arrays.asList(PARAMS)); } @@ -2656,9 +2656,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2671,9 +2671,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedApplication(String nodeId, APIContext context) { + public APIRequestCreateContainedApplication(String nodeId, APIContext context) { super(context, nodeId, "/contained_applications", "POST", Arrays.asList(PARAMS)); } @@ -2766,9 +2766,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2781,9 +2781,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedCustomConversions(String nodeId, APIContext context) { + public APIRequestDeleteContainedCustomConversions(String nodeId, APIContext context) { super(context, nodeId, "/contained_custom_conversions", "DELETE", Arrays.asList(PARAMS)); } @@ -2894,9 +2894,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2909,9 +2909,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedCustomConversions(String nodeId, APIContext context) { + public APIRequestGetContainedCustomConversions(String nodeId, APIContext context) { super(context, nodeId, "/contained_custom_conversions", "GET", Arrays.asList(PARAMS)); } @@ -3132,9 +3132,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3147,9 +3147,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedCustomConversion(String nodeId, APIContext context) { + public APIRequestCreateContainedCustomConversion(String nodeId, APIContext context) { super(context, nodeId, "/contained_custom_conversions", "POST", Arrays.asList(PARAMS)); } @@ -3242,9 +3242,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3257,9 +3257,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedInstagramAccounts(String nodeId, APIContext context) { + public APIRequestDeleteContainedInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/contained_instagram_accounts", "DELETE", Arrays.asList(PARAMS)); } @@ -3360,9 +3360,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3375,9 +3375,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedInstagramAccounts(String nodeId, APIContext context) { + public APIRequestGetContainedInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/contained_instagram_accounts", "GET", Arrays.asList(PARAMS)); } @@ -3528,9 +3528,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3543,9 +3543,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedInstagramAccount(String nodeId, APIContext context) { + public APIRequestCreateContainedInstagramAccount(String nodeId, APIContext context) { super(context, nodeId, "/contained_instagram_accounts", "POST", Arrays.asList(PARAMS)); } @@ -3638,9 +3638,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3653,9 +3653,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedOfflineConversionDataSets(String nodeId, APIContext context) { + public APIRequestDeleteContainedOfflineConversionDataSets(String nodeId, APIContext context) { super(context, nodeId, "/contained_offline_conversion_data_sets", "DELETE", Arrays.asList(PARAMS)); } @@ -3767,9 +3767,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3782,9 +3782,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedOfflineConversionDataSets(String nodeId, APIContext context) { + public APIRequestGetContainedOfflineConversionDataSets(String nodeId, APIContext context) { super(context, nodeId, "/contained_offline_conversion_data_sets", "GET", Arrays.asList(PARAMS)); } @@ -4012,9 +4012,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4027,9 +4027,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedOfflineConversionDataSet(String nodeId, APIContext context) { + public APIRequestCreateContainedOfflineConversionDataSet(String nodeId, APIContext context) { super(context, nodeId, "/contained_offline_conversion_data_sets", "POST", Arrays.asList(PARAMS)); } @@ -4122,9 +4122,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4137,9 +4137,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedPages(String nodeId, APIContext context) { + public APIRequestDeleteContainedPages(String nodeId, APIContext context) { super(context, nodeId, "/contained_pages", "DELETE", Arrays.asList(PARAMS)); } @@ -4369,9 +4369,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4384,9 +4384,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedPages(String nodeId, APIContext context) { + public APIRequestGetContainedPages(String nodeId, APIContext context) { super(context, nodeId, "/contained_pages", "GET", Arrays.asList(PARAMS)); } @@ -5440,9 +5440,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5455,9 +5455,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedPage(String nodeId, APIContext context) { + public APIRequestCreateContainedPage(String nodeId, APIContext context) { super(context, nodeId, "/contained_pages", "POST", Arrays.asList(PARAMS)); } @@ -5550,9 +5550,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5565,9 +5565,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedPixels(String nodeId, APIContext context) { + public APIRequestDeleteContainedPixels(String nodeId, APIContext context) { super(context, nodeId, "/contained_pixels", "DELETE", Arrays.asList(PARAMS)); } @@ -5674,9 +5674,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5689,9 +5689,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedPixels(String nodeId, APIContext context) { + public APIRequestGetContainedPixels(String nodeId, APIContext context) { super(context, nodeId, "/contained_pixels", "GET", Arrays.asList(PARAMS)); } @@ -5884,9 +5884,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5899,9 +5899,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedPixel(String nodeId, APIContext context) { + public APIRequestCreateContainedPixel(String nodeId, APIContext context) { super(context, nodeId, "/contained_pixels", "POST", Arrays.asList(PARAMS)); } @@ -5994,9 +5994,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6009,9 +6009,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteContainedProductCatalogs(String nodeId, APIContext context) { + public APIRequestDeleteContainedProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/contained_product_catalogs", "DELETE", Arrays.asList(PARAMS)); } @@ -6114,9 +6114,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6129,9 +6129,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContainedProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetContainedProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/contained_product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -6296,9 +6296,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6311,9 +6311,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateContainedProductCatalog(String nodeId, APIContext context) { + public APIRequestCreateContainedProductCatalog(String nodeId, APIContext context) { super(context, nodeId, "/contained_product_catalogs", "POST", Arrays.asList(PARAMS)); } @@ -6407,9 +6407,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6422,9 +6422,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -6526,9 +6526,9 @@ public BusinessAssetGroup execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6541,9 +6541,9 @@ public BusinessAssetGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessAssetSharingAgreement.java b/src/main/java/com/facebook/ads/sdk/BusinessAssetSharingAgreement.java index 64cf8ea4..148ee6a6 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessAssetSharingAgreement.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessAssetSharingAgreement.java @@ -147,7 +147,7 @@ public static BusinessAssetSharingAgreement loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessAssetSharingAgreement.context = context; businessAssetSharingAgreement.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessAssetSharingAgreements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessAssetSharingAgreements; + } + return businessAssetSharingAgreements; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessAssetSharingAgreements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -355,9 +355,9 @@ public BusinessAssetSharingAgreement execute(Map extraParams) th public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -370,9 +370,9 @@ public BusinessAssetSharingAgreement apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -502,9 +502,9 @@ public BusinessAssetSharingAgreement execute(Map extraParams) th public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -517,9 +517,9 @@ public BusinessAssetSharingAgreement apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessCreative.java b/src/main/java/com/facebook/ads/sdk/BusinessCreative.java index a90f6cc7..c3f1e12c 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessCreative.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessCreative.java @@ -98,7 +98,7 @@ public static BusinessCreative loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessCreative.context = context; businessCreative.rawValue = json; @@ -119,8 +119,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessCreatives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessCreatives; + } + return businessCreatives; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -144,7 +144,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessCreatives.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -365,9 +365,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -380,9 +380,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdPlacementValidationResults(String nodeId, APIContext context) { + public APIRequestGetAdPlacementValidationResults(String nodeId, APIContext context) { super(context, nodeId, "/ad_placement_validation_results", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessCreativeFolder.java b/src/main/java/com/facebook/ads/sdk/BusinessCreativeFolder.java index e14c0c9a..d9e4c69d 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessCreativeFolder.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessCreativeFolder.java @@ -149,7 +149,7 @@ public static BusinessCreativeFolder loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessCreativeFolder.context = context; businessCreativeFolder.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessCreativeFolders.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessCreativeFolders; + } + return businessCreativeFolders; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessCreativeFolders.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -384,9 +384,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -399,9 +399,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAgencies(String nodeId, APIContext context) { + public APIRequestDeleteAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "DELETE", Arrays.asList(PARAMS)); } @@ -511,9 +511,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -526,9 +526,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -743,9 +743,9 @@ public BusinessCreativeFolder execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -758,9 +758,9 @@ public BusinessCreativeFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAgency(String nodeId, APIContext context) { + public APIRequestCreateAgency(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "POST", Arrays.asList(PARAMS)); } @@ -866,9 +866,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -881,9 +881,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedUsers(String nodeId, APIContext context) { + public APIRequestGetAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "GET", Arrays.asList(PARAMS)); } @@ -1005,9 +1005,9 @@ public BusinessCreativeFolder execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1020,9 +1020,9 @@ public BusinessCreativeFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAssignedUser(String nodeId, APIContext context) { + public APIRequestCreateAssignedUser(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "POST", Arrays.asList(PARAMS)); } @@ -1134,9 +1134,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1149,9 +1149,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSubFolders(String nodeId, APIContext context) { + public APIRequestGetSubFolders(String nodeId, APIContext context) { super(context, nodeId, "/subfolders", "GET", Arrays.asList(PARAMS)); } @@ -1287,9 +1287,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1302,9 +1302,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1398,9 +1398,9 @@ public BusinessCreativeFolder execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1413,9 +1413,9 @@ public BusinessCreativeFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1554,9 +1554,9 @@ public BusinessCreativeFolder execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1569,9 +1569,9 @@ public BusinessCreativeFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessImage.java b/src/main/java/com/facebook/ads/sdk/BusinessImage.java index 40cfc41a..2437b6fc 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessImage.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessImage.java @@ -153,7 +153,7 @@ public static BusinessImage loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessImage.context = context; businessImage.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessImages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessImages; + } + return businessImages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessImages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -372,9 +372,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -387,9 +387,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdPlacementValidationResults(String nodeId, APIContext context) { + public APIRequestGetAdPlacementValidationResults(String nodeId, APIContext context) { super(context, nodeId, "/ad_placement_validation_results", "GET", Arrays.asList(PARAMS)); } @@ -478,9 +478,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -493,9 +493,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -600,9 +600,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -615,9 +615,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -713,9 +713,9 @@ public BusinessImage execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -728,9 +728,9 @@ public BusinessImage apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessOwnedObjectOnBehalfOfRequest.java b/src/main/java/com/facebook/ads/sdk/BusinessOwnedObjectOnBehalfOfRequest.java index 9c97eb27..553c6f12 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessOwnedObjectOnBehalfOfRequest.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessOwnedObjectOnBehalfOfRequest.java @@ -145,7 +145,7 @@ public static BusinessOwnedObjectOnBehalfOfRequest loadJSON(String json, APICont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessOwnedObjectOnBehalfOfRequest.context = context; businessOwnedObjectOnBehalfOfRequest.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(St arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessOwnedObjectOnBehalfOfRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessOwnedObjectOnBehalfOfRequests; + } + return businessOwnedObjectOnBehalfOfRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(St arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessOwnedObjectOnBehalfOfRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -343,9 +343,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -358,9 +358,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -452,9 +452,9 @@ public BusinessOwnedObjectOnBehalfOfRequest execute(Map extraPar public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -467,9 +467,9 @@ public BusinessOwnedObjectOnBehalfOfRequest apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessPageRequest.java b/src/main/java/com/facebook/ads/sdk/BusinessPageRequest.java index 0240740f..5f8b16d0 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessPageRequest.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessPageRequest.java @@ -80,7 +80,7 @@ public static BusinessPageRequest loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessPageRequest.context = context; businessPageRequest.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessPageRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessPageRequests; + } + return businessPageRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessPageRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/BusinessPixelTOS.java b/src/main/java/com/facebook/ads/sdk/BusinessPixelTOS.java index e917ee16..b3603d81 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessPixelTOS.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessPixelTOS.java @@ -139,7 +139,7 @@ public static BusinessPixelTOS loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessPixelTOS.context = context; businessPixelTOS.rawValue = json; @@ -160,8 +160,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessPixelTOSs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessPixelTOSs; + } + return businessPixelTOSs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -185,7 +185,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessPixelTOSs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -317,9 +317,9 @@ public BusinessPixelTOS execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -332,9 +332,9 @@ public BusinessPixelTOS apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessRoleRequest.java b/src/main/java/com/facebook/ads/sdk/BusinessRoleRequest.java index c2d83388..a3cd2552 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessRoleRequest.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessRoleRequest.java @@ -163,7 +163,7 @@ public static BusinessRoleRequest loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessRoleRequest.context = context; businessRoleRequest.rawValue = json; @@ -184,8 +184,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessRoleRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessRoleRequests; + } + return businessRoleRequests; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -209,7 +209,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessRoleRequests.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -398,9 +398,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -413,9 +413,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -516,9 +516,9 @@ public BusinessRoleRequest execute(Map extraParams) throws APIEx public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -531,9 +531,9 @@ public BusinessRoleRequest apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -719,9 +719,9 @@ public BusinessRoleRequest execute(Map extraParams) throws APIEx public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -734,9 +734,9 @@ public BusinessRoleRequest apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessUnit.java b/src/main/java/com/facebook/ads/sdk/BusinessUnit.java index 801f842c..8994909e 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessUnit.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessUnit.java @@ -153,7 +153,7 @@ public static BusinessUnit loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessUnit.context = context; businessUnit.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessUnits.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessUnits; + } + return businessUnits; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessUnits.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -472,9 +472,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -487,9 +487,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -999,9 +999,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1014,9 +1014,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdPlatforms(String nodeId, APIContext context) { + public APIRequestGetAdPlatforms(String nodeId, APIContext context) { super(context, nodeId, "/ad_platforms", "GET", Arrays.asList(PARAMS)); } @@ -1122,9 +1122,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1137,9 +1137,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAtlasSalesAccesses(String nodeId, APIContext context) { + public APIRequestGetAtlasSalesAccesses(String nodeId, APIContext context) { super(context, nodeId, "/atlas_sales_accesses", "GET", Arrays.asList(PARAMS)); } @@ -1228,9 +1228,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1243,9 +1243,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAtlasSalesAccess(String nodeId, APIContext context) { + public APIRequestCreateAtlasSalesAccess(String nodeId, APIContext context) { super(context, nodeId, "/atlas_sales_accesses", "POST", Arrays.asList(PARAMS)); } @@ -1443,9 +1443,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1458,9 +1458,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCampaigns(String nodeId, APIContext context) { + public APIRequestGetCampaigns(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "GET", Arrays.asList(PARAMS)); } @@ -2255,9 +2255,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2270,9 +2270,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetConversionEvents(String nodeId, APIContext context) { + public APIRequestGetConversionEvents(String nodeId, APIContext context) { super(context, nodeId, "/conversion_events", "GET", Arrays.asList(PARAMS)); } @@ -2385,9 +2385,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2400,9 +2400,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetConversionPaths(String nodeId, APIContext context) { + public APIRequestGetConversionPaths(String nodeId, APIContext context) { super(context, nodeId, "/conversion_paths", "GET", Arrays.asList(PARAMS)); } @@ -2554,9 +2554,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2569,9 +2569,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomBreakdowns(String nodeId, APIContext context) { + public APIRequestGetCustomBreakdowns(String nodeId, APIContext context) { super(context, nodeId, "/custom_breakdowns", "GET", Arrays.asList(PARAMS)); } @@ -2670,9 +2670,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2685,9 +2685,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDiagnostics(String nodeId, APIContext context) { + public APIRequestGetDiagnostics(String nodeId, APIContext context) { super(context, nodeId, "/diagnostics", "GET", Arrays.asList(PARAMS)); } @@ -2786,9 +2786,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2801,9 +2801,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetExternalImportFile(String nodeId, APIContext context) { + public APIRequestGetExternalImportFile(String nodeId, APIContext context) { super(context, nodeId, "/external_import_file", "GET", Arrays.asList(PARAMS)); } @@ -2903,9 +2903,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2918,9 +2918,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReports(String nodeId, APIContext context) { + public APIRequestGetReports(String nodeId, APIContext context) { super(context, nodeId, "/reports", "GET", Arrays.asList(PARAMS)); } @@ -3029,9 +3029,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3044,9 +3044,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSources(String nodeId, APIContext context) { + public APIRequestGetSources(String nodeId, APIContext context) { super(context, nodeId, "/sources", "GET", Arrays.asList(PARAMS)); } @@ -3165,9 +3165,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3180,9 +3180,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUsers(String nodeId, APIContext context) { + public APIRequestGetUsers(String nodeId, APIContext context) { super(context, nodeId, "/users", "GET", Arrays.asList(PARAMS)); } @@ -3369,9 +3369,9 @@ public BusinessUnit execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3384,9 +3384,9 @@ public BusinessUnit apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/BusinessUser.java b/src/main/java/com/facebook/ads/sdk/BusinessUser.java index 37adb149..14d941b6 100644 --- a/src/main/java/com/facebook/ads/sdk/BusinessUser.java +++ b/src/main/java/com/facebook/ads/sdk/BusinessUser.java @@ -161,7 +161,7 @@ public static BusinessUser loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } businessUser.context = context; businessUser.rawValue = json; @@ -182,8 +182,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return businessUsers; + } + return businessUsers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -207,7 +207,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { businessUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -468,9 +468,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -483,9 +483,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/assigned_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -995,9 +995,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1010,9 +1010,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) { + public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) { super(context, nodeId, "/assigned_business_asset_groups", "GET", Arrays.asList(PARAMS)); } @@ -1256,9 +1256,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1271,9 +1271,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedPages(String nodeId, APIContext context) { + public APIRequestGetAssignedPages(String nodeId, APIContext context) { super(context, nodeId, "/assigned_pages", "GET", Arrays.asList(PARAMS)); } @@ -2337,9 +2337,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2352,9 +2352,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetAssignedProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/assigned_product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -2518,9 +2518,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2533,9 +2533,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -2635,9 +2635,9 @@ public BusinessUser execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2650,9 +2650,9 @@ public BusinessUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -2837,9 +2837,9 @@ public BusinessUser execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2852,9 +2852,9 @@ public BusinessUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/CPASParentCatalogSettings.java b/src/main/java/com/facebook/ads/sdk/CPASParentCatalogSettings.java index 2f9dac50..86c03509 100644 --- a/src/main/java/com/facebook/ads/sdk/CPASParentCatalogSettings.java +++ b/src/main/java/com/facebook/ads/sdk/CPASParentCatalogSettings.java @@ -141,7 +141,7 @@ public static CPASParentCatalogSettings loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } cpasParentCatalogSettings.context = context; cpasParentCatalogSettings.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { cpasParentCatalogSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return cpasParentCatalogSettingss; + } + return cpasParentCatalogSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { cpasParentCatalogSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -328,9 +328,9 @@ public CPASParentCatalogSettings execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -343,9 +343,9 @@ public CPASParentCatalogSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -454,9 +454,9 @@ public CPASParentCatalogSettings execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -469,9 +469,9 @@ public CPASParentCatalogSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Campaign.java b/src/main/java/com/facebook/ads/sdk/Campaign.java index 75a73a00..3b355a42 100644 --- a/src/main/java/com/facebook/ads/sdk/Campaign.java +++ b/src/main/java/com/facebook/ads/sdk/Campaign.java @@ -199,7 +199,7 @@ public static Campaign loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } campaign.context = context; campaign.rawValue = json; @@ -220,8 +220,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { campaigns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return campaigns; + } + return campaigns; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -245,7 +245,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { campaigns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -561,9 +561,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -576,9 +576,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdStudies(String nodeId, APIContext context) { + public APIRequestGetAdStudies(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "GET", Arrays.asList(PARAMS)); } @@ -772,9 +772,9 @@ public Campaign execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -787,9 +787,9 @@ public Campaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdLabel(String nodeId, APIContext context) { + public APIRequestCreateAdLabel(String nodeId, APIContext context) { super(context, nodeId, "/adlabels", "POST", Arrays.asList(PARAMS)); } @@ -905,9 +905,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -920,9 +920,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdRulesGoverned(String nodeId, APIContext context) { + public APIRequestGetAdRulesGoverned(String nodeId, APIContext context) { super(context, nodeId, "/adrules_governed", "GET", Arrays.asList(PARAMS)); } @@ -1128,9 +1128,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1143,9 +1143,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAds(String nodeId, APIContext context) { + public APIRequestGetAds(String nodeId, APIContext context) { super(context, nodeId, "/ads", "GET", Arrays.asList(PARAMS)); } @@ -1577,9 +1577,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1592,9 +1592,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdSets(String nodeId, APIContext context) { + public APIRequestGetAdSets(String nodeId, APIContext context) { super(context, nodeId, "/adsets", "GET", Arrays.asList(PARAMS)); } @@ -2098,9 +2098,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2113,9 +2113,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { + public APIRequestGetContentDeliveryReport(String nodeId, APIContext context) { super(context, nodeId, "/content_delivery_report", "GET", Arrays.asList(PARAMS)); } @@ -2310,9 +2310,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2325,9 +2325,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCopies(String nodeId, APIContext context) { + public APIRequestGetCopies(String nodeId, APIContext context) { super(context, nodeId, "/copies", "GET", Arrays.asList(PARAMS)); } @@ -2679,9 +2679,9 @@ public Campaign execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2694,9 +2694,9 @@ public Campaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCopy(String nodeId, APIContext context) { + public APIRequestCreateCopy(String nodeId, APIContext context) { super(context, nodeId, "/copies", "POST", Arrays.asList(PARAMS)); } @@ -2840,9 +2840,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2855,9 +2855,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -3132,9 +3132,9 @@ public AdReportRun execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3147,9 +3147,9 @@ public AdReportRun apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsightsAsync(String nodeId, APIContext context) { + public APIRequestGetInsightsAsync(String nodeId, APIContext context) { super(context, nodeId, "/insights", "POST", Arrays.asList(PARAMS)); } @@ -3404,9 +3404,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3419,9 +3419,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -3544,9 +3544,9 @@ public Campaign execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3559,9 +3559,9 @@ public Campaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -3925,9 +3925,9 @@ public Campaign execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3940,9 +3940,9 @@ public Campaign apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/CampaignGroupBrandConfiguration.java b/src/main/java/com/facebook/ads/sdk/CampaignGroupBrandConfiguration.java index 9b7c4874..79b2acc8 100644 --- a/src/main/java/com/facebook/ads/sdk/CampaignGroupBrandConfiguration.java +++ b/src/main/java/com/facebook/ads/sdk/CampaignGroupBrandConfiguration.java @@ -82,7 +82,7 @@ public static CampaignGroupBrandConfiguration loadJSON(String json, APIContext c context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } campaignGroupBrandConfiguration.context = context; campaignGroupBrandConfiguration.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { campaignGroupBrandConfigurations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return campaignGroupBrandConfigurations; + } + return campaignGroupBrandConfigurations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { campaignGroupBrandConfigurations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CampaignGroupCollaborativeAdsPartnerInfo.java b/src/main/java/com/facebook/ads/sdk/CampaignGroupCollaborativeAdsPartnerInfo.java index 8475dc19..5669b4e8 100644 --- a/src/main/java/com/facebook/ads/sdk/CampaignGroupCollaborativeAdsPartnerInfo.java +++ b/src/main/java/com/facebook/ads/sdk/CampaignGroupCollaborativeAdsPartnerInfo.java @@ -76,7 +76,7 @@ public static CampaignGroupCollaborativeAdsPartnerInfo loadJSON(String json, API context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } campaignGroupCollaborativeAdsPartnerInfo.context = context; campaignGroupCollaborativeAdsPartnerInfo.rawValue = json; @@ -97,8 +97,8 @@ public static APINodeList parseRespons arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { campaignGroupCollaborativeAdsPartnerInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return campaignGroupCollaborativeAdsPartnerInfos; + } + return campaignGroupCollaborativeAdsPartnerInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -122,7 +122,7 @@ public static APINodeList parseRespons arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { campaignGroupCollaborativeAdsPartnerInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Canvas.java b/src/main/java/com/facebook/ads/sdk/Canvas.java index 8357f8c2..444c8d0d 100644 --- a/src/main/java/com/facebook/ads/sdk/Canvas.java +++ b/src/main/java/com/facebook/ads/sdk/Canvas.java @@ -155,7 +155,7 @@ public static Canvas loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } canvas.context = context; canvas.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvass.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return canvass; + } + return canvass; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvass.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -385,9 +385,9 @@ public Canvas execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -400,9 +400,9 @@ public Canvas apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateDuplicateCanva(String nodeId, APIContext context) { + public APIRequestCreateDuplicateCanva(String nodeId, APIContext context) { super(context, nodeId, "/duplicate_canvas", "POST", Arrays.asList(PARAMS)); } @@ -490,9 +490,9 @@ public Canvas execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -505,9 +505,9 @@ public Canvas apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePreviewNotification(String nodeId, APIContext context) { + public APIRequestCreatePreviewNotification(String nodeId, APIContext context) { super(context, nodeId, "/preview_notifications", "POST", Arrays.asList(PARAMS)); } @@ -603,9 +603,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -618,9 +618,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -717,9 +717,9 @@ public Canvas execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -732,9 +732,9 @@ public Canvas apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -897,9 +897,9 @@ public Canvas execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -912,9 +912,9 @@ public Canvas apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/CanvasAdSettings.java b/src/main/java/com/facebook/ads/sdk/CanvasAdSettings.java index 7c04aed3..70306258 100644 --- a/src/main/java/com/facebook/ads/sdk/CanvasAdSettings.java +++ b/src/main/java/com/facebook/ads/sdk/CanvasAdSettings.java @@ -90,7 +90,7 @@ public static CanvasAdSettings loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } canvasAdSettings.context = context; canvasAdSettings.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvasAdSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return canvasAdSettingss; + } + return canvasAdSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvasAdSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CanvasBodyElement.java b/src/main/java/com/facebook/ads/sdk/CanvasBodyElement.java index 372c95a3..f646e16b 100644 --- a/src/main/java/com/facebook/ads/sdk/CanvasBodyElement.java +++ b/src/main/java/com/facebook/ads/sdk/CanvasBodyElement.java @@ -78,7 +78,7 @@ public static CanvasBodyElement loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } canvasBodyElement.context = context; canvasBodyElement.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvasBodyElements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return canvasBodyElements; + } + return canvasBodyElements; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvasBodyElements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CanvasCollectionThumbnail.java b/src/main/java/com/facebook/ads/sdk/CanvasCollectionThumbnail.java index 3ecc3cfe..0cabc2dd 100644 --- a/src/main/java/com/facebook/ads/sdk/CanvasCollectionThumbnail.java +++ b/src/main/java/com/facebook/ads/sdk/CanvasCollectionThumbnail.java @@ -82,7 +82,7 @@ public static CanvasCollectionThumbnail loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } canvasCollectionThumbnail.context = context; canvasCollectionThumbnail.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvasCollectionThumbnails.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return canvasCollectionThumbnails; + } + return canvasCollectionThumbnails; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { canvasCollectionThumbnails.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CatalogBasedTargeting.java b/src/main/java/com/facebook/ads/sdk/CatalogBasedTargeting.java index 03acda99..acff5d2e 100644 --- a/src/main/java/com/facebook/ads/sdk/CatalogBasedTargeting.java +++ b/src/main/java/com/facebook/ads/sdk/CatalogBasedTargeting.java @@ -78,7 +78,7 @@ public static CatalogBasedTargeting loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } catalogBasedTargeting.context = context; catalogBasedTargeting.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { catalogBasedTargetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return catalogBasedTargetings; + } + return catalogBasedTargetings; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { catalogBasedTargetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CheckBatchRequestStatus.java b/src/main/java/com/facebook/ads/sdk/CheckBatchRequestStatus.java index 9fc313a7..aba8bee8 100644 --- a/src/main/java/com/facebook/ads/sdk/CheckBatchRequestStatus.java +++ b/src/main/java/com/facebook/ads/sdk/CheckBatchRequestStatus.java @@ -90,7 +90,7 @@ public static CheckBatchRequestStatus loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } checkBatchRequestStatus.context = context; checkBatchRequestStatus.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { checkBatchRequestStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return checkBatchRequestStatuss; + } + return checkBatchRequestStatuss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { checkBatchRequestStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ChildEvent.java b/src/main/java/com/facebook/ads/sdk/ChildEvent.java index 52333324..d74f79de 100644 --- a/src/main/java/com/facebook/ads/sdk/ChildEvent.java +++ b/src/main/java/com/facebook/ads/sdk/ChildEvent.java @@ -84,7 +84,7 @@ public static ChildEvent loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } childEvent.context = context; childEvent.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { childEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return childEvents; + } + return childEvents; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { childEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ClientTransparencyStatus.java b/src/main/java/com/facebook/ads/sdk/ClientTransparencyStatus.java index 1da0ddc8..f2c75826 100644 --- a/src/main/java/com/facebook/ads/sdk/ClientTransparencyStatus.java +++ b/src/main/java/com/facebook/ads/sdk/ClientTransparencyStatus.java @@ -84,7 +84,7 @@ public static ClientTransparencyStatus loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } clientTransparencyStatus.context = context; clientTransparencyStatus.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { clientTransparencyStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return clientTransparencyStatuss; + } + return clientTransparencyStatuss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { clientTransparencyStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CollaborativeAdsPartnerInfoListItem.java b/src/main/java/com/facebook/ads/sdk/CollaborativeAdsPartnerInfoListItem.java index b5624c51..85151c45 100644 --- a/src/main/java/com/facebook/ads/sdk/CollaborativeAdsPartnerInfoListItem.java +++ b/src/main/java/com/facebook/ads/sdk/CollaborativeAdsPartnerInfoListItem.java @@ -76,7 +76,7 @@ public static CollaborativeAdsPartnerInfoListItem loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } collaborativeAdsPartnerInfoListItem.context = context; collaborativeAdsPartnerInfoListItem.rawValue = json; @@ -97,8 +97,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { collaborativeAdsPartnerInfoListItems.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return collaborativeAdsPartnerInfoListItems; + } + return collaborativeAdsPartnerInfoListItems; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -122,7 +122,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { collaborativeAdsPartnerInfoListItems.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CollaborativeAdsShareSettings.java b/src/main/java/com/facebook/ads/sdk/CollaborativeAdsShareSettings.java index 746e0bf0..e7df5f7f 100644 --- a/src/main/java/com/facebook/ads/sdk/CollaborativeAdsShareSettings.java +++ b/src/main/java/com/facebook/ads/sdk/CollaborativeAdsShareSettings.java @@ -147,7 +147,7 @@ public static CollaborativeAdsShareSettings loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } collaborativeAdsShareSettings.context = context; collaborativeAdsShareSettings.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { collaborativeAdsShareSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return collaborativeAdsShareSettingss; + } + return collaborativeAdsShareSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { collaborativeAdsShareSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -352,9 +352,9 @@ public CollaborativeAdsShareSettings execute(Map extraParams) th public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -367,9 +367,9 @@ public CollaborativeAdsShareSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -501,9 +501,9 @@ public CollaborativeAdsShareSettings execute(Map extraParams) th public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -516,9 +516,9 @@ public CollaborativeAdsShareSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Comment.java b/src/main/java/com/facebook/ads/sdk/Comment.java index 8e6cf0e7..e0dc09c3 100644 --- a/src/main/java/com/facebook/ads/sdk/Comment.java +++ b/src/main/java/com/facebook/ads/sdk/Comment.java @@ -181,7 +181,7 @@ public static Comment loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } comment.context = context; comment.rawValue = json; @@ -202,8 +202,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { comments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return comments; + } + return comments; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -227,7 +227,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { comments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -505,9 +505,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -520,9 +520,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -815,9 +815,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -830,9 +830,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -1003,9 +1003,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1018,9 +1018,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteLikes(String nodeId, APIContext context) { + public APIRequestDeleteLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "DELETE", Arrays.asList(PARAMS)); } @@ -1125,9 +1125,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1140,9 +1140,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLike(String nodeId, APIContext context) { + public APIRequestCreateLike(String nodeId, APIContext context) { super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS)); } @@ -1256,9 +1256,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1271,9 +1271,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReactions(String nodeId, APIContext context) { + public APIRequestGetReactions(String nodeId, APIContext context) { super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS)); } @@ -1446,9 +1446,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1461,9 +1461,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1573,9 +1573,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1588,9 +1588,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1843,9 +1843,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1858,9 +1858,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/CommerceSettings.java b/src/main/java/com/facebook/ads/sdk/CommerceSettings.java index f2f7153a..5b303b7d 100644 --- a/src/main/java/com/facebook/ads/sdk/CommerceSettings.java +++ b/src/main/java/com/facebook/ads/sdk/CommerceSettings.java @@ -80,7 +80,7 @@ public static CommerceSettings loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } commerceSettings.context = context; commerceSettings.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { commerceSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return commerceSettingss; + } + return commerceSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { commerceSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ContentDeliveryReport.java b/src/main/java/com/facebook/ads/sdk/ContentDeliveryReport.java index 1581f197..df779632 100644 --- a/src/main/java/com/facebook/ads/sdk/ContentDeliveryReport.java +++ b/src/main/java/com/facebook/ads/sdk/ContentDeliveryReport.java @@ -86,7 +86,7 @@ public static ContentDeliveryReport loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } contentDeliveryReport.context = context; contentDeliveryReport.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { contentDeliveryReports.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return contentDeliveryReports; + } + return contentDeliveryReports; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { contentDeliveryReports.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ConversionActionQuery.java b/src/main/java/com/facebook/ads/sdk/ConversionActionQuery.java index a6490d2e..590c241b 100644 --- a/src/main/java/com/facebook/ads/sdk/ConversionActionQuery.java +++ b/src/main/java/com/facebook/ads/sdk/ConversionActionQuery.java @@ -128,7 +128,7 @@ public static ConversionActionQuery loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } conversionActionQuery.context = context; conversionActionQuery.rawValue = json; @@ -149,8 +149,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { conversionActionQuerys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return conversionActionQuerys; + } + return conversionActionQuerys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -174,7 +174,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { conversionActionQuerys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CopyrightReferenceContainer.java b/src/main/java/com/facebook/ads/sdk/CopyrightReferenceContainer.java index e8f87855..8ba5f26b 100644 --- a/src/main/java/com/facebook/ads/sdk/CopyrightReferenceContainer.java +++ b/src/main/java/com/facebook/ads/sdk/CopyrightReferenceContainer.java @@ -102,7 +102,7 @@ public static CopyrightReferenceContainer loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } copyrightReferenceContainer.context = context; copyrightReferenceContainer.rawValue = json; @@ -123,8 +123,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { copyrightReferenceContainers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return copyrightReferenceContainers; + } + return copyrightReferenceContainers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -148,7 +148,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { copyrightReferenceContainers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CoverPhoto.java b/src/main/java/com/facebook/ads/sdk/CoverPhoto.java index ddf4dcf6..7acc5028 100644 --- a/src/main/java/com/facebook/ads/sdk/CoverPhoto.java +++ b/src/main/java/com/facebook/ads/sdk/CoverPhoto.java @@ -86,7 +86,7 @@ public static CoverPhoto loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } coverPhoto.context = context; coverPhoto.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { coverPhotos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return coverPhotos; + } + return coverPhotos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { coverPhotos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CreativeHistory.java b/src/main/java/com/facebook/ads/sdk/CreativeHistory.java index 7bf8790c..dd2fa3e5 100644 --- a/src/main/java/com/facebook/ads/sdk/CreativeHistory.java +++ b/src/main/java/com/facebook/ads/sdk/CreativeHistory.java @@ -80,7 +80,7 @@ public static CreativeHistory loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } creativeHistory.context = context; creativeHistory.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { creativeHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return creativeHistorys; + } + return creativeHistorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { creativeHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CreditPartitionActionOptions.java b/src/main/java/com/facebook/ads/sdk/CreditPartitionActionOptions.java index 9d911a21..ecea79bc 100644 --- a/src/main/java/com/facebook/ads/sdk/CreditPartitionActionOptions.java +++ b/src/main/java/com/facebook/ads/sdk/CreditPartitionActionOptions.java @@ -82,7 +82,7 @@ public static CreditPartitionActionOptions loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } creditPartitionActionOptions.context = context; creditPartitionActionOptions.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { creditPartitionActionOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return creditPartitionActionOptionss; + } + return creditPartitionActionOptionss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { creditPartitionActionOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Currency.java b/src/main/java/com/facebook/ads/sdk/Currency.java index b74d2b55..79b9629e 100644 --- a/src/main/java/com/facebook/ads/sdk/Currency.java +++ b/src/main/java/com/facebook/ads/sdk/Currency.java @@ -84,7 +84,7 @@ public static Currency loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } currency.context = context; currency.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { currencys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return currencys; + } + return currencys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { currencys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CurrencyAmount.java b/src/main/java/com/facebook/ads/sdk/CurrencyAmount.java index 5e57c4a9..5f66c451 100644 --- a/src/main/java/com/facebook/ads/sdk/CurrencyAmount.java +++ b/src/main/java/com/facebook/ads/sdk/CurrencyAmount.java @@ -84,7 +84,7 @@ public static CurrencyAmount loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } currencyAmount.context = context; currencyAmount.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { currencyAmounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return currencyAmounts; + } + return currencyAmounts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { currencyAmounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudience.java b/src/main/java/com/facebook/ads/sdk/CustomAudience.java index 1032ff9b..47bc8985 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudience.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudience.java @@ -205,7 +205,7 @@ public static CustomAudience loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudience.context = context; customAudience.rawValue = json; @@ -226,8 +226,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudiences; + } + return customAudiences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -251,7 +251,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -561,9 +561,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -576,9 +576,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdAccounts(String nodeId, APIContext context) { + public APIRequestDeleteAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "DELETE", Arrays.asList(PARAMS)); } @@ -735,9 +735,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -750,9 +750,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -1268,9 +1268,9 @@ public CustomAudience execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1283,9 +1283,9 @@ public CustomAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdAccount(String nodeId, APIContext context) { + public APIRequestCreateAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "POST", Arrays.asList(PARAMS)); } @@ -1440,9 +1440,9 @@ public APINodeList execute(Map extraParams) throws APIExcept public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1455,9 +1455,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAds(String nodeId, APIContext context) { + public APIRequestGetAds(String nodeId, APIContext context) { super(context, nodeId, "/ads", "GET", Arrays.asList(PARAMS)); } @@ -1803,9 +1803,9 @@ public APINodeList execute(Map extra public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1818,9 +1818,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPrefills(String nodeId, APIContext context) { + public APIRequestGetPrefills(String nodeId, APIContext context) { super(context, nodeId, "/prefills", "GET", Arrays.asList(PARAMS)); } @@ -1937,9 +1937,9 @@ public APINodeList execute(Map extraParam public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1952,9 +1952,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSessions(String nodeId, APIContext context) { + public APIRequestGetSessions(String nodeId, APIContext context) { super(context, nodeId, "/sessions", "GET", Arrays.asList(PARAMS)); } @@ -2111,9 +2111,9 @@ public APINodeList execute(Map public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2126,9 +2126,9 @@ public APINodeList apply(ResponseWrapper result } } ); - }; + } - public APIRequestGetSharedAccountInfo(String nodeId, APIContext context) { + public APIRequestGetSharedAccountInfo(String nodeId, APIContext context) { super(context, nodeId, "/shared_account_info", "GET", Arrays.asList(PARAMS)); } @@ -2253,9 +2253,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2268,9 +2268,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteUsers(String nodeId, APIContext context) { + public APIRequestDeleteUsers(String nodeId, APIContext context) { super(context, nodeId, "/users", "DELETE", Arrays.asList(PARAMS)); } @@ -2383,9 +2383,9 @@ public CustomAudience execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2398,9 +2398,9 @@ public CustomAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUser(String nodeId, APIContext context) { + public APIRequestCreateUser(String nodeId, APIContext context) { super(context, nodeId, "/users", "POST", Arrays.asList(PARAMS)); } @@ -2510,9 +2510,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2525,9 +2525,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -2651,9 +2651,9 @@ public CustomAudience execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2666,9 +2666,9 @@ public CustomAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -3049,9 +3049,9 @@ public CustomAudience execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3064,9 +3064,9 @@ public CustomAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudienceAdAccount.java b/src/main/java/com/facebook/ads/sdk/CustomAudienceAdAccount.java index 644ef57e..6e299a8e 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudienceAdAccount.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudienceAdAccount.java @@ -78,7 +78,7 @@ public static CustomAudienceAdAccount loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudienceAdAccount.context = context; customAudienceAdAccount.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceAdAccounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudienceAdAccounts; + } + return customAudienceAdAccounts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceAdAccounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudienceDataSource.java b/src/main/java/com/facebook/ads/sdk/CustomAudienceDataSource.java index 32fbeeac..1cf5ff7b 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudienceDataSource.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudienceDataSource.java @@ -82,7 +82,7 @@ public static CustomAudienceDataSource loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudienceDataSource.context = context; customAudienceDataSource.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceDataSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudienceDataSources; + } + return customAudienceDataSources; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceDataSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudiencePrefillState.java b/src/main/java/com/facebook/ads/sdk/CustomAudiencePrefillState.java index ee1f4b89..721e7e3e 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudiencePrefillState.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudiencePrefillState.java @@ -82,7 +82,7 @@ public static CustomAudiencePrefillState loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudiencePrefillState.context = context; customAudiencePrefillState.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiencePrefillStates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudiencePrefillStates; + } + return customAudiencePrefillStates; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiencePrefillStates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudienceSession.java b/src/main/java/com/facebook/ads/sdk/CustomAudienceSession.java index 8dc51597..55eca842 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudienceSession.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudienceSession.java @@ -92,7 +92,7 @@ public static CustomAudienceSession loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudienceSession.context = context; customAudienceSession.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceSessions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudienceSessions; + } + return customAudienceSessions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceSessions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudienceSharingStatus.java b/src/main/java/com/facebook/ads/sdk/CustomAudienceSharingStatus.java index 484e32d1..65108a45 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudienceSharingStatus.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudienceSharingStatus.java @@ -80,7 +80,7 @@ public static CustomAudienceSharingStatus loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudienceSharingStatus.context = context; customAudienceSharingStatus.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceSharingStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudienceSharingStatuss; + } + return customAudienceSharingStatuss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceSharingStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudienceStatus.java b/src/main/java/com/facebook/ads/sdk/CustomAudienceStatus.java index 1c3e103f..156ef9b0 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudienceStatus.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudienceStatus.java @@ -80,7 +80,7 @@ public static CustomAudienceStatus loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudienceStatus.context = context; customAudienceStatus.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudienceStatuss; + } + return customAudienceStatuss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudienceStatuss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudiencesTOS.java b/src/main/java/com/facebook/ads/sdk/CustomAudiencesTOS.java index f2c62cb4..73669640 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudiencesTOS.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudiencesTOS.java @@ -82,7 +82,7 @@ public static CustomAudiencesTOS loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudiencesTOS.context = context; customAudiencesTOS.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiencesTOSs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudiencesTOSs; + } + return customAudiencesTOSs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiencesTOSs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomAudiencesharedAccountInfo.java b/src/main/java/com/facebook/ads/sdk/CustomAudiencesharedAccountInfo.java index 005375f5..34a10c4b 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomAudiencesharedAccountInfo.java +++ b/src/main/java/com/facebook/ads/sdk/CustomAudiencesharedAccountInfo.java @@ -86,7 +86,7 @@ public static CustomAudiencesharedAccountInfo loadJSON(String json, APIContext c context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customAudiencesharedAccountInfo.context = context; customAudiencesharedAccountInfo.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiencesharedAccountInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customAudiencesharedAccountInfos; + } + return customAudiencesharedAccountInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customAudiencesharedAccountInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomConversion.java b/src/main/java/com/facebook/ads/sdk/CustomConversion.java index c5689ec5..e3a152ba 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomConversion.java +++ b/src/main/java/com/facebook/ads/sdk/CustomConversion.java @@ -173,7 +173,7 @@ public static CustomConversion loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customConversion.context = context; customConversion.rawValue = json; @@ -194,8 +194,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customConversions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customConversions; + } + return customConversions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -219,7 +219,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customConversions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -444,9 +444,9 @@ public APINodeList execute(Map extr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -459,9 +459,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetStats(String nodeId, APIContext context) { + public APIRequestGetStats(String nodeId, APIContext context) { super(context, nodeId, "/stats", "GET", Arrays.asList(PARAMS)); } @@ -588,9 +588,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -603,9 +603,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -711,9 +711,9 @@ public CustomConversion execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -726,9 +726,9 @@ public CustomConversion apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -951,9 +951,9 @@ public CustomConversion execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -966,9 +966,9 @@ public CustomConversion apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/CustomConversionStatsResult.java b/src/main/java/com/facebook/ads/sdk/CustomConversionStatsResult.java index 65502258..4fa4dc8b 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomConversionStatsResult.java +++ b/src/main/java/com/facebook/ads/sdk/CustomConversionStatsResult.java @@ -82,7 +82,7 @@ public static CustomConversionStatsResult loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customConversionStatsResult.context = context; customConversionStatsResult.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customConversionStatsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customConversionStatsResults; + } + return customConversionStatsResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customConversionStatsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/CustomUserSettings.java b/src/main/java/com/facebook/ads/sdk/CustomUserSettings.java index 9dfa4d87..8bf0b414 100644 --- a/src/main/java/com/facebook/ads/sdk/CustomUserSettings.java +++ b/src/main/java/com/facebook/ads/sdk/CustomUserSettings.java @@ -80,7 +80,7 @@ public static CustomUserSettings loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } customUserSettings.context = context; customUserSettings.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customUserSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return customUserSettingss; + } + return customUserSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { customUserSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/DACheck.java b/src/main/java/com/facebook/ads/sdk/DACheck.java index 062b5ef4..9b1a038b 100644 --- a/src/main/java/com/facebook/ads/sdk/DACheck.java +++ b/src/main/java/com/facebook/ads/sdk/DACheck.java @@ -88,7 +88,7 @@ public static DACheck loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } daCheck.context = context; daCheck.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { daChecks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return daChecks; + } + return daChecks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { daChecks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/DayPart.java b/src/main/java/com/facebook/ads/sdk/DayPart.java index 2ba0e391..f57c75ed 100644 --- a/src/main/java/com/facebook/ads/sdk/DayPart.java +++ b/src/main/java/com/facebook/ads/sdk/DayPart.java @@ -84,7 +84,7 @@ public static DayPart loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } dayPart.context = context; dayPart.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dayParts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return dayParts; + } + return dayParts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dayParts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/DeliveryCheck.java b/src/main/java/com/facebook/ads/sdk/DeliveryCheck.java index 398e1d55..086ae9c3 100644 --- a/src/main/java/com/facebook/ads/sdk/DeliveryCheck.java +++ b/src/main/java/com/facebook/ads/sdk/DeliveryCheck.java @@ -84,7 +84,7 @@ public static DeliveryCheck loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } deliveryCheck.context = context; deliveryCheck.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { deliveryChecks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return deliveryChecks; + } + return deliveryChecks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { deliveryChecks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/DeliveryCheckExtraInfo.java b/src/main/java/com/facebook/ads/sdk/DeliveryCheckExtraInfo.java index a55a7262..78d3965a 100644 --- a/src/main/java/com/facebook/ads/sdk/DeliveryCheckExtraInfo.java +++ b/src/main/java/com/facebook/ads/sdk/DeliveryCheckExtraInfo.java @@ -82,7 +82,7 @@ public static DeliveryCheckExtraInfo loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } deliveryCheckExtraInfo.context = context; deliveryCheckExtraInfo.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { deliveryCheckExtraInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return deliveryCheckExtraInfos; + } + return deliveryCheckExtraInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { deliveryCheckExtraInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Destination.java b/src/main/java/com/facebook/ads/sdk/Destination.java index 6f24cf22..f366be7c 100644 --- a/src/main/java/com/facebook/ads/sdk/Destination.java +++ b/src/main/java/com/facebook/ads/sdk/Destination.java @@ -159,7 +159,7 @@ public static Destination loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } destination.context = context; destination.rawValue = json; @@ -180,8 +180,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { destinations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return destinations; + } + return destinations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -205,7 +205,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { destinations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -387,9 +387,9 @@ public Destination execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -402,9 +402,9 @@ public Destination apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/DestinationCatalogSettings.java b/src/main/java/com/facebook/ads/sdk/DestinationCatalogSettings.java index 727d16b0..fd93177b 100644 --- a/src/main/java/com/facebook/ads/sdk/DestinationCatalogSettings.java +++ b/src/main/java/com/facebook/ads/sdk/DestinationCatalogSettings.java @@ -139,7 +139,7 @@ public static DestinationCatalogSettings loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } destinationCatalogSettings.context = context; destinationCatalogSettings.rawValue = json; @@ -160,8 +160,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { destinationCatalogSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return destinationCatalogSettingss; + } + return destinationCatalogSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -185,7 +185,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { destinationCatalogSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -317,9 +317,9 @@ public DestinationCatalogSettings execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -332,9 +332,9 @@ public DestinationCatalogSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Domain.java b/src/main/java/com/facebook/ads/sdk/Domain.java index d00f3b10..fd5e2f7e 100644 --- a/src/main/java/com/facebook/ads/sdk/Domain.java +++ b/src/main/java/com/facebook/ads/sdk/Domain.java @@ -141,7 +141,7 @@ public static Domain loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } domain.context = context; domain.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { domains.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return domains; + } + return domains; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { domains.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -324,9 +324,9 @@ public Domain execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -339,9 +339,9 @@ public Domain apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/DynamicContentSet.java b/src/main/java/com/facebook/ads/sdk/DynamicContentSet.java index 6bfbaadb..4c23288b 100644 --- a/src/main/java/com/facebook/ads/sdk/DynamicContentSet.java +++ b/src/main/java/com/facebook/ads/sdk/DynamicContentSet.java @@ -141,7 +141,7 @@ public static DynamicContentSet loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } dynamicContentSet.context = context; dynamicContentSet.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicContentSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return dynamicContentSets; + } + return dynamicContentSets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicContentSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -324,9 +324,9 @@ public DynamicContentSet execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -339,9 +339,9 @@ public DynamicContentSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundle.java b/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundle.java index 9ec240db..00a6b352 100644 --- a/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundle.java +++ b/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundle.java @@ -149,7 +149,7 @@ public static DynamicItemDisplayBundle loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } dynamicItemDisplayBundle.context = context; dynamicItemDisplayBundle.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicItemDisplayBundles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return dynamicItemDisplayBundles; + } + return dynamicItemDisplayBundles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicItemDisplayBundles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -366,9 +366,9 @@ public APINodeList execute(Map e public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -381,9 +381,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetBundleFolders(String nodeId, APIContext context) { + public APIRequestGetBundleFolders(String nodeId, APIContext context) { super(context, nodeId, "/bundle_folders", "GET", Arrays.asList(PARAMS)); } @@ -512,9 +512,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -527,9 +527,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -623,9 +623,9 @@ public DynamicItemDisplayBundle execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -638,9 +638,9 @@ public DynamicItemDisplayBundle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -781,9 +781,9 @@ public DynamicItemDisplayBundle execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -796,9 +796,9 @@ public DynamicItemDisplayBundle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundleFolder.java b/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundleFolder.java index 903aa85f..ca42f984 100644 --- a/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundleFolder.java +++ b/src/main/java/com/facebook/ads/sdk/DynamicItemDisplayBundleFolder.java @@ -147,7 +147,7 @@ public static DynamicItemDisplayBundleFolder loadJSON(String json, APIContext co context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } dynamicItemDisplayBundleFolder.context = context; dynamicItemDisplayBundleFolder.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String j arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicItemDisplayBundleFolders.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return dynamicItemDisplayBundleFolders; + } + return dynamicItemDisplayBundleFolders; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String j arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicItemDisplayBundleFolders.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -362,9 +362,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -377,9 +377,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteBundles(String nodeId, APIContext context) { + public APIRequestDeleteBundles(String nodeId, APIContext context) { super(context, nodeId, "/bundles", "DELETE", Arrays.asList(PARAMS)); } @@ -472,9 +472,9 @@ public DynamicItemDisplayBundleFolder execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -487,9 +487,9 @@ public DynamicItemDisplayBundleFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBundle(String nodeId, APIContext context) { + public APIRequestCreateBundle(String nodeId, APIContext context) { super(context, nodeId, "/bundles", "POST", Arrays.asList(PARAMS)); } @@ -581,9 +581,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -596,9 +596,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -691,9 +691,9 @@ public DynamicItemDisplayBundleFolder execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -706,9 +706,9 @@ public DynamicItemDisplayBundleFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -838,9 +838,9 @@ public DynamicItemDisplayBundleFolder execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -853,9 +853,9 @@ public DynamicItemDisplayBundleFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/DynamicPostChildAttachment.java b/src/main/java/com/facebook/ads/sdk/DynamicPostChildAttachment.java index eada3c61..f2fc2d84 100644 --- a/src/main/java/com/facebook/ads/sdk/DynamicPostChildAttachment.java +++ b/src/main/java/com/facebook/ads/sdk/DynamicPostChildAttachment.java @@ -88,7 +88,7 @@ public static DynamicPostChildAttachment loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } dynamicPostChildAttachment.context = context; dynamicPostChildAttachment.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicPostChildAttachments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return dynamicPostChildAttachments; + } + return dynamicPostChildAttachments; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicPostChildAttachments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/DynamicPriceConfigByDate.java b/src/main/java/com/facebook/ads/sdk/DynamicPriceConfigByDate.java index d27e8181..28d29ae9 100644 --- a/src/main/java/com/facebook/ads/sdk/DynamicPriceConfigByDate.java +++ b/src/main/java/com/facebook/ads/sdk/DynamicPriceConfigByDate.java @@ -143,7 +143,7 @@ public static DynamicPriceConfigByDate loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } dynamicPriceConfigByDate.context = context; dynamicPriceConfigByDate.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicPriceConfigByDates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return dynamicPriceConfigByDates; + } + return dynamicPriceConfigByDates; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { dynamicPriceConfigByDates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -331,9 +331,9 @@ public DynamicPriceConfigByDate execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -346,9 +346,9 @@ public DynamicPriceConfigByDate apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Engagement.java b/src/main/java/com/facebook/ads/sdk/Engagement.java index dce46dbd..40591f13 100644 --- a/src/main/java/com/facebook/ads/sdk/Engagement.java +++ b/src/main/java/com/facebook/ads/sdk/Engagement.java @@ -90,7 +90,7 @@ public static Engagement loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } engagement.context = context; engagement.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { engagements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return engagements; + } + return engagements; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { engagements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/EntityAtTextRange.java b/src/main/java/com/facebook/ads/sdk/EntityAtTextRange.java index 4ec09d13..08391db2 100644 --- a/src/main/java/com/facebook/ads/sdk/EntityAtTextRange.java +++ b/src/main/java/com/facebook/ads/sdk/EntityAtTextRange.java @@ -88,7 +88,7 @@ public static EntityAtTextRange loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } entityAtTextRange.context = context; entityAtTextRange.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { entityAtTextRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return entityAtTextRanges; + } + return entityAtTextRanges; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { entityAtTextRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Event.java b/src/main/java/com/facebook/ads/sdk/Event.java index eda2518c..8323a8b3 100644 --- a/src/main/java/com/facebook/ads/sdk/Event.java +++ b/src/main/java/com/facebook/ads/sdk/Event.java @@ -195,7 +195,7 @@ public static Event loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } event.context = context; event.rawValue = json; @@ -216,8 +216,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { events.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return events; + } + return events; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -241,7 +241,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { events.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -525,9 +525,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -540,9 +540,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -629,9 +629,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -644,9 +644,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFeed(String nodeId, APIContext context) { + public APIRequestGetFeed(String nodeId, APIContext context) { super(context, nodeId, "/feed", "GET", Arrays.asList(PARAMS)); } @@ -733,9 +733,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -748,9 +748,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLiveVideos(String nodeId, APIContext context) { + public APIRequestGetLiveVideos(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "GET", Arrays.asList(PARAMS)); } @@ -858,9 +858,9 @@ public LiveVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -873,9 +873,9 @@ public LiveVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLiveVideo(String nodeId, APIContext context) { + public APIRequestCreateLiveVideo(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "POST", Arrays.asList(PARAMS)); } @@ -1135,9 +1135,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1150,9 +1150,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhotos(String nodeId, APIContext context) { + public APIRequestGetPhotos(String nodeId, APIContext context) { super(context, nodeId, "/photos", "GET", Arrays.asList(PARAMS)); } @@ -1239,9 +1239,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1254,9 +1254,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -1343,9 +1343,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1358,9 +1358,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPosts(String nodeId, APIContext context) { + public APIRequestGetPosts(String nodeId, APIContext context) { super(context, nodeId, "/posts", "GET", Arrays.asList(PARAMS)); } @@ -1458,9 +1458,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1473,9 +1473,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRoles(String nodeId, APIContext context) { + public APIRequestGetRoles(String nodeId, APIContext context) { super(context, nodeId, "/roles", "GET", Arrays.asList(PARAMS)); } @@ -1639,9 +1639,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1654,9 +1654,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideos(String nodeId, APIContext context) { + public APIRequestGetVideos(String nodeId, APIContext context) { super(context, nodeId, "/videos", "GET", Arrays.asList(PARAMS)); } @@ -1773,9 +1773,9 @@ public Event execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1788,9 +1788,9 @@ public Event apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/EventSourceGroup.java b/src/main/java/com/facebook/ads/sdk/EventSourceGroup.java index 599e3d63..3c8e7fea 100644 --- a/src/main/java/com/facebook/ads/sdk/EventSourceGroup.java +++ b/src/main/java/com/facebook/ads/sdk/EventSourceGroup.java @@ -143,7 +143,7 @@ public static EventSourceGroup loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } eventSourceGroup.context = context; eventSourceGroup.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { eventSourceGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return eventSourceGroups; + } + return eventSourceGroups; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { eventSourceGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -402,9 +402,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -417,9 +417,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedAccounts(String nodeId, APIContext context) { + public APIRequestGetSharedAccounts(String nodeId, APIContext context) { super(context, nodeId, "/shared_accounts", "GET", Arrays.asList(PARAMS)); } @@ -927,9 +927,9 @@ public EventSourceGroup execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -942,9 +942,9 @@ public EventSourceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSharedAccount(String nodeId, APIContext context) { + public APIRequestCreateSharedAccount(String nodeId, APIContext context) { super(context, nodeId, "/shared_accounts", "POST", Arrays.asList(PARAMS)); } @@ -1044,9 +1044,9 @@ public EventSourceGroup execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1059,9 +1059,9 @@ public EventSourceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1178,9 +1178,9 @@ public EventSourceGroup execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1193,9 +1193,9 @@ public EventSourceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/EventTour.java b/src/main/java/com/facebook/ads/sdk/EventTour.java index d7b92119..a7dd3592 100644 --- a/src/main/java/com/facebook/ads/sdk/EventTour.java +++ b/src/main/java/com/facebook/ads/sdk/EventTour.java @@ -163,7 +163,7 @@ public static EventTour loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } eventTour.context = context; eventTour.rawValue = json; @@ -184,8 +184,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { eventTours.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return eventTours; + } + return eventTours; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -209,7 +209,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { eventTours.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -431,9 +431,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -446,9 +446,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEvents(String nodeId, APIContext context) { + public APIRequestGetEvents(String nodeId, APIContext context) { super(context, nodeId, "/events", "GET", Arrays.asList(PARAMS)); } @@ -883,9 +883,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -898,9 +898,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPages(String nodeId, APIContext context) { + public APIRequestGetPages(String nodeId, APIContext context) { super(context, nodeId, "/pages", "GET", Arrays.asList(PARAMS)); } @@ -1967,9 +1967,9 @@ public EventTour execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1982,9 +1982,9 @@ public EventTour apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Experience.java b/src/main/java/com/facebook/ads/sdk/Experience.java index 81be892c..2bb393aa 100644 --- a/src/main/java/com/facebook/ads/sdk/Experience.java +++ b/src/main/java/com/facebook/ads/sdk/Experience.java @@ -86,7 +86,7 @@ public static Experience loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } experience.context = context; experience.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { experiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return experiences; + } + return experiences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { experiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ExtendedCredit.java b/src/main/java/com/facebook/ads/sdk/ExtendedCredit.java index c20f57eb..b6bd6c9c 100644 --- a/src/main/java/com/facebook/ads/sdk/ExtendedCredit.java +++ b/src/main/java/com/facebook/ads/sdk/ExtendedCredit.java @@ -169,7 +169,7 @@ public static ExtendedCredit loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } extendedCredit.context = context; extendedCredit.rawValue = json; @@ -190,8 +190,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { extendedCredits.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return extendedCredits; + } + return extendedCredits; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -215,7 +215,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { extendedCredits.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -433,9 +433,9 @@ public APINodeList execute(Map extra public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -448,9 +448,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetExtendedCreditInvoiceGroups(String nodeId, APIContext context) { + public APIRequestGetExtendedCreditInvoiceGroups(String nodeId, APIContext context) { super(context, nodeId, "/extended_credit_invoice_groups", "GET", Arrays.asList(PARAMS)); } @@ -581,9 +581,9 @@ public ExtendedCreditInvoiceGroup execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -596,9 +596,9 @@ public ExtendedCreditInvoiceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateExtendedCreditInvoiceGroup(String nodeId, APIContext context) { + public APIRequestCreateExtendedCreditInvoiceGroup(String nodeId, APIContext context) { super(context, nodeId, "/extended_credit_invoice_groups", "POST", Arrays.asList(PARAMS)); } @@ -710,9 +710,9 @@ public APINodeList execute(Map e public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -725,9 +725,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetOwningCreditAllocationConfigs(String nodeId, APIContext context) { + public APIRequestGetOwningCreditAllocationConfigs(String nodeId, APIContext context) { super(context, nodeId, "/owning_credit_allocation_configs", "GET", Arrays.asList(PARAMS)); } @@ -894,9 +894,9 @@ public ExtendedCreditAllocationConfig execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -909,9 +909,9 @@ public ExtendedCreditAllocationConfig apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOwningCreditAllocationConfig(String nodeId, APIContext context) { + public APIRequestCreateOwningCreditAllocationConfig(String nodeId, APIContext context) { super(context, nodeId, "/owning_credit_allocation_configs", "POST", Arrays.asList(PARAMS)); } @@ -1056,9 +1056,9 @@ public ExtendedCredit execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1071,9 +1071,9 @@ public ExtendedCredit apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ExtendedCreditAllocationConfig.java b/src/main/java/com/facebook/ads/sdk/ExtendedCreditAllocationConfig.java index 4dc0cccd..0fb1bd04 100644 --- a/src/main/java/com/facebook/ads/sdk/ExtendedCreditAllocationConfig.java +++ b/src/main/java/com/facebook/ads/sdk/ExtendedCreditAllocationConfig.java @@ -155,7 +155,7 @@ public static ExtendedCreditAllocationConfig loadJSON(String json, APIContext co context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } extendedCreditAllocationConfig.context = context; extendedCreditAllocationConfig.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String j arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { extendedCreditAllocationConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return extendedCreditAllocationConfigs; + } + return extendedCreditAllocationConfigs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String j arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { extendedCreditAllocationConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -383,9 +383,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -398,9 +398,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -497,9 +497,9 @@ public ExtendedCreditAllocationConfig execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -512,9 +512,9 @@ public ExtendedCreditAllocationConfig apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -672,9 +672,9 @@ public ExtendedCreditAllocationConfig execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -687,9 +687,9 @@ public ExtendedCreditAllocationConfig apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ExtendedCreditInvoiceGroup.java b/src/main/java/com/facebook/ads/sdk/ExtendedCreditInvoiceGroup.java index 9b494af4..5f6fff97 100644 --- a/src/main/java/com/facebook/ads/sdk/ExtendedCreditInvoiceGroup.java +++ b/src/main/java/com/facebook/ads/sdk/ExtendedCreditInvoiceGroup.java @@ -147,7 +147,7 @@ public static ExtendedCreditInvoiceGroup loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } extendedCreditInvoiceGroup.context = context; extendedCreditInvoiceGroup.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { extendedCreditInvoiceGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return extendedCreditInvoiceGroups; + } + return extendedCreditInvoiceGroups; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { extendedCreditInvoiceGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -360,9 +360,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -375,9 +375,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdAccounts(String nodeId, APIContext context) { + public APIRequestDeleteAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/ad_accounts", "DELETE", Arrays.asList(PARAMS)); } @@ -529,9 +529,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -544,9 +544,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -1054,9 +1054,9 @@ public AdAccount execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1069,9 +1069,9 @@ public AdAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdAccount(String nodeId, APIContext context) { + public APIRequestCreateAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/ad_accounts", "POST", Arrays.asList(PARAMS)); } @@ -1163,9 +1163,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1178,9 +1178,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1273,9 +1273,9 @@ public ExtendedCreditInvoiceGroup execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1288,9 +1288,9 @@ public ExtendedCreditInvoiceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1421,9 +1421,9 @@ public ExtendedCreditInvoiceGroup execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1436,9 +1436,9 @@ public ExtendedCreditInvoiceGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ExternalEventSource.java b/src/main/java/com/facebook/ads/sdk/ExternalEventSource.java index af1279a9..cf07dca3 100644 --- a/src/main/java/com/facebook/ads/sdk/ExternalEventSource.java +++ b/src/main/java/com/facebook/ads/sdk/ExternalEventSource.java @@ -141,7 +141,7 @@ public static ExternalEventSource loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } externalEventSource.context = context; externalEventSource.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { externalEventSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return externalEventSources; + } + return externalEventSources; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { externalEventSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -324,9 +324,9 @@ public ExternalEventSource execute(Map extraParams) throws APIEx public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -339,9 +339,9 @@ public ExternalEventSource apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/FAMEExportConfig.java b/src/main/java/com/facebook/ads/sdk/FAMEExportConfig.java index ac5d7295..31bb2e56 100644 --- a/src/main/java/com/facebook/ads/sdk/FAMEExportConfig.java +++ b/src/main/java/com/facebook/ads/sdk/FAMEExportConfig.java @@ -84,7 +84,7 @@ public static FAMEExportConfig loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } fameExportConfig.context = context; fameExportConfig.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { fameExportConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return fameExportConfigs; + } + return fameExportConfigs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { fameExportConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/FlexibleTargeting.java b/src/main/java/com/facebook/ads/sdk/FlexibleTargeting.java index 16158b3a..d6d125e3 100644 --- a/src/main/java/com/facebook/ads/sdk/FlexibleTargeting.java +++ b/src/main/java/com/facebook/ads/sdk/FlexibleTargeting.java @@ -132,7 +132,7 @@ public static FlexibleTargeting loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } flexibleTargeting.context = context; flexibleTargeting.rawValue = json; @@ -153,8 +153,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { flexibleTargetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return flexibleTargetings; + } + return flexibleTargetings; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -178,7 +178,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { flexibleTargetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Flight.java b/src/main/java/com/facebook/ads/sdk/Flight.java index 11005e81..e9009be2 100644 --- a/src/main/java/com/facebook/ads/sdk/Flight.java +++ b/src/main/java/com/facebook/ads/sdk/Flight.java @@ -163,7 +163,7 @@ public static Flight loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } flight.context = context; flight.rawValue = json; @@ -184,8 +184,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { flights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return flights; + } + return flights; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -209,7 +209,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { flights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -405,9 +405,9 @@ public Flight execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -420,9 +420,9 @@ public Flight apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -614,9 +614,9 @@ public Flight execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -629,9 +629,9 @@ public Flight apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/FriendList.java b/src/main/java/com/facebook/ads/sdk/FriendList.java index 0bcdb1ee..242a7274 100644 --- a/src/main/java/com/facebook/ads/sdk/FriendList.java +++ b/src/main/java/com/facebook/ads/sdk/FriendList.java @@ -143,7 +143,7 @@ public static FriendList loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } friendList.context = context; friendList.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { friendLists.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return friendLists; + } + return friendLists; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { friendLists.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -331,9 +331,9 @@ public FriendList execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -346,9 +346,9 @@ public FriendList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/FundingSourceDetails.java b/src/main/java/com/facebook/ads/sdk/FundingSourceDetails.java index eb125f3c..e547b5e3 100644 --- a/src/main/java/com/facebook/ads/sdk/FundingSourceDetails.java +++ b/src/main/java/com/facebook/ads/sdk/FundingSourceDetails.java @@ -84,7 +84,7 @@ public static FundingSourceDetails loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } fundingSourceDetails.context = context; fundingSourceDetails.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { fundingSourceDetailss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return fundingSourceDetailss; + } + return fundingSourceDetailss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { fundingSourceDetailss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/FundingSourceDetailsCoupon.java b/src/main/java/com/facebook/ads/sdk/FundingSourceDetailsCoupon.java index 06c41705..4136add1 100644 --- a/src/main/java/com/facebook/ads/sdk/FundingSourceDetailsCoupon.java +++ b/src/main/java/com/facebook/ads/sdk/FundingSourceDetailsCoupon.java @@ -84,7 +84,7 @@ public static FundingSourceDetailsCoupon loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } fundingSourceDetailsCoupon.context = context; fundingSourceDetailsCoupon.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { fundingSourceDetailsCoupons.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return fundingSourceDetailsCoupons; + } + return fundingSourceDetailsCoupons; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { fundingSourceDetailsCoupons.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Group.java b/src/main/java/com/facebook/ads/sdk/Group.java index d3f4fc32..1834fe25 100644 --- a/src/main/java/com/facebook/ads/sdk/Group.java +++ b/src/main/java/com/facebook/ads/sdk/Group.java @@ -173,7 +173,7 @@ public static Group loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } group.context = context; group.rawValue = json; @@ -194,8 +194,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { groups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return groups; + } + return groups; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -219,7 +219,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { groups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -498,9 +498,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -513,9 +513,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAdmins(String nodeId, APIContext context) { + public APIRequestDeleteAdmins(String nodeId, APIContext context) { super(context, nodeId, "/admins", "DELETE", Arrays.asList(PARAMS)); } @@ -612,9 +612,9 @@ public Group execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -627,9 +627,9 @@ public Group apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdmin(String nodeId, APIContext context) { + public APIRequestCreateAdmin(String nodeId, APIContext context) { super(context, nodeId, "/admins", "POST", Arrays.asList(PARAMS)); } @@ -748,9 +748,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -763,9 +763,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAlbums(String nodeId, APIContext context) { + public APIRequestGetAlbums(String nodeId, APIContext context) { super(context, nodeId, "/albums", "GET", Arrays.asList(PARAMS)); } @@ -1024,9 +1024,9 @@ public Album execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1039,9 +1039,9 @@ public Album apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAlbum(String nodeId, APIContext context) { + public APIRequestCreateAlbum(String nodeId, APIContext context) { super(context, nodeId, "/albums", "POST", Arrays.asList(PARAMS)); } @@ -1203,9 +1203,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1218,9 +1218,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDocs(String nodeId, APIContext context) { + public APIRequestGetDocs(String nodeId, APIContext context) { super(context, nodeId, "/docs", "GET", Arrays.asList(PARAMS)); } @@ -1337,9 +1337,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1352,9 +1352,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEvents(String nodeId, APIContext context) { + public APIRequestGetEvents(String nodeId, APIContext context) { super(context, nodeId, "/events", "GET", Arrays.asList(PARAMS)); } @@ -1763,9 +1763,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1778,9 +1778,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateFeed(String nodeId, APIContext context) { + public APIRequestCreateFeed(String nodeId, APIContext context) { super(context, nodeId, "/feed", "POST", Arrays.asList(PARAMS)); } @@ -2686,9 +2686,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2701,9 +2701,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetGroups(String nodeId, APIContext context) { + public APIRequestGetGroups(String nodeId, APIContext context) { super(context, nodeId, "/groups", "GET", Arrays.asList(PARAMS)); } @@ -2936,9 +2936,9 @@ public Group execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2951,9 +2951,9 @@ public Group apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateGroup(String nodeId, APIContext context) { + public APIRequestCreateGroup(String nodeId, APIContext context) { super(context, nodeId, "/groups", "POST", Arrays.asList(PARAMS)); } @@ -3166,9 +3166,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3181,9 +3181,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLiveVideos(String nodeId, APIContext context) { + public APIRequestGetLiveVideos(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "GET", Arrays.asList(PARAMS)); } @@ -3498,9 +3498,9 @@ public LiveVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3513,9 +3513,9 @@ public LiveVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLiveVideo(String nodeId, APIContext context) { + public APIRequestCreateLiveVideo(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "POST", Arrays.asList(PARAMS)); } @@ -3777,9 +3777,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3792,9 +3792,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteMembers(String nodeId, APIContext context) { + public APIRequestDeleteMembers(String nodeId, APIContext context) { super(context, nodeId, "/members", "DELETE", Arrays.asList(PARAMS)); } @@ -3900,9 +3900,9 @@ public Group execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3915,9 +3915,9 @@ public Group apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMember(String nodeId, APIContext context) { + public APIRequestCreateMember(String nodeId, APIContext context) { super(context, nodeId, "/members", "POST", Arrays.asList(PARAMS)); } @@ -4072,9 +4072,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4087,9 +4087,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateOpenGraphActionFeed(String nodeId, APIContext context) { + public APIRequestCreateOpenGraphActionFeed(String nodeId, APIContext context) { super(context, nodeId, "/open_graph_action_feed", "POST", Arrays.asList(PARAMS)); } @@ -4442,9 +4442,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4457,9 +4457,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetOptedInMembers(String nodeId, APIContext context) { + public APIRequestGetOptedInMembers(String nodeId, APIContext context) { super(context, nodeId, "/opted_in_members", "GET", Arrays.asList(PARAMS)); } @@ -5011,9 +5011,9 @@ public Photo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5026,9 +5026,9 @@ public Photo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePhoto(String nodeId, APIContext context) { + public APIRequestCreatePhoto(String nodeId, APIContext context) { super(context, nodeId, "/photos", "POST", Arrays.asList(PARAMS)); } @@ -5512,9 +5512,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5527,9 +5527,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -5756,9 +5756,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5771,9 +5771,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideos(String nodeId, APIContext context) { + public APIRequestGetVideos(String nodeId, APIContext context) { super(context, nodeId, "/videos", "GET", Arrays.asList(PARAMS)); } @@ -6221,9 +6221,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6236,9 +6236,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVideo(String nodeId, APIContext context) { + public APIRequestCreateVideo(String nodeId, APIContext context) { super(context, nodeId, "/videos", "POST", Arrays.asList(PARAMS)); } @@ -6861,9 +6861,9 @@ public Group execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6876,9 +6876,9 @@ public Group apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -7123,9 +7123,9 @@ public Group execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7138,9 +7138,9 @@ public Group apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/HomeListing.java b/src/main/java/com/facebook/ads/sdk/HomeListing.java index cdad4ce3..c7df3dbf 100644 --- a/src/main/java/com/facebook/ads/sdk/HomeListing.java +++ b/src/main/java/com/facebook/ads/sdk/HomeListing.java @@ -217,7 +217,7 @@ public static HomeListing loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } homeListing.context = context; homeListing.rawValue = json; @@ -238,8 +238,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { homeListings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return homeListings; + } + return homeListings; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -263,7 +263,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { homeListings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -560,9 +560,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -575,9 +575,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -705,9 +705,9 @@ public HomeListing execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -720,9 +720,9 @@ public HomeListing apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1110,9 +1110,9 @@ public HomeListing execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1125,9 +1125,9 @@ public HomeListing apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Hotel.java b/src/main/java/com/facebook/ads/sdk/Hotel.java index 5b67dadd..1177e201 100644 --- a/src/main/java/com/facebook/ads/sdk/Hotel.java +++ b/src/main/java/com/facebook/ads/sdk/Hotel.java @@ -171,7 +171,7 @@ public static Hotel loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } hotel.context = context; hotel.rawValue = json; @@ -192,8 +192,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { hotels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return hotels; + } + return hotels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -217,7 +217,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { hotels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -433,9 +433,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -448,9 +448,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHotelRooms(String nodeId, APIContext context) { + public APIRequestGetHotelRooms(String nodeId, APIContext context) { super(context, nodeId, "/hotel_rooms", "GET", Arrays.asList(PARAMS)); } @@ -607,9 +607,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -622,9 +622,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -729,9 +729,9 @@ public Hotel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -744,9 +744,9 @@ public Hotel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -971,9 +971,9 @@ public Hotel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -986,9 +986,9 @@ public Hotel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/HotelRoom.java b/src/main/java/com/facebook/ads/sdk/HotelRoom.java index 83e2f091..01010457 100644 --- a/src/main/java/com/facebook/ads/sdk/HotelRoom.java +++ b/src/main/java/com/facebook/ads/sdk/HotelRoom.java @@ -155,7 +155,7 @@ public static HotelRoom loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } hotelRoom.context = context; hotelRoom.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { hotelRooms.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return hotelRooms; + } + return hotelRooms; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { hotelRooms.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -379,9 +379,9 @@ public APINodeList execute(Map extraPa public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -394,9 +394,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPricingVariables(String nodeId, APIContext context) { + public APIRequestGetPricingVariables(String nodeId, APIContext context) { super(context, nodeId, "/pricing_variables", "GET", Arrays.asList(PARAMS)); } @@ -511,9 +511,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -526,9 +526,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -625,9 +625,9 @@ public HotelRoom execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -640,9 +640,9 @@ public HotelRoom apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -809,9 +809,9 @@ public HotelRoom execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -824,9 +824,9 @@ public HotelRoom apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/IDName.java b/src/main/java/com/facebook/ads/sdk/IDName.java index 2809a01f..61b18795 100644 --- a/src/main/java/com/facebook/ads/sdk/IDName.java +++ b/src/main/java/com/facebook/ads/sdk/IDName.java @@ -80,7 +80,7 @@ public static IDName loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } idName.context = context; idName.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { idNames.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return idNames; + } + return idNames; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { idNames.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/IGComment.java b/src/main/java/com/facebook/ads/sdk/IGComment.java index f50ce0ca..f176318b 100644 --- a/src/main/java/com/facebook/ads/sdk/IGComment.java +++ b/src/main/java/com/facebook/ads/sdk/IGComment.java @@ -151,7 +151,7 @@ public static IGComment loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } igComment.context = context; igComment.rawValue = json; @@ -172,8 +172,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { igComments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return igComments; + } + return igComments; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -197,7 +197,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { igComments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -381,9 +381,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -396,9 +396,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReplies(String nodeId, APIContext context) { + public APIRequestGetReplies(String nodeId, APIContext context) { super(context, nodeId, "/replies", "GET", Arrays.asList(PARAMS)); } @@ -542,9 +542,9 @@ public IGComment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -557,9 +557,9 @@ public IGComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateReply(String nodeId, APIContext context) { + public APIRequestCreateReply(String nodeId, APIContext context) { super(context, nodeId, "/replies", "POST", Arrays.asList(PARAMS)); } @@ -651,9 +651,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -666,9 +666,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -763,9 +763,9 @@ public IGComment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -778,9 +778,9 @@ public IGComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -924,9 +924,9 @@ public IGComment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -939,9 +939,9 @@ public IGComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/IGMedia.java b/src/main/java/com/facebook/ads/sdk/IGMedia.java index 301dabca..175a46f4 100644 --- a/src/main/java/com/facebook/ads/sdk/IGMedia.java +++ b/src/main/java/com/facebook/ads/sdk/IGMedia.java @@ -163,7 +163,7 @@ public static IGMedia loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } igMedia.context = context; igMedia.rawValue = json; @@ -184,8 +184,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { igMedias.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return igMedias; + } + return igMedias; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -209,7 +209,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { igMedias.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -424,9 +424,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -439,9 +439,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetChildren(String nodeId, APIContext context) { + public APIRequestGetChildren(String nodeId, APIContext context) { super(context, nodeId, "/children", "GET", Arrays.asList(PARAMS)); } @@ -634,9 +634,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -649,9 +649,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -795,9 +795,9 @@ public IGComment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -810,9 +810,9 @@ public IGComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -912,9 +912,9 @@ public APINodeList execute(Map extraPar public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -927,9 +927,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -1090,9 +1090,9 @@ public IGMedia execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1105,9 +1105,9 @@ public IGMedia apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1293,9 +1293,9 @@ public IGMedia execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1308,9 +1308,9 @@ public IGMedia apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/IGUser.java b/src/main/java/com/facebook/ads/sdk/IGUser.java index ac163193..f458ee56 100644 --- a/src/main/java/com/facebook/ads/sdk/IGUser.java +++ b/src/main/java/com/facebook/ads/sdk/IGUser.java @@ -161,7 +161,7 @@ public static IGUser loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } igUser.context = context; igUser.rawValue = json; @@ -182,8 +182,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { igUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return igUsers; + } + return igUsers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -207,7 +207,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { igUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -432,9 +432,9 @@ public APINodeList execute(Map extraPar public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -447,9 +447,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -620,9 +620,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -635,9 +635,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMedia(String nodeId, APIContext context) { + public APIRequestGetMedia(String nodeId, APIContext context) { super(context, nodeId, "/media", "GET", Arrays.asList(PARAMS)); } @@ -829,9 +829,9 @@ public IGMedia execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -844,9 +844,9 @@ public IGMedia apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMedia(String nodeId, APIContext context) { + public APIRequestCreateMedia(String nodeId, APIContext context) { super(context, nodeId, "/media", "POST", Arrays.asList(PARAMS)); } @@ -973,9 +973,9 @@ public IGMedia execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -988,9 +988,9 @@ public IGMedia apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMediaPublish(String nodeId, APIContext context) { + public APIRequestCreateMediaPublish(String nodeId, APIContext context) { super(context, nodeId, "/media_publish", "POST", Arrays.asList(PARAMS)); } @@ -1089,9 +1089,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1104,9 +1104,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMention(String nodeId, APIContext context) { + public APIRequestCreateMention(String nodeId, APIContext context) { super(context, nodeId, "/mentions", "POST", Arrays.asList(PARAMS)); } @@ -1208,9 +1208,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1223,9 +1223,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRecentlySearchedHashtags(String nodeId, APIContext context) { + public APIRequestGetRecentlySearchedHashtags(String nodeId, APIContext context) { super(context, nodeId, "/recently_searched_hashtags", "GET", Arrays.asList(PARAMS)); } @@ -1326,9 +1326,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1341,9 +1341,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetStories(String nodeId, APIContext context) { + public APIRequestGetStories(String nodeId, APIContext context) { super(context, nodeId, "/stories", "GET", Arrays.asList(PARAMS)); } @@ -1542,9 +1542,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1557,9 +1557,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTags(String nodeId, APIContext context) { + public APIRequestGetTags(String nodeId, APIContext context) { super(context, nodeId, "/tags", "GET", Arrays.asList(PARAMS)); } @@ -1757,9 +1757,9 @@ public IGUser execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1772,9 +1772,9 @@ public IGUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/InsightsResult.java b/src/main/java/com/facebook/ads/sdk/InsightsResult.java index 62911649..43e6a09b 100644 --- a/src/main/java/com/facebook/ads/sdk/InsightsResult.java +++ b/src/main/java/com/facebook/ads/sdk/InsightsResult.java @@ -90,7 +90,7 @@ public static InsightsResult loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } insightsResult.context = context; insightsResult.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { insightsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return insightsResults; + } + return insightsResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { insightsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/InstagramComment.java b/src/main/java/com/facebook/ads/sdk/InstagramComment.java index 554261bb..a10e25b8 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramComment.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramComment.java @@ -149,7 +149,7 @@ public static InstagramComment loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } instagramComment.context = context; instagramComment.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramComments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return instagramComments; + } + return instagramComments; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramComments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -371,9 +371,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -386,9 +386,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReplies(String nodeId, APIContext context) { + public APIRequestGetReplies(String nodeId, APIContext context) { super(context, nodeId, "/replies", "GET", Arrays.asList(PARAMS)); } @@ -526,9 +526,9 @@ public InstagramComment execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -541,9 +541,9 @@ public InstagramComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateReply(String nodeId, APIContext context) { + public APIRequestCreateReply(String nodeId, APIContext context) { super(context, nodeId, "/replies", "POST", Arrays.asList(PARAMS)); } @@ -645,9 +645,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -660,9 +660,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -765,9 +765,9 @@ public InstagramComment execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -780,9 +780,9 @@ public InstagramComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -920,9 +920,9 @@ public InstagramComment execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -935,9 +935,9 @@ public InstagramComment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/InstagramInsightsResult.java b/src/main/java/com/facebook/ads/sdk/InstagramInsightsResult.java index 72a0c2a9..e5d3eca5 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramInsightsResult.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramInsightsResult.java @@ -88,7 +88,7 @@ public static InstagramInsightsResult loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } instagramInsightsResult.context = context; instagramInsightsResult.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramInsightsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return instagramInsightsResults; + } + return instagramInsightsResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramInsightsResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/InstagramInsightsValue.java b/src/main/java/com/facebook/ads/sdk/InstagramInsightsValue.java index 0a694ebe..a5744909 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramInsightsValue.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramInsightsValue.java @@ -80,7 +80,7 @@ public static InstagramInsightsValue loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } instagramInsightsValue.context = context; instagramInsightsValue.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramInsightsValues.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return instagramInsightsValues; + } + return instagramInsightsValues; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramInsightsValues.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/InstagramUser.java b/src/main/java/com/facebook/ads/sdk/InstagramUser.java index 0aa2b939..39d01273 100644 --- a/src/main/java/com/facebook/ads/sdk/InstagramUser.java +++ b/src/main/java/com/facebook/ads/sdk/InstagramUser.java @@ -153,7 +153,7 @@ public static InstagramUser loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } instagramUser.context = context; instagramUser.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return instagramUsers; + } + return instagramUsers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instagramUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -374,9 +374,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -389,9 +389,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAgencies(String nodeId, APIContext context) { + public APIRequestDeleteAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "DELETE", Arrays.asList(PARAMS)); } @@ -501,9 +501,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -516,9 +516,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -792,9 +792,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -807,9 +807,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAuthorizedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAuthorizedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/authorized_adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -1323,9 +1323,9 @@ public InstagramUser execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1338,9 +1338,9 @@ public InstagramUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAuthorizedAdAccount(String nodeId, APIContext context) { + public APIRequestCreateAuthorizedAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/authorized_adaccounts", "POST", Arrays.asList(PARAMS)); } @@ -1446,9 +1446,9 @@ public InstagramUser execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1461,9 +1461,9 @@ public InstagramUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/InstantArticle.java b/src/main/java/com/facebook/ads/sdk/InstantArticle.java index 4177e27a..98899a71 100644 --- a/src/main/java/com/facebook/ads/sdk/InstantArticle.java +++ b/src/main/java/com/facebook/ads/sdk/InstantArticle.java @@ -153,7 +153,7 @@ public static InstantArticle loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } instantArticle.context = context; instantArticle.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instantArticles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return instantArticles; + } + return instantArticles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instantArticles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -374,9 +374,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -389,9 +389,9 @@ public APINodeList apply(ResponseWrapper resu } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -543,9 +543,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -558,9 +558,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -656,9 +656,9 @@ public InstantArticle execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -671,9 +671,9 @@ public InstantArticle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/InstantArticleInsightsQueryResult.java b/src/main/java/com/facebook/ads/sdk/InstantArticleInsightsQueryResult.java index 47cd413f..d7277501 100644 --- a/src/main/java/com/facebook/ads/sdk/InstantArticleInsightsQueryResult.java +++ b/src/main/java/com/facebook/ads/sdk/InstantArticleInsightsQueryResult.java @@ -84,7 +84,7 @@ public static InstantArticleInsightsQueryResult loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } instantArticleInsightsQueryResult.context = context; instantArticleInsightsQueryResult.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(Strin arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instantArticleInsightsQueryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return instantArticleInsightsQueryResults; + } + return instantArticleInsightsQueryResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(Strin arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { instantArticleInsightsQueryResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/InvoiceCampaign.java b/src/main/java/com/facebook/ads/sdk/InvoiceCampaign.java index b96683af..fe66b7a3 100644 --- a/src/main/java/com/facebook/ads/sdk/InvoiceCampaign.java +++ b/src/main/java/com/facebook/ads/sdk/InvoiceCampaign.java @@ -92,7 +92,7 @@ public static InvoiceCampaign loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } invoiceCampaign.context = context; invoiceCampaign.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { invoiceCampaigns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return invoiceCampaigns; + } + return invoiceCampaigns; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { invoiceCampaigns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/IosAppLink.java b/src/main/java/com/facebook/ads/sdk/IosAppLink.java index ff94d37b..4e234643 100644 --- a/src/main/java/com/facebook/ads/sdk/IosAppLink.java +++ b/src/main/java/com/facebook/ads/sdk/IosAppLink.java @@ -82,7 +82,7 @@ public static IosAppLink loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } iosAppLink.context = context; iosAppLink.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { iosAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return iosAppLinks; + } + return iosAppLinks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { iosAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/IterativeSplitTestConfig.java b/src/main/java/com/facebook/ads/sdk/IterativeSplitTestConfig.java index 1e15db14..e07e1ec8 100644 --- a/src/main/java/com/facebook/ads/sdk/IterativeSplitTestConfig.java +++ b/src/main/java/com/facebook/ads/sdk/IterativeSplitTestConfig.java @@ -153,7 +153,7 @@ public static IterativeSplitTestConfig loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } iterativeSplitTestConfig.context = context; iterativeSplitTestConfig.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { iterativeSplitTestConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return iterativeSplitTestConfigs; + } + return iterativeSplitTestConfigs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { iterativeSplitTestConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -366,9 +366,9 @@ public IterativeSplitTestConfig execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -381,9 +381,9 @@ public IterativeSplitTestConfig apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/KeyValue.java b/src/main/java/com/facebook/ads/sdk/KeyValue.java index ca75dfaa..93d43f51 100644 --- a/src/main/java/com/facebook/ads/sdk/KeyValue.java +++ b/src/main/java/com/facebook/ads/sdk/KeyValue.java @@ -80,7 +80,7 @@ public static KeyValue loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } keyValue.context = context; keyValue.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { keyValues.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return keyValues; + } + return keyValues; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { keyValues.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Lead.java b/src/main/java/com/facebook/ads/sdk/Lead.java index 1d349ef3..a0c5eb41 100644 --- a/src/main/java/com/facebook/ads/sdk/Lead.java +++ b/src/main/java/com/facebook/ads/sdk/Lead.java @@ -169,7 +169,7 @@ public static Lead loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } lead.context = context; lead.rawValue = json; @@ -190,8 +190,8 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leads; + } + return leads; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -215,7 +215,7 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -415,9 +415,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -430,9 +430,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -536,9 +536,9 @@ public Lead execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -551,9 +551,9 @@ public Lead apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenAppointmentBookingInfo.java b/src/main/java/com/facebook/ads/sdk/LeadGenAppointmentBookingInfo.java index 84018940..d08cb0f4 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenAppointmentBookingInfo.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenAppointmentBookingInfo.java @@ -82,7 +82,7 @@ public static LeadGenAppointmentBookingInfo loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenAppointmentBookingInfo.context = context; leadGenAppointmentBookingInfo.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenAppointmentBookingInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenAppointmentBookingInfos; + } + return leadGenAppointmentBookingInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenAppointmentBookingInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupChoices.java b/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupChoices.java index f1667b06..fb3f148e 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupChoices.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupChoices.java @@ -82,7 +82,7 @@ public static LeadGenConditionalQuestionsGroupChoices loadJSON(String json, APIC context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenConditionalQuestionsGroupChoices.context = context; leadGenConditionalQuestionsGroupChoices.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenConditionalQuestionsGroupChoicess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenConditionalQuestionsGroupChoicess; + } + return leadGenConditionalQuestionsGroupChoicess; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenConditionalQuestionsGroupChoicess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupQuestions.java b/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupQuestions.java index 187a2823..2b198e88 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupQuestions.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenConditionalQuestionsGroupQuestions.java @@ -82,7 +82,7 @@ public static LeadGenConditionalQuestionsGroupQuestions loadJSON(String json, AP context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenConditionalQuestionsGroupQuestions.context = context; leadGenConditionalQuestionsGroupQuestions.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseRespon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenConditionalQuestionsGroupQuestionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenConditionalQuestionsGroupQuestionss; + } + return leadGenConditionalQuestionsGroupQuestionss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseRespon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenConditionalQuestionsGroupQuestionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenDraftQuestion.java b/src/main/java/com/facebook/ads/sdk/LeadGenDraftQuestion.java index d499af13..61bd2b84 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenDraftQuestion.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenDraftQuestion.java @@ -92,7 +92,7 @@ public static LeadGenDraftQuestion loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenDraftQuestion.context = context; leadGenDraftQuestion.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenDraftQuestions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenDraftQuestions; + } + return leadGenDraftQuestions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenDraftQuestions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenFormPreviewDetails.java b/src/main/java/com/facebook/ads/sdk/LeadGenFormPreviewDetails.java index 82229d7d..7f1bee3a 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenFormPreviewDetails.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenFormPreviewDetails.java @@ -100,7 +100,7 @@ public static LeadGenFormPreviewDetails loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenFormPreviewDetails.context = context; leadGenFormPreviewDetails.rawValue = json; @@ -121,8 +121,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenFormPreviewDetailss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenFormPreviewDetailss; + } + return leadGenFormPreviewDetailss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -146,7 +146,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenFormPreviewDetailss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenPostSubmissionCheckResult.java b/src/main/java/com/facebook/ads/sdk/LeadGenPostSubmissionCheckResult.java index 4065d6f7..c5bbc29a 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenPostSubmissionCheckResult.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenPostSubmissionCheckResult.java @@ -82,7 +82,7 @@ public static LeadGenPostSubmissionCheckResult loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenPostSubmissionCheckResult.context = context; leadGenPostSubmissionCheckResult.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenPostSubmissionCheckResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenPostSubmissionCheckResults; + } + return leadGenPostSubmissionCheckResults; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenPostSubmissionCheckResults.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenQuestion.java b/src/main/java/com/facebook/ads/sdk/LeadGenQuestion.java index dabe9735..403924d1 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenQuestion.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenQuestion.java @@ -94,7 +94,7 @@ public static LeadGenQuestion loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenQuestion.context = context; leadGenQuestion.rawValue = json; @@ -115,8 +115,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenQuestions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenQuestions; + } + return leadGenQuestions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -140,7 +140,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenQuestions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadGenQuestionOption.java b/src/main/java/com/facebook/ads/sdk/LeadGenQuestionOption.java index 798496f0..930356ea 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadGenQuestionOption.java +++ b/src/main/java/com/facebook/ads/sdk/LeadGenQuestionOption.java @@ -80,7 +80,7 @@ public static LeadGenQuestionOption loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadGenQuestionOption.context = context; leadGenQuestionOption.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenQuestionOptions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadGenQuestionOptions; + } + return leadGenQuestionOptions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadGenQuestionOptions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LeadgenForm.java b/src/main/java/com/facebook/ads/sdk/LeadgenForm.java index 2531c99c..36ec0ff5 100644 --- a/src/main/java/com/facebook/ads/sdk/LeadgenForm.java +++ b/src/main/java/com/facebook/ads/sdk/LeadgenForm.java @@ -179,7 +179,7 @@ public static LeadgenForm loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } leadgenForm.context = context; leadgenForm.rawValue = json; @@ -200,8 +200,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadgenForms.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return leadgenForms; + } + return leadgenForms; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -225,7 +225,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { leadgenForms.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -471,9 +471,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -486,9 +486,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLeads(String nodeId, APIContext context) { + public APIRequestGetLeads(String nodeId, APIContext context) { super(context, nodeId, "/leads", "GET", Arrays.asList(PARAMS)); } @@ -711,9 +711,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -726,9 +726,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTestLeads(String nodeId, APIContext context) { + public APIRequestGetTestLeads(String nodeId, APIContext context) { super(context, nodeId, "/test_leads", "GET", Arrays.asList(PARAMS)); } @@ -936,9 +936,9 @@ public Lead execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -951,9 +951,9 @@ public Lead apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateTestLead(String nodeId, APIContext context) { + public APIRequestCreateTestLead(String nodeId, APIContext context) { super(context, nodeId, "/test_leads", "POST", Arrays.asList(PARAMS)); } @@ -1080,9 +1080,9 @@ public LeadgenForm execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1095,9 +1095,9 @@ public LeadgenForm apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1339,9 +1339,9 @@ public LeadgenForm execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1354,9 +1354,9 @@ public LeadgenForm apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LifeEvent.java b/src/main/java/com/facebook/ads/sdk/LifeEvent.java index 6664ae0e..f16aff83 100644 --- a/src/main/java/com/facebook/ads/sdk/LifeEvent.java +++ b/src/main/java/com/facebook/ads/sdk/LifeEvent.java @@ -151,7 +151,7 @@ public static LifeEvent loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } lifeEvent.context = context; lifeEvent.rawValue = json; @@ -172,8 +172,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { lifeEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return lifeEvents; + } + return lifeEvents; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -197,7 +197,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { lifeEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -397,9 +397,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -412,9 +412,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -705,9 +705,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -720,9 +720,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -913,9 +913,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -928,9 +928,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhotos(String nodeId, APIContext context) { + public APIRequestGetPhotos(String nodeId, APIContext context) { super(context, nodeId, "/photos", "GET", Arrays.asList(PARAMS)); } @@ -1267,9 +1267,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1282,9 +1282,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -1806,9 +1806,9 @@ public LifeEvent execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1821,9 +1821,9 @@ public LifeEvent apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Link.java b/src/main/java/com/facebook/ads/sdk/Link.java index 4780f55f..26ed0c31 100644 --- a/src/main/java/com/facebook/ads/sdk/Link.java +++ b/src/main/java/com/facebook/ads/sdk/Link.java @@ -159,7 +159,7 @@ public static Link loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } link.context = context; link.rawValue = json; @@ -180,8 +180,8 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { links.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return links; + } + return links; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -205,7 +205,7 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { links.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -404,9 +404,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -419,9 +419,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -600,9 +600,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -615,9 +615,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -793,9 +793,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -808,9 +808,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReactions(String nodeId, APIContext context) { + public APIRequestGetReactions(String nodeId, APIContext context) { super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS)); } @@ -1044,9 +1044,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1059,9 +1059,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -1587,9 +1587,9 @@ public Link execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1602,9 +1602,9 @@ public Link apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LiveEncoder.java b/src/main/java/com/facebook/ads/sdk/LiveEncoder.java index d115054c..a7ab2ed1 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveEncoder.java +++ b/src/main/java/com/facebook/ads/sdk/LiveEncoder.java @@ -157,7 +157,7 @@ public static LiveEncoder loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } liveEncoder.context = context; liveEncoder.rawValue = json; @@ -178,8 +178,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveEncoders.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return liveEncoders; + } + return liveEncoders; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -203,7 +203,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveEncoders.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -416,9 +416,9 @@ public LiveEncoder execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -431,9 +431,9 @@ public LiveEncoder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateTelemetry(String nodeId, APIContext context) { + public APIRequestCreateTelemetry(String nodeId, APIContext context) { super(context, nodeId, "/telemetry", "POST", Arrays.asList(PARAMS)); } @@ -777,9 +777,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -792,9 +792,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -892,9 +892,9 @@ public LiveEncoder execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -907,9 +907,9 @@ public LiveEncoder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1093,9 +1093,9 @@ public LiveEncoder execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1108,9 +1108,9 @@ public LiveEncoder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LiveVideo.java b/src/main/java/com/facebook/ads/sdk/LiveVideo.java index 1a4937f1..e1a62fd0 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveVideo.java +++ b/src/main/java/com/facebook/ads/sdk/LiveVideo.java @@ -189,7 +189,7 @@ public static LiveVideo loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } liveVideo.context = context; liveVideo.rawValue = json; @@ -210,8 +210,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return liveVideos; + } + return liveVideos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -235,7 +235,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -579,9 +579,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -594,9 +594,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBlockedUsers(String nodeId, APIContext context) { + public APIRequestGetBlockedUsers(String nodeId, APIContext context) { super(context, nodeId, "/blocked_users", "GET", Arrays.asList(PARAMS)); } @@ -1132,9 +1132,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1147,9 +1147,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -1567,9 +1567,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1582,9 +1582,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCrosspostSharedPages(String nodeId, APIContext context) { + public APIRequestGetCrosspostSharedPages(String nodeId, APIContext context) { super(context, nodeId, "/crosspost_shared_pages", "GET", Arrays.asList(PARAMS)); } @@ -2664,9 +2664,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2679,9 +2679,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCrosspostedBroadcasts(String nodeId, APIContext context) { + public APIRequestGetCrosspostedBroadcasts(String nodeId, APIContext context) { super(context, nodeId, "/crossposted_broadcasts", "GET", Arrays.asList(PARAMS)); } @@ -2962,9 +2962,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2977,9 +2977,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetErrors(String nodeId, APIContext context) { + public APIRequestGetErrors(String nodeId, APIContext context) { super(context, nodeId, "/errors", "GET", Arrays.asList(PARAMS)); } @@ -3101,9 +3101,9 @@ public LiveVideoInputStream execute(Map extraParams) throws APIE public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3116,9 +3116,9 @@ public LiveVideoInputStream apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateInputStream(String nodeId, APIContext context) { + public APIRequestCreateInputStream(String nodeId, APIContext context) { super(context, nodeId, "/input_streams", "POST", Arrays.asList(PARAMS)); } @@ -3216,9 +3216,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3231,9 +3231,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -3404,9 +3404,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3419,9 +3419,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPolls(String nodeId, APIContext context) { + public APIRequestGetPolls(String nodeId, APIContext context) { super(context, nodeId, "/polls", "GET", Arrays.asList(PARAMS)); } @@ -3564,9 +3564,9 @@ public VideoPoll execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3579,9 +3579,9 @@ public VideoPoll apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePoll(String nodeId, APIContext context) { + public APIRequestCreatePoll(String nodeId, APIContext context) { super(context, nodeId, "/polls", "POST", Arrays.asList(PARAMS)); } @@ -3739,9 +3739,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3754,9 +3754,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReactions(String nodeId, APIContext context) { + public APIRequestGetReactions(String nodeId, APIContext context) { super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS)); } @@ -3929,9 +3929,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3944,9 +3944,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -4061,9 +4061,9 @@ public LiveVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4076,9 +4076,9 @@ public LiveVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -4394,9 +4394,9 @@ public LiveVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4409,9 +4409,9 @@ public LiveVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LiveVideoAdBreakConfig.java b/src/main/java/com/facebook/ads/sdk/LiveVideoAdBreakConfig.java index 54b8b633..a21d5eb4 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveVideoAdBreakConfig.java +++ b/src/main/java/com/facebook/ads/sdk/LiveVideoAdBreakConfig.java @@ -96,7 +96,7 @@ public static LiveVideoAdBreakConfig loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } liveVideoAdBreakConfig.context = context; liveVideoAdBreakConfig.rawValue = json; @@ -117,8 +117,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoAdBreakConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return liveVideoAdBreakConfigs; + } + return liveVideoAdBreakConfigs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -142,7 +142,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoAdBreakConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LiveVideoError.java b/src/main/java/com/facebook/ads/sdk/LiveVideoError.java index 5ead6007..9426bfcb 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveVideoError.java +++ b/src/main/java/com/facebook/ads/sdk/LiveVideoError.java @@ -145,7 +145,7 @@ public static LiveVideoError loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } liveVideoError.context = context; liveVideoError.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoErrors.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return liveVideoErrors; + } + return liveVideoErrors; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoErrors.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -338,9 +338,9 @@ public LiveVideoError execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -353,9 +353,9 @@ public LiveVideoError apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LiveVideoInputStream.java b/src/main/java/com/facebook/ads/sdk/LiveVideoInputStream.java index b918eb19..3797b016 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveVideoInputStream.java +++ b/src/main/java/com/facebook/ads/sdk/LiveVideoInputStream.java @@ -153,7 +153,7 @@ public static LiveVideoInputStream loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } liveVideoInputStream.context = context; liveVideoInputStream.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoInputStreams.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return liveVideoInputStreams; + } + return liveVideoInputStreams; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoInputStreams.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -370,9 +370,9 @@ public LiveVideoInputStream execute(Map extraParams) throws APIE public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -385,9 +385,9 @@ public LiveVideoInputStream apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/LiveVideoTargeting.java b/src/main/java/com/facebook/ads/sdk/LiveVideoTargeting.java index 222c24e5..c20a3808 100644 --- a/src/main/java/com/facebook/ads/sdk/LiveVideoTargeting.java +++ b/src/main/java/com/facebook/ads/sdk/LiveVideoTargeting.java @@ -84,7 +84,7 @@ public static LiveVideoTargeting loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } liveVideoTargeting.context = context; liveVideoTargeting.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoTargetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return liveVideoTargetings; + } + return liveVideoTargetings; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { liveVideoTargetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Location.java b/src/main/java/com/facebook/ads/sdk/Location.java index caba1421..aed9573b 100644 --- a/src/main/java/com/facebook/ads/sdk/Location.java +++ b/src/main/java/com/facebook/ads/sdk/Location.java @@ -102,7 +102,7 @@ public static Location loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } location.context = context; location.rawValue = json; @@ -123,8 +123,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { locations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return locations; + } + return locations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -148,7 +148,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { locations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/LookalikeSpec.java b/src/main/java/com/facebook/ads/sdk/LookalikeSpec.java index f4b9b8a6..0a690dac 100644 --- a/src/main/java/com/facebook/ads/sdk/LookalikeSpec.java +++ b/src/main/java/com/facebook/ads/sdk/LookalikeSpec.java @@ -100,7 +100,7 @@ public static LookalikeSpec loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } lookalikeSpec.context = context; lookalikeSpec.rawValue = json; @@ -121,8 +121,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { lookalikeSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return lookalikeSpecs; + } + return lookalikeSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -146,7 +146,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { lookalikeSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/MailingAddress.java b/src/main/java/com/facebook/ads/sdk/MailingAddress.java index 140d9178..589c8464 100644 --- a/src/main/java/com/facebook/ads/sdk/MailingAddress.java +++ b/src/main/java/com/facebook/ads/sdk/MailingAddress.java @@ -151,7 +151,7 @@ public static MailingAddress loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } mailingAddress.context = context; mailingAddress.rawValue = json; @@ -172,8 +172,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { mailingAddresss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return mailingAddresss; + } + return mailingAddresss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -197,7 +197,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { mailingAddresss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -362,9 +362,9 @@ public MailingAddress execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -377,9 +377,9 @@ public MailingAddress apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/MeasurementUploadEvent.java b/src/main/java/com/facebook/ads/sdk/MeasurementUploadEvent.java index 7c746174..56af0d3a 100644 --- a/src/main/java/com/facebook/ads/sdk/MeasurementUploadEvent.java +++ b/src/main/java/com/facebook/ads/sdk/MeasurementUploadEvent.java @@ -155,7 +155,7 @@ public static MeasurementUploadEvent loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } measurementUploadEvent.context = context; measurementUploadEvent.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { measurementUploadEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return measurementUploadEvents; + } + return measurementUploadEvents; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { measurementUploadEvents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -380,9 +380,9 @@ public MeasurementUploadEvent execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -395,9 +395,9 @@ public MeasurementUploadEvent apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -563,9 +563,9 @@ public MeasurementUploadEvent execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -578,9 +578,9 @@ public MeasurementUploadEvent apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/MediaFingerprint.java b/src/main/java/com/facebook/ads/sdk/MediaFingerprint.java index 18bc7003..f0f6bced 100644 --- a/src/main/java/com/facebook/ads/sdk/MediaFingerprint.java +++ b/src/main/java/com/facebook/ads/sdk/MediaFingerprint.java @@ -149,7 +149,7 @@ public static MediaFingerprint loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } mediaFingerprint.context = context; mediaFingerprint.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { mediaFingerprints.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return mediaFingerprints; + } + return mediaFingerprints; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { mediaFingerprints.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -349,9 +349,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -364,9 +364,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -460,9 +460,9 @@ public MediaFingerprint execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -475,9 +475,9 @@ public MediaFingerprint apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/MessagingFeatureReview.java b/src/main/java/com/facebook/ads/sdk/MessagingFeatureReview.java index 47ab8e4f..a708a4fb 100644 --- a/src/main/java/com/facebook/ads/sdk/MessagingFeatureReview.java +++ b/src/main/java/com/facebook/ads/sdk/MessagingFeatureReview.java @@ -80,7 +80,7 @@ public static MessagingFeatureReview loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } messagingFeatureReview.context = context; messagingFeatureReview.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messagingFeatureReviews.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return messagingFeatureReviews; + } + return messagingFeatureReviews; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messagingFeatureReviews.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java b/src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java index 2b17a63b..7fba2a36 100644 --- a/src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java +++ b/src/main/java/com/facebook/ads/sdk/MessengerDestinationPageWelcomeMessage.java @@ -147,7 +147,7 @@ public static MessengerDestinationPageWelcomeMessage loadJSON(String json, APICo context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } messengerDestinationPageWelcomeMessage.context = context; messengerDestinationPageWelcomeMessage.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse( arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messengerDestinationPageWelcomeMessages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return messengerDestinationPageWelcomeMessages; + } + return messengerDestinationPageWelcomeMessages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse( arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messengerDestinationPageWelcomeMessages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -345,9 +345,9 @@ public MessengerDestinationPageWelcomeMessage execute(Map extraP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -360,9 +360,9 @@ public MessengerDestinationPageWelcomeMessage apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/MessengerPlatformReferral.java b/src/main/java/com/facebook/ads/sdk/MessengerPlatformReferral.java index ed256810..bc5ca00a 100644 --- a/src/main/java/com/facebook/ads/sdk/MessengerPlatformReferral.java +++ b/src/main/java/com/facebook/ads/sdk/MessengerPlatformReferral.java @@ -145,7 +145,7 @@ public static MessengerPlatformReferral loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } messengerPlatformReferral.context = context; messengerPlatformReferral.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messengerPlatformReferrals.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return messengerPlatformReferrals; + } + return messengerPlatformReferrals; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messengerPlatformReferrals.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -338,9 +338,9 @@ public MessengerPlatformReferral execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -353,9 +353,9 @@ public MessengerPlatformReferral apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/MessengerProfile.java b/src/main/java/com/facebook/ads/sdk/MessengerProfile.java index 4acfd41a..05c91b0d 100644 --- a/src/main/java/com/facebook/ads/sdk/MessengerProfile.java +++ b/src/main/java/com/facebook/ads/sdk/MessengerProfile.java @@ -94,7 +94,7 @@ public static MessengerProfile loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } messengerProfile.context = context; messengerProfile.rawValue = json; @@ -115,8 +115,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messengerProfiles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return messengerProfiles; + } + return messengerProfiles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -140,7 +140,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { messengerProfiles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/MinimumBudget.java b/src/main/java/com/facebook/ads/sdk/MinimumBudget.java index f6ec423e..51327f81 100644 --- a/src/main/java/com/facebook/ads/sdk/MinimumBudget.java +++ b/src/main/java/com/facebook/ads/sdk/MinimumBudget.java @@ -86,7 +86,7 @@ public static MinimumBudget loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } minimumBudget.context = context; minimumBudget.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { minimumBudgets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return minimumBudgets; + } + return minimumBudgets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { minimumBudgets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/MusicVideoCopyright.java b/src/main/java/com/facebook/ads/sdk/MusicVideoCopyright.java index c9677e91..eb8be93d 100644 --- a/src/main/java/com/facebook/ads/sdk/MusicVideoCopyright.java +++ b/src/main/java/com/facebook/ads/sdk/MusicVideoCopyright.java @@ -161,7 +161,7 @@ public static MusicVideoCopyright loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } musicVideoCopyright.context = context; musicVideoCopyright.rawValue = json; @@ -182,8 +182,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { musicVideoCopyrights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return musicVideoCopyrights; + } + return musicVideoCopyrights; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -207,7 +207,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { musicVideoCopyrights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -397,9 +397,9 @@ public MusicVideoCopyright execute(Map extraParams) throws APIEx public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -412,9 +412,9 @@ public MusicVideoCopyright apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/NativeOffer.java b/src/main/java/com/facebook/ads/sdk/NativeOffer.java index 6e046050..3a46475a 100644 --- a/src/main/java/com/facebook/ads/sdk/NativeOffer.java +++ b/src/main/java/com/facebook/ads/sdk/NativeOffer.java @@ -187,7 +187,7 @@ public static NativeOffer loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } nativeOffer.context = context; nativeOffer.rawValue = json; @@ -208,8 +208,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nativeOffers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return nativeOffers; + } + return nativeOffers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -233,7 +233,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nativeOffers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -476,9 +476,9 @@ public NativeOffer execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -491,9 +491,9 @@ public NativeOffer apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCode(String nodeId, APIContext context) { + public APIRequestCreateCode(String nodeId, APIContext context) { super(context, nodeId, "/codes", "POST", Arrays.asList(PARAMS)); } @@ -612,9 +612,9 @@ public NativeOffer execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -627,9 +627,9 @@ public NativeOffer apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateNativeOfferView(String nodeId, APIContext context) { + public APIRequestCreateNativeOfferView(String nodeId, APIContext context) { super(context, nodeId, "/nativeofferviews", "POST", Arrays.asList(PARAMS)); } @@ -837,9 +837,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -852,9 +852,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetViews(String nodeId, APIContext context) { + public APIRequestGetViews(String nodeId, APIContext context) { super(context, nodeId, "/views", "GET", Arrays.asList(PARAMS)); } @@ -988,9 +988,9 @@ public NativeOffer execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1003,9 +1003,9 @@ public NativeOffer apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/NativeOfferDiscount.java b/src/main/java/com/facebook/ads/sdk/NativeOfferDiscount.java index 702f8e02..44dada6e 100644 --- a/src/main/java/com/facebook/ads/sdk/NativeOfferDiscount.java +++ b/src/main/java/com/facebook/ads/sdk/NativeOfferDiscount.java @@ -88,7 +88,7 @@ public static NativeOfferDiscount loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } nativeOfferDiscount.context = context; nativeOfferDiscount.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nativeOfferDiscounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return nativeOfferDiscounts; + } + return nativeOfferDiscounts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nativeOfferDiscounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/NativeOfferView.java b/src/main/java/com/facebook/ads/sdk/NativeOfferView.java index 3f39161e..4a7ea7cd 100644 --- a/src/main/java/com/facebook/ads/sdk/NativeOfferView.java +++ b/src/main/java/com/facebook/ads/sdk/NativeOfferView.java @@ -141,7 +141,7 @@ public static NativeOfferView loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } nativeOfferView.context = context; nativeOfferView.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nativeOfferViews.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return nativeOfferViews; + } + return nativeOfferViews; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nativeOfferViews.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -367,9 +367,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -382,9 +382,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhotos(String nodeId, APIContext context) { + public APIRequestGetPhotos(String nodeId, APIContext context) { super(context, nodeId, "/photos", "GET", Arrays.asList(PARAMS)); } @@ -666,9 +666,9 @@ public NativeOfferView execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -681,9 +681,9 @@ public NativeOfferView apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePhoto(String nodeId, APIContext context) { + public APIRequestCreatePhoto(String nodeId, APIContext context) { super(context, nodeId, "/photos", "POST", Arrays.asList(PARAMS)); } @@ -821,9 +821,9 @@ public NativeOfferView execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -836,9 +836,9 @@ public NativeOfferView apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVideo(String nodeId, APIContext context) { + public APIRequestCreateVideo(String nodeId, APIContext context) { super(context, nodeId, "/videos", "POST", Arrays.asList(PARAMS)); } @@ -937,9 +937,9 @@ public NativeOfferView execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -952,9 +952,9 @@ public NativeOfferView apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1065,9 +1065,9 @@ public NativeOfferView execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1080,9 +1080,9 @@ public NativeOfferView apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/NullNode.java b/src/main/java/com/facebook/ads/sdk/NullNode.java index 230921ba..b244c0f6 100644 --- a/src/main/java/com/facebook/ads/sdk/NullNode.java +++ b/src/main/java/com/facebook/ads/sdk/NullNode.java @@ -76,7 +76,7 @@ public static NullNode loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } nullNode.context = context; nullNode.rawValue = json; @@ -97,8 +97,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nullNodes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return nullNodes; + } + return nullNodes; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -122,7 +122,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { nullNodes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/OfflineConversionDataSet.java b/src/main/java/com/facebook/ads/sdk/OfflineConversionDataSet.java index c3a48de2..d2e1a2bc 100644 --- a/src/main/java/com/facebook/ads/sdk/OfflineConversionDataSet.java +++ b/src/main/java/com/facebook/ads/sdk/OfflineConversionDataSet.java @@ -175,7 +175,7 @@ public static OfflineConversionDataSet loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } offlineConversionDataSet.context = context; offlineConversionDataSet.rawValue = json; @@ -196,8 +196,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { offlineConversionDataSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return offlineConversionDataSets; + } + return offlineConversionDataSets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -221,7 +221,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { offlineConversionDataSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -543,9 +543,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -558,9 +558,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -1075,9 +1075,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1090,9 +1090,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdAccount(String nodeId, APIContext context) { + public APIRequestCreateAdAccount(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "POST", Arrays.asList(PARAMS)); } @@ -1216,9 +1216,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1231,9 +1231,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -1450,9 +1450,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1465,9 +1465,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAgency(String nodeId, APIContext context) { + public APIRequestCreateAgency(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "POST", Arrays.asList(PARAMS)); } @@ -1618,9 +1618,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1633,9 +1633,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAudiences(String nodeId, APIContext context) { + public APIRequestGetAudiences(String nodeId, APIContext context) { super(context, nodeId, "/audiences", "GET", Arrays.asList(PARAMS)); } @@ -1992,9 +1992,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2007,9 +2007,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomConversions(String nodeId, APIContext context) { + public APIRequestGetCustomConversions(String nodeId, APIContext context) { super(context, nodeId, "/customconversions", "GET", Arrays.asList(PARAMS)); } @@ -2240,9 +2240,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2255,9 +2255,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateEvent(String nodeId, APIContext context) { + public APIRequestCreateEvent(String nodeId, APIContext context) { super(context, nodeId, "/events", "POST", Arrays.asList(PARAMS)); } @@ -2388,9 +2388,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2403,9 +2403,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetStats(String nodeId, APIContext context) { + public APIRequestGetStats(String nodeId, APIContext context) { super(context, nodeId, "/stats", "GET", Arrays.asList(PARAMS)); } @@ -2551,9 +2551,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2566,9 +2566,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUploads(String nodeId, APIContext context) { + public APIRequestGetUploads(String nodeId, APIContext context) { super(context, nodeId, "/uploads", "GET", Arrays.asList(PARAMS)); } @@ -2689,9 +2689,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2704,9 +2704,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUpload(String nodeId, APIContext context) { + public APIRequestCreateUpload(String nodeId, APIContext context) { super(context, nodeId, "/uploads", "POST", Arrays.asList(PARAMS)); } @@ -2799,9 +2799,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2814,9 +2814,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUser(String nodeId, APIContext context) { + public APIRequestCreateUser(String nodeId, APIContext context) { super(context, nodeId, "/users", "POST", Arrays.asList(PARAMS)); } @@ -2914,9 +2914,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2929,9 +2929,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateValidate(String nodeId, APIContext context) { + public APIRequestCreateValidate(String nodeId, APIContext context) { super(context, nodeId, "/validate", "POST", Arrays.asList(PARAMS)); } @@ -3032,9 +3032,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3047,9 +3047,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -3156,9 +3156,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3171,9 +3171,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -3404,9 +3404,9 @@ public OfflineConversionDataSet execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3419,9 +3419,9 @@ public OfflineConversionDataSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/OfflineTermsOfService.java b/src/main/java/com/facebook/ads/sdk/OfflineTermsOfService.java index 2ad6f64e..89141ee0 100644 --- a/src/main/java/com/facebook/ads/sdk/OfflineTermsOfService.java +++ b/src/main/java/com/facebook/ads/sdk/OfflineTermsOfService.java @@ -141,7 +141,7 @@ public static OfflineTermsOfService loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } offlineTermsOfService.context = context; offlineTermsOfService.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { offlineTermsOfServices.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return offlineTermsOfServices; + } + return offlineTermsOfServices; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { offlineTermsOfServices.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -327,9 +327,9 @@ public OfflineTermsOfService execute(Map extraParams) throws API public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -342,9 +342,9 @@ public OfflineTermsOfService apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/OffsitePixel.java b/src/main/java/com/facebook/ads/sdk/OffsitePixel.java index e099ec9d..7dce99af 100644 --- a/src/main/java/com/facebook/ads/sdk/OffsitePixel.java +++ b/src/main/java/com/facebook/ads/sdk/OffsitePixel.java @@ -147,7 +147,7 @@ public static OffsitePixel loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } offsitePixel.context = context; offsitePixel.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { offsitePixels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return offsitePixels; + } + return offsitePixels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { offsitePixels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -346,9 +346,9 @@ public OffsitePixel execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -361,9 +361,9 @@ public OffsitePixel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/OpenGraphContext.java b/src/main/java/com/facebook/ads/sdk/OpenGraphContext.java index 1e4d98a1..465e35b0 100644 --- a/src/main/java/com/facebook/ads/sdk/OpenGraphContext.java +++ b/src/main/java/com/facebook/ads/sdk/OpenGraphContext.java @@ -137,7 +137,7 @@ public static OpenGraphContext loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } openGraphContext.context = context; openGraphContext.rawValue = json; @@ -158,8 +158,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { openGraphContexts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return openGraphContexts; + } + return openGraphContexts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -183,7 +183,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { openGraphContexts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -380,9 +380,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -395,9 +395,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFriendsTaggedAt(String nodeId, APIContext context) { + public APIRequestGetFriendsTaggedAt(String nodeId, APIContext context) { super(context, nodeId, "/friends_tagged_at", "GET", Arrays.asList(PARAMS)); } @@ -956,9 +956,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -971,9 +971,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMusicListenFriends(String nodeId, APIContext context) { + public APIRequestGetMusicListenFriends(String nodeId, APIContext context) { super(context, nodeId, "/music_listen_friends", "GET", Arrays.asList(PARAMS)); } @@ -1532,9 +1532,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1547,9 +1547,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideoWatchFriends(String nodeId, APIContext context) { + public APIRequestGetVideoWatchFriends(String nodeId, APIContext context) { super(context, nodeId, "/video_watch_friends", "GET", Arrays.asList(PARAMS)); } @@ -2050,9 +2050,9 @@ public OpenGraphContext execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2065,9 +2065,9 @@ public OpenGraphContext apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/OpenGraphObject.java b/src/main/java/com/facebook/ads/sdk/OpenGraphObject.java index 5c4a33fa..b68b4f7f 100644 --- a/src/main/java/com/facebook/ads/sdk/OpenGraphObject.java +++ b/src/main/java/com/facebook/ads/sdk/OpenGraphObject.java @@ -177,7 +177,7 @@ public static OpenGraphObject loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } openGraphObject.context = context; openGraphObject.rawValue = json; @@ -198,8 +198,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { openGraphObjects.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return openGraphObjects; + } + return openGraphObjects; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -223,7 +223,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { openGraphObjects.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -445,9 +445,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -460,9 +460,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReactions(String nodeId, APIContext context) { + public APIRequestGetReactions(String nodeId, APIContext context) { super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS)); } @@ -656,9 +656,9 @@ public OpenGraphObject execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -671,9 +671,9 @@ public OpenGraphObject apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/OracleTransaction.java b/src/main/java/com/facebook/ads/sdk/OracleTransaction.java index 9ff124f9..cbaf7d15 100644 --- a/src/main/java/com/facebook/ads/sdk/OracleTransaction.java +++ b/src/main/java/com/facebook/ads/sdk/OracleTransaction.java @@ -173,7 +173,7 @@ public static OracleTransaction loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } oracleTransaction.context = context; oracleTransaction.rawValue = json; @@ -194,8 +194,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { oracleTransactions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return oracleTransactions; + } + return oracleTransactions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -219,7 +219,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { oracleTransactions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -436,9 +436,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -451,9 +451,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCampaigns(String nodeId, APIContext context) { + public APIRequestGetCampaigns(String nodeId, APIContext context) { super(context, nodeId, "/campaigns", "GET", Arrays.asList(PARAMS)); } @@ -598,9 +598,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -613,9 +613,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetData(String nodeId, APIContext context) { + public APIRequestGetData(String nodeId, APIContext context) { super(context, nodeId, "/data", "GET", Arrays.asList(PARAMS)); } @@ -737,9 +737,9 @@ public OracleTransaction execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -752,9 +752,9 @@ public OracleTransaction apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/OutcomePredictionPoint.java b/src/main/java/com/facebook/ads/sdk/OutcomePredictionPoint.java index ae93c385..3357b665 100644 --- a/src/main/java/com/facebook/ads/sdk/OutcomePredictionPoint.java +++ b/src/main/java/com/facebook/ads/sdk/OutcomePredictionPoint.java @@ -84,7 +84,7 @@ public static OutcomePredictionPoint loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } outcomePredictionPoint.context = context; outcomePredictionPoint.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { outcomePredictionPoints.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return outcomePredictionPoints; + } + return outcomePredictionPoints; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { outcomePredictionPoints.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Page.java b/src/main/java/com/facebook/ads/sdk/Page.java index bdaa970f..499f24fd 100644 --- a/src/main/java/com/facebook/ads/sdk/Page.java +++ b/src/main/java/com/facebook/ads/sdk/Page.java @@ -411,7 +411,7 @@ public static Page loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } page.context = context; page.rawValue = json; @@ -432,8 +432,8 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pages; + } + return pages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -457,7 +457,7 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -1655,9 +1655,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1670,9 +1670,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdsPosts(String nodeId, APIContext context) { + public APIRequestGetAdsPosts(String nodeId, APIContext context) { super(context, nodeId, "/ads_posts", "GET", Arrays.asList(PARAMS)); } @@ -2166,9 +2166,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2181,9 +2181,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAgencies(String nodeId, APIContext context) { + public APIRequestDeleteAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "DELETE", Arrays.asList(PARAMS)); } @@ -2293,9 +2293,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2308,9 +2308,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -2525,9 +2525,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2540,9 +2540,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAgency(String nodeId, APIContext context) { + public APIRequestCreateAgency(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "POST", Arrays.asList(PARAMS)); } @@ -2666,9 +2666,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2681,9 +2681,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAlbums(String nodeId, APIContext context) { + public APIRequestGetAlbums(String nodeId, APIContext context) { super(context, nodeId, "/albums", "GET", Arrays.asList(PARAMS)); } @@ -2942,9 +2942,9 @@ public Album execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2957,9 +2957,9 @@ public Album apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAlbum(String nodeId, APIContext context) { + public APIRequestCreateAlbum(String nodeId, APIContext context) { super(context, nodeId, "/albums", "POST", Arrays.asList(PARAMS)); } @@ -3122,9 +3122,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3137,9 +3137,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { + public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "DELETE", Arrays.asList(PARAMS)); } @@ -3240,9 +3240,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3255,9 +3255,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedUsers(String nodeId, APIContext context) { + public APIRequestGetAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "GET", Arrays.asList(PARAMS)); } @@ -3379,9 +3379,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3394,9 +3394,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAssignedUser(String nodeId, APIContext context) { + public APIRequestCreateAssignedUser(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "POST", Arrays.asList(PARAMS)); } @@ -3505,9 +3505,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3520,9 +3520,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteBlocked(String nodeId, APIContext context) { + public APIRequestDeleteBlocked(String nodeId, APIContext context) { super(context, nodeId, "/blocked", "DELETE", Arrays.asList(PARAMS)); } @@ -3654,9 +3654,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3669,9 +3669,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBlocked(String nodeId, APIContext context) { + public APIRequestGetBlocked(String nodeId, APIContext context) { super(context, nodeId, "/blocked", "GET", Arrays.asList(PARAMS)); } @@ -3857,9 +3857,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3872,9 +3872,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBlocked(String nodeId, APIContext context) { + public APIRequestCreateBlocked(String nodeId, APIContext context) { super(context, nodeId, "/blocked", "POST", Arrays.asList(PARAMS)); } @@ -4016,9 +4016,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4031,9 +4031,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCallToActions(String nodeId, APIContext context) { + public APIRequestGetCallToActions(String nodeId, APIContext context) { super(context, nodeId, "/call_to_actions", "GET", Arrays.asList(PARAMS)); } @@ -4254,9 +4254,9 @@ public APINodeList execute(Map extraParams) t public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4269,9 +4269,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCanvasElements(String nodeId, APIContext context) { + public APIRequestGetCanvasElements(String nodeId, APIContext context) { super(context, nodeId, "/canvas_elements", "GET", Arrays.asList(PARAMS)); } @@ -4376,9 +4376,9 @@ public CanvasBodyElement execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4391,9 +4391,9 @@ public CanvasBodyElement apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCanvasElement(String nodeId, APIContext context) { + public APIRequestCreateCanvasElement(String nodeId, APIContext context) { super(context, nodeId, "/canvas_elements", "POST", Arrays.asList(PARAMS)); } @@ -4591,9 +4591,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4606,9 +4606,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCanvases(String nodeId, APIContext context) { + public APIRequestGetCanvases(String nodeId, APIContext context) { super(context, nodeId, "/canvases", "GET", Arrays.asList(PARAMS)); } @@ -4789,9 +4789,9 @@ public Canvas execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4804,9 +4804,9 @@ public Canvas apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCanvase(String nodeId, APIContext context) { + public APIRequestCreateCanvase(String nodeId, APIContext context) { super(context, nodeId, "/canvases", "POST", Arrays.asList(PARAMS)); } @@ -4940,9 +4940,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4955,9 +4955,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteClaimedUrls(String nodeId, APIContext context) { + public APIRequestDeleteClaimedUrls(String nodeId, APIContext context) { super(context, nodeId, "/claimed_urls", "DELETE", Arrays.asList(PARAMS)); } @@ -5056,9 +5056,9 @@ public APINodeList execute(Map extraParams) throws APIExcep public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5071,9 +5071,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetClaimedUrls(String nodeId, APIContext context) { + public APIRequestGetClaimedUrls(String nodeId, APIContext context) { super(context, nodeId, "/claimed_urls", "GET", Arrays.asList(PARAMS)); } @@ -5210,9 +5210,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5225,9 +5225,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateClaimedUrl(String nodeId, APIContext context) { + public APIRequestCreateClaimedUrl(String nodeId, APIContext context) { super(context, nodeId, "/claimed_urls", "POST", Arrays.asList(PARAMS)); } @@ -5337,9 +5337,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5352,9 +5352,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetConversations(String nodeId, APIContext context) { + public APIRequestGetConversations(String nodeId, APIContext context) { super(context, nodeId, "/conversations", "GET", Arrays.asList(PARAMS)); } @@ -5571,9 +5571,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5586,9 +5586,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCopyrightManualClaim(String nodeId, APIContext context) { + public APIRequestCreateCopyrightManualClaim(String nodeId, APIContext context) { super(context, nodeId, "/copyright_manual_claims", "POST", Arrays.asList(PARAMS)); } @@ -5732,9 +5732,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5747,9 +5747,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCopyrightWhitelistedPartners(String nodeId, APIContext context) { + public APIRequestGetCopyrightWhitelistedPartners(String nodeId, APIContext context) { super(context, nodeId, "/copyright_whitelisted_partners", "GET", Arrays.asList(PARAMS)); } @@ -6051,9 +6051,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6066,9 +6066,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCrosspostWhitelistedPages(String nodeId, APIContext context) { + public APIRequestGetCrosspostWhitelistedPages(String nodeId, APIContext context) { super(context, nodeId, "/crosspost_whitelisted_pages", "GET", Arrays.asList(PARAMS)); } @@ -7123,9 +7123,9 @@ public APINodeList execute(Map extra public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7138,9 +7138,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomLabels(String nodeId, APIContext context) { + public APIRequestGetCustomLabels(String nodeId, APIContext context) { super(context, nodeId, "/custom_labels", "GET", Arrays.asList(PARAMS)); } @@ -7242,9 +7242,9 @@ public PageUserMessageThreadLabel execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7257,9 +7257,9 @@ public PageUserMessageThreadLabel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCustomLabel(String nodeId, APIContext context) { + public APIRequestCreateCustomLabel(String nodeId, APIContext context) { super(context, nodeId, "/custom_labels", "POST", Arrays.asList(PARAMS)); } @@ -7353,9 +7353,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7368,9 +7368,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteCustomUserSettings(String nodeId, APIContext context) { + public APIRequestDeleteCustomUserSettings(String nodeId, APIContext context) { super(context, nodeId, "/custom_user_settings", "DELETE", Arrays.asList(PARAMS)); } @@ -7474,9 +7474,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7489,9 +7489,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomUserSettings(String nodeId, APIContext context) { + public APIRequestGetCustomUserSettings(String nodeId, APIContext context) { super(context, nodeId, "/custom_user_settings", "GET", Arrays.asList(PARAMS)); } @@ -7599,9 +7599,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7614,9 +7614,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCustomUserSetting(String nodeId, APIContext context) { + public APIRequestCreateCustomUserSetting(String nodeId, APIContext context) { super(context, nodeId, "/custom_user_settings", "POST", Arrays.asList(PARAMS)); } @@ -7751,9 +7751,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -7766,9 +7766,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEvents(String nodeId, APIContext context) { + public APIRequestGetEvents(String nodeId, APIContext context) { super(context, nodeId, "/events", "GET", Arrays.asList(PARAMS)); } @@ -8141,9 +8141,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8156,9 +8156,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFeaturedVideosCollection(String nodeId, APIContext context) { + public APIRequestGetFeaturedVideosCollection(String nodeId, APIContext context) { super(context, nodeId, "/featured_videos_collection", "GET", Arrays.asList(PARAMS)); } @@ -8583,9 +8583,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8598,9 +8598,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFeed(String nodeId, APIContext context) { + public APIRequestGetFeed(String nodeId, APIContext context) { super(context, nodeId, "/feed", "GET", Arrays.asList(PARAMS)); } @@ -9214,9 +9214,9 @@ public PagePost execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9229,9 +9229,9 @@ public PagePost apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateFeed(String nodeId, APIContext context) { + public APIRequestCreateFeed(String nodeId, APIContext context) { super(context, nodeId, "/feed", "POST", Arrays.asList(PARAMS)); } @@ -10265,9 +10265,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -10280,9 +10280,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetGlobalBrandChildren(String nodeId, APIContext context) { + public APIRequestGetGlobalBrandChildren(String nodeId, APIContext context) { super(context, nodeId, "/global_brand_children", "GET", Arrays.asList(PARAMS)); } @@ -11375,9 +11375,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11390,9 +11390,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetIndexedVideos(String nodeId, APIContext context) { + public APIRequestGetIndexedVideos(String nodeId, APIContext context) { super(context, nodeId, "/indexed_videos", "GET", Arrays.asList(PARAMS)); } @@ -11772,9 +11772,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11787,9 +11787,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -11980,9 +11980,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11995,9 +11995,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInstagramAccounts(String nodeId, APIContext context) { + public APIRequestGetInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/instagram_accounts", "GET", Arrays.asList(PARAMS)); } @@ -12157,9 +12157,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -12172,9 +12172,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInstantArticles(String nodeId, APIContext context) { + public APIRequestGetInstantArticles(String nodeId, APIContext context) { super(context, nodeId, "/instant_articles", "GET", Arrays.asList(PARAMS)); } @@ -12337,9 +12337,9 @@ public InstantArticle execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -12352,9 +12352,9 @@ public InstantArticle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateInstantArticle(String nodeId, APIContext context) { + public APIRequestCreateInstantArticle(String nodeId, APIContext context) { super(context, nodeId, "/instant_articles", "POST", Arrays.asList(PARAMS)); } @@ -12482,9 +12482,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -12497,9 +12497,9 @@ public APINodeList apply(ResponseWrapper resu } } ); - }; + } - public APIRequestGetInstantArticlesInsights(String nodeId, APIContext context) { + public APIRequestGetInstantArticlesInsights(String nodeId, APIContext context) { super(context, nodeId, "/instant_articles_insights", "GET", Arrays.asList(PARAMS)); } @@ -12653,9 +12653,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -12668,9 +12668,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateInstantArticlesPublish(String nodeId, APIContext context) { + public APIRequestCreateInstantArticlesPublish(String nodeId, APIContext context) { super(context, nodeId, "/instant_articles_publish", "POST", Arrays.asList(PARAMS)); } @@ -12793,9 +12793,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -12808,9 +12808,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLeadGenForms(String nodeId, APIContext context) { + public APIRequestGetLeadGenForms(String nodeId, APIContext context) { super(context, nodeId, "/leadgen_forms", "GET", Arrays.asList(PARAMS)); } @@ -13066,9 +13066,9 @@ public LeadgenForm execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -13081,9 +13081,9 @@ public LeadgenForm apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLeadGenForm(String nodeId, APIContext context) { + public APIRequestCreateLeadGenForm(String nodeId, APIContext context) { super(context, nodeId, "/leadgen_forms", "POST", Arrays.asList(PARAMS)); } @@ -13432,9 +13432,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13447,9 +13447,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -14518,9 +14518,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14533,9 +14533,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLiveEncoders(String nodeId, APIContext context) { + public APIRequestGetLiveEncoders(String nodeId, APIContext context) { super(context, nodeId, "/live_encoders", "GET", Arrays.asList(PARAMS)); } @@ -14704,9 +14704,9 @@ public LiveEncoder execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -14719,9 +14719,9 @@ public LiveEncoder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLiveEncoder(String nodeId, APIContext context) { + public APIRequestCreateLiveEncoder(String nodeId, APIContext context) { super(context, nodeId, "/live_encoders", "POST", Arrays.asList(PARAMS)); } @@ -14862,9 +14862,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14877,9 +14877,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLiveVideos(String nodeId, APIContext context) { + public APIRequestGetLiveVideos(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "GET", Arrays.asList(PARAMS)); } @@ -15198,9 +15198,9 @@ public LiveVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -15213,9 +15213,9 @@ public LiveVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLiveVideo(String nodeId, APIContext context) { + public APIRequestCreateLiveVideo(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "POST", Arrays.asList(PARAMS)); } @@ -15513,9 +15513,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15528,9 +15528,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteLocations(String nodeId, APIContext context) { + public APIRequestDeleteLocations(String nodeId, APIContext context) { super(context, nodeId, "/locations", "DELETE", Arrays.asList(PARAMS)); } @@ -15769,9 +15769,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15784,9 +15784,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLocations(String nodeId, APIContext context) { + public APIRequestGetLocations(String nodeId, APIContext context) { super(context, nodeId, "/locations", "GET", Arrays.asList(PARAMS)); } @@ -16855,9 +16855,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -16870,9 +16870,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLocation(String nodeId, APIContext context) { + public APIRequestCreateLocation(String nodeId, APIContext context) { super(context, nodeId, "/locations", "POST", Arrays.asList(PARAMS)); } @@ -17080,9 +17080,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17095,9 +17095,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMediaFingerprints(String nodeId, APIContext context) { + public APIRequestGetMediaFingerprints(String nodeId, APIContext context) { super(context, nodeId, "/media_fingerprints", "GET", Arrays.asList(PARAMS)); } @@ -17252,9 +17252,9 @@ public MediaFingerprint execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -17267,9 +17267,9 @@ public MediaFingerprint apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMediaFingerprint(String nodeId, APIContext context) { + public APIRequestCreateMediaFingerprint(String nodeId, APIContext context) { super(context, nodeId, "/media_fingerprints", "POST", Arrays.asList(PARAMS)); } @@ -17390,9 +17390,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -17405,9 +17405,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMessageAttachment(String nodeId, APIContext context) { + public APIRequestCreateMessageAttachment(String nodeId, APIContext context) { super(context, nodeId, "/message_attachments", "POST", Arrays.asList(PARAMS)); } @@ -17510,9 +17510,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -17525,9 +17525,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMessage(String nodeId, APIContext context) { + public APIRequestCreateMessage(String nodeId, APIContext context) { super(context, nodeId, "/messages", "POST", Arrays.asList(PARAMS)); } @@ -17675,9 +17675,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17690,9 +17690,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMessagingFeatureReview(String nodeId, APIContext context) { + public APIRequestGetMessagingFeatureReview(String nodeId, APIContext context) { super(context, nodeId, "/messaging_feature_review", "GET", Arrays.asList(PARAMS)); } @@ -17799,9 +17799,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17814,9 +17814,9 @@ public APINodeList apply(ResponseWrapper } } ); - }; + } - public APIRequestGetMessengerAdsPageWelcomeMessages(String nodeId, APIContext context) { + public APIRequestGetMessengerAdsPageWelcomeMessages(String nodeId, APIContext context) { super(context, nodeId, "/messenger_ads_page_welcome_messages", "GET", Arrays.asList(PARAMS)); } @@ -17946,9 +17946,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17961,9 +17961,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteMessengerProfile(String nodeId, APIContext context) { + public APIRequestDeleteMessengerProfile(String nodeId, APIContext context) { super(context, nodeId, "/messenger_profile", "DELETE", Arrays.asList(PARAMS)); } @@ -18068,9 +18068,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -18083,9 +18083,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMessengerProfile(String nodeId, APIContext context) { + public APIRequestGetMessengerProfile(String nodeId, APIContext context) { super(context, nodeId, "/messenger_profile", "GET", Arrays.asList(PARAMS)); } @@ -18244,9 +18244,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -18259,9 +18259,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMessengerProfile(String nodeId, APIContext context) { + public APIRequestCreateMessengerProfile(String nodeId, APIContext context) { super(context, nodeId, "/messenger_profile", "POST", Arrays.asList(PARAMS)); } @@ -18451,9 +18451,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -18466,9 +18466,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetNativeOffers(String nodeId, APIContext context) { + public APIRequestGetNativeOffers(String nodeId, APIContext context) { super(context, nodeId, "/nativeoffers", "GET", Arrays.asList(PARAMS)); } @@ -18758,9 +18758,9 @@ public NativeOffer execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -18773,9 +18773,9 @@ public NativeOffer apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateNativeOffer(String nodeId, APIContext context) { + public APIRequestCreateNativeOffer(String nodeId, APIContext context) { super(context, nodeId, "/nativeoffers", "POST", Arrays.asList(PARAMS)); } @@ -19009,9 +19009,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -19024,9 +19024,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateNlpConfig(String nodeId, APIContext context) { + public APIRequestCreateNlpConfig(String nodeId, APIContext context) { super(context, nodeId, "/nlp_configs", "POST", Arrays.asList(PARAMS)); } @@ -19168,9 +19168,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -19183,9 +19183,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePageAboutStory(String nodeId, APIContext context) { + public APIRequestCreatePageAboutStory(String nodeId, APIContext context) { super(context, nodeId, "/page_about_story", "POST", Arrays.asList(PARAMS)); } @@ -19322,9 +19322,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19337,9 +19337,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPageBackedInstagramAccounts(String nodeId, APIContext context) { + public APIRequestGetPageBackedInstagramAccounts(String nodeId, APIContext context) { super(context, nodeId, "/page_backed_instagram_accounts", "GET", Arrays.asList(PARAMS)); } @@ -19489,9 +19489,9 @@ public InstagramUser execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -19504,9 +19504,9 @@ public InstagramUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePageBackedInstagramAccount(String nodeId, APIContext context) { + public APIRequestCreatePageBackedInstagramAccount(String nodeId, APIContext context) { super(context, nodeId, "/page_backed_instagram_accounts", "POST", Arrays.asList(PARAMS)); } @@ -19595,9 +19595,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -19610,9 +19610,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePageWhatsappNumberVerification(String nodeId, APIContext context) { + public APIRequestCreatePageWhatsappNumberVerification(String nodeId, APIContext context) { super(context, nodeId, "/page_whatsapp_number_verification", "POST", Arrays.asList(PARAMS)); } @@ -19712,9 +19712,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -19727,9 +19727,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePassThreadControl(String nodeId, APIContext context) { + public APIRequestCreatePassThreadControl(String nodeId, APIContext context) { super(context, nodeId, "/pass_thread_control", "POST", Arrays.asList(PARAMS)); } @@ -19842,9 +19842,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19857,9 +19857,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPersonas(String nodeId, APIContext context) { + public APIRequestGetPersonas(String nodeId, APIContext context) { super(context, nodeId, "/personas", "GET", Arrays.asList(PARAMS)); } @@ -19969,9 +19969,9 @@ public Persona execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -19984,9 +19984,9 @@ public Persona apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePersona(String nodeId, APIContext context) { + public APIRequestCreatePersona(String nodeId, APIContext context) { super(context, nodeId, "/personas", "POST", Arrays.asList(PARAMS)); } @@ -20113,9 +20113,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -20128,9 +20128,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhotos(String nodeId, APIContext context) { + public APIRequestGetPhotos(String nodeId, APIContext context) { super(context, nodeId, "/photos", "GET", Arrays.asList(PARAMS)); } @@ -20484,9 +20484,9 @@ public Photo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -20499,9 +20499,9 @@ public Photo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePhoto(String nodeId, APIContext context) { + public APIRequestCreatePhoto(String nodeId, APIContext context) { super(context, nodeId, "/photos", "POST", Arrays.asList(PARAMS)); } @@ -21004,9 +21004,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -21019,9 +21019,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -21231,9 +21231,9 @@ public ProfilePictureSource execute(Map extraParams) throws APIE public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -21246,9 +21246,9 @@ public ProfilePictureSource apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePicture(String nodeId, APIContext context) { + public APIRequestCreatePicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "POST", Arrays.asList(PARAMS)); } @@ -21515,9 +21515,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -21530,9 +21530,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPlaceTopics(String nodeId, APIContext context) { + public APIRequestGetPlaceTopics(String nodeId, APIContext context) { super(context, nodeId, "/place_topics", "GET", Arrays.asList(PARAMS)); } @@ -21734,9 +21734,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -21749,9 +21749,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPosts(String nodeId, APIContext context) { + public APIRequestGetPosts(String nodeId, APIContext context) { super(context, nodeId, "/posts", "GET", Arrays.asList(PARAMS)); } @@ -22268,9 +22268,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -22283,9 +22283,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -22456,9 +22456,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -22471,9 +22471,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePromotion(String nodeId, APIContext context) { + public APIRequestCreatePromotion(String nodeId, APIContext context) { super(context, nodeId, "/promotions", "POST", Arrays.asList(PARAMS)); } @@ -22667,9 +22667,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -22682,9 +22682,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPublishedPosts(String nodeId, APIContext context) { + public APIRequestGetPublishedPosts(String nodeId, APIContext context) { super(context, nodeId, "/published_posts", "GET", Arrays.asList(PARAMS)); } @@ -23167,9 +23167,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -23182,9 +23182,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRatings(String nodeId, APIContext context) { + public APIRequestGetRatings(String nodeId, APIContext context) { super(context, nodeId, "/ratings", "GET", Arrays.asList(PARAMS)); } @@ -23329,9 +23329,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -23344,9 +23344,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateRequestThreadControl(String nodeId, APIContext context) { + public APIRequestCreateRequestThreadControl(String nodeId, APIContext context) { super(context, nodeId, "/request_thread_control", "POST", Arrays.asList(PARAMS)); } @@ -23508,9 +23508,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -23523,9 +23523,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRoles(String nodeId, APIContext context) { + public APIRequestGetRoles(String nodeId, APIContext context) { super(context, nodeId, "/roles", "GET", Arrays.asList(PARAMS)); } @@ -24054,9 +24054,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24069,9 +24069,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRtbDynamicPosts(String nodeId, APIContext context) { + public APIRequestGetRtbDynamicPosts(String nodeId, APIContext context) { super(context, nodeId, "/rtb_dynamic_posts", "GET", Arrays.asList(PARAMS)); } @@ -24289,9 +24289,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24304,9 +24304,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetScheduledPosts(String nodeId, APIContext context) { + public APIRequestGetScheduledPosts(String nodeId, APIContext context) { super(context, nodeId, "/scheduled_posts", "GET", Arrays.asList(PARAMS)); } @@ -24871,9 +24871,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -24886,9 +24886,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSecondaryReceivers(String nodeId, APIContext context) { + public APIRequestGetSecondaryReceivers(String nodeId, APIContext context) { super(context, nodeId, "/secondary_receivers", "GET", Arrays.asList(PARAMS)); } @@ -25677,9 +25677,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -25692,9 +25692,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSettings(String nodeId, APIContext context) { + public APIRequestGetSettings(String nodeId, APIContext context) { super(context, nodeId, "/settings", "GET", Arrays.asList(PARAMS)); } @@ -25796,9 +25796,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -25811,9 +25811,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSetting(String nodeId, APIContext context) { + public APIRequestCreateSetting(String nodeId, APIContext context) { super(context, nodeId, "/settings", "POST", Arrays.asList(PARAMS)); } @@ -25909,9 +25909,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -25924,9 +25924,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteSubscribedApps(String nodeId, APIContext context) { + public APIRequestDeleteSubscribedApps(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_apps", "DELETE", Arrays.asList(PARAMS)); } @@ -26113,9 +26113,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -26128,9 +26128,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSubscribedApps(String nodeId, APIContext context) { + public APIRequestGetSubscribedApps(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_apps", "GET", Arrays.asList(PARAMS)); } @@ -26918,9 +26918,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -26933,9 +26933,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateSubscribedApp(String nodeId, APIContext context) { + public APIRequestCreateSubscribedApp(String nodeId, APIContext context) { super(context, nodeId, "/subscribed_apps", "POST", Arrays.asList(PARAMS)); } @@ -27032,9 +27032,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -27047,9 +27047,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteTabs(String nodeId, APIContext context) { + public APIRequestDeleteTabs(String nodeId, APIContext context) { super(context, nodeId, "/tabs", "DELETE", Arrays.asList(PARAMS)); } @@ -27152,9 +27152,9 @@ public APINodeList execute(Map extraParams) throws APIExcep public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -27167,9 +27167,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTabs(String nodeId, APIContext context) { + public APIRequestGetTabs(String nodeId, APIContext context) { super(context, nodeId, "/tabs", "GET", Arrays.asList(PARAMS)); } @@ -27341,9 +27341,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -27356,9 +27356,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateTab(String nodeId, APIContext context) { + public APIRequestCreateTab(String nodeId, APIContext context) { super(context, nodeId, "/tabs", "POST", Arrays.asList(PARAMS)); } @@ -27541,9 +27541,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -27556,9 +27556,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTagged(String nodeId, APIContext context) { + public APIRequestGetTagged(String nodeId, APIContext context) { super(context, nodeId, "/tagged", "GET", Arrays.asList(PARAMS)); } @@ -28025,9 +28025,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -28040,9 +28040,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateTakeThreadControl(String nodeId, APIContext context) { + public APIRequestCreateTakeThreadControl(String nodeId, APIContext context) { super(context, nodeId, "/take_thread_control", "POST", Arrays.asList(PARAMS)); } @@ -28145,9 +28145,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -28160,9 +28160,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetThreadOwner(String nodeId, APIContext context) { + public APIRequestGetThreadOwner(String nodeId, APIContext context) { super(context, nodeId, "/thread_owner", "GET", Arrays.asList(PARAMS)); } @@ -28263,9 +28263,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -28278,9 +28278,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteThreadSettings(String nodeId, APIContext context) { + public APIRequestDeleteThreadSettings(String nodeId, APIContext context) { super(context, nodeId, "/thread_settings", "DELETE", Arrays.asList(PARAMS)); } @@ -28396,9 +28396,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -28411,9 +28411,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateThreadSetting(String nodeId, APIContext context) { + public APIRequestCreateThreadSetting(String nodeId, APIContext context) { super(context, nodeId, "/thread_settings", "POST", Arrays.asList(PARAMS)); } @@ -28605,9 +28605,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -28620,9 +28620,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetThreads(String nodeId, APIContext context) { + public APIRequestGetThreads(String nodeId, APIContext context) { super(context, nodeId, "/threads", "GET", Arrays.asList(PARAMS)); } @@ -28847,9 +28847,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -28862,9 +28862,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTours(String nodeId, APIContext context) { + public APIRequestGetTours(String nodeId, APIContext context) { super(context, nodeId, "/tours", "GET", Arrays.asList(PARAMS)); } @@ -29050,9 +29050,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -29065,9 +29065,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUnlinkAccount(String nodeId, APIContext context) { + public APIRequestCreateUnlinkAccount(String nodeId, APIContext context) { super(context, nodeId, "/unlink_accounts", "POST", Arrays.asList(PARAMS)); } @@ -29166,9 +29166,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -29181,9 +29181,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUpcomingChanges(String nodeId, APIContext context) { + public APIRequestGetUpcomingChanges(String nodeId, APIContext context) { super(context, nodeId, "/upcoming_changes", "GET", Arrays.asList(PARAMS)); } @@ -29330,9 +29330,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -29345,9 +29345,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideoCopyrightRules(String nodeId, APIContext context) { + public APIRequestGetVideoCopyrightRules(String nodeId, APIContext context) { super(context, nodeId, "/video_copyright_rules", "GET", Arrays.asList(PARAMS)); } @@ -29510,9 +29510,9 @@ public VideoCopyright execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -29525,9 +29525,9 @@ public VideoCopyright apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVideoCopyright(String nodeId, APIContext context) { + public APIRequestCreateVideoCopyright(String nodeId, APIContext context) { super(context, nodeId, "/video_copyrights", "POST", Arrays.asList(PARAMS)); } @@ -29724,9 +29724,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -29739,9 +29739,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideoLists(String nodeId, APIContext context) { + public APIRequestGetVideoLists(String nodeId, APIContext context) { super(context, nodeId, "/video_lists", "GET", Arrays.asList(PARAMS)); } @@ -29932,9 +29932,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -29947,9 +29947,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideos(String nodeId, APIContext context) { + public APIRequestGetVideos(String nodeId, APIContext context) { super(context, nodeId, "/videos", "GET", Arrays.asList(PARAMS)); } @@ -30418,9 +30418,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -30433,9 +30433,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVideo(String nodeId, APIContext context) { + public APIRequestCreateVideo(String nodeId, APIContext context) { super(context, nodeId, "/videos", "POST", Arrays.asList(PARAMS)); } @@ -31262,9 +31262,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -31277,9 +31277,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVisitorPosts(String nodeId, APIContext context) { + public APIRequestGetVisitorPosts(String nodeId, APIContext context) { super(context, nodeId, "/visitor_posts", "GET", Arrays.asList(PARAMS)); } @@ -31892,9 +31892,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -31907,9 +31907,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -33019,9 +33019,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -33034,9 +33034,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageAboutStory.java b/src/main/java/com/facebook/ads/sdk/PageAboutStory.java index fad2db66..c719e86f 100644 --- a/src/main/java/com/facebook/ads/sdk/PageAboutStory.java +++ b/src/main/java/com/facebook/ads/sdk/PageAboutStory.java @@ -149,7 +149,7 @@ public static PageAboutStory loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageAboutStory.context = context; pageAboutStory.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageAboutStorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageAboutStorys; + } + return pageAboutStorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageAboutStorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -356,9 +356,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -371,9 +371,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -467,9 +467,9 @@ public PageAboutStory execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -482,9 +482,9 @@ public PageAboutStory apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -625,9 +625,9 @@ public PageAboutStory execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -640,9 +640,9 @@ public PageAboutStory apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageAdminNote.java b/src/main/java/com/facebook/ads/sdk/PageAdminNote.java index cfdf9f41..c9fd0601 100644 --- a/src/main/java/com/facebook/ads/sdk/PageAdminNote.java +++ b/src/main/java/com/facebook/ads/sdk/PageAdminNote.java @@ -143,7 +143,7 @@ public static PageAdminNote loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageAdminNote.context = context; pageAdminNote.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageAdminNotes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageAdminNotes; + } + return pageAdminNotes; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageAdminNotes.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -337,9 +337,9 @@ public PageAdminNote execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -352,9 +352,9 @@ public PageAdminNote apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageCallToAction.java b/src/main/java/com/facebook/ads/sdk/PageCallToAction.java index be97498c..76447ce4 100644 --- a/src/main/java/com/facebook/ads/sdk/PageCallToAction.java +++ b/src/main/java/com/facebook/ads/sdk/PageCallToAction.java @@ -173,7 +173,7 @@ public static PageCallToAction loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageCallToAction.context = context; pageCallToAction.rawValue = json; @@ -194,8 +194,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageCallToActions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageCallToActions; + } + return pageCallToActions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -219,7 +219,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageCallToActions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -434,9 +434,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -449,9 +449,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -557,9 +557,9 @@ public PageCallToAction execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -572,9 +572,9 @@ public PageCallToAction apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -808,9 +808,9 @@ public PageCallToAction execute(Map extraParams) throws APIExcep public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -823,9 +823,9 @@ public PageCallToAction apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageCategory.java b/src/main/java/com/facebook/ads/sdk/PageCategory.java index c29b0c7e..5ff6379a 100644 --- a/src/main/java/com/facebook/ads/sdk/PageCategory.java +++ b/src/main/java/com/facebook/ads/sdk/PageCategory.java @@ -84,7 +84,7 @@ public static PageCategory loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageCategory.context = context; pageCategory.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageCategorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageCategorys; + } + return pageCategorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageCategorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PageChangeProposal.java b/src/main/java/com/facebook/ads/sdk/PageChangeProposal.java index ba915529..99e5e732 100644 --- a/src/main/java/com/facebook/ads/sdk/PageChangeProposal.java +++ b/src/main/java/com/facebook/ads/sdk/PageChangeProposal.java @@ -147,7 +147,7 @@ public static PageChangeProposal loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageChangeProposal.context = context; pageChangeProposal.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageChangeProposals.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageChangeProposals; + } + return pageChangeProposals; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageChangeProposals.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -352,9 +352,9 @@ public PageChangeProposal execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -367,9 +367,9 @@ public PageChangeProposal apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -499,9 +499,9 @@ public PageChangeProposal execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -514,9 +514,9 @@ public PageChangeProposal apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageParking.java b/src/main/java/com/facebook/ads/sdk/PageParking.java index 0bb76f0f..30cfc890 100644 --- a/src/main/java/com/facebook/ads/sdk/PageParking.java +++ b/src/main/java/com/facebook/ads/sdk/PageParking.java @@ -82,7 +82,7 @@ public static PageParking loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageParking.context = context; pageParking.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageParkings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageParkings; + } + return pageParkings; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageParkings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PagePaymentOptions.java b/src/main/java/com/facebook/ads/sdk/PagePaymentOptions.java index 0df8ce9d..2f2fc964 100644 --- a/src/main/java/com/facebook/ads/sdk/PagePaymentOptions.java +++ b/src/main/java/com/facebook/ads/sdk/PagePaymentOptions.java @@ -86,7 +86,7 @@ public static PagePaymentOptions loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pagePaymentOptions.context = context; pagePaymentOptions.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pagePaymentOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pagePaymentOptionss; + } + return pagePaymentOptionss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pagePaymentOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PagePost.java b/src/main/java/com/facebook/ads/sdk/PagePost.java index 6fc22ee3..7e6287c7 100644 --- a/src/main/java/com/facebook/ads/sdk/PagePost.java +++ b/src/main/java/com/facebook/ads/sdk/PagePost.java @@ -243,7 +243,7 @@ public static PagePost loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pagePost.context = context; pagePost.rawValue = json; @@ -264,8 +264,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pagePosts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pagePosts; + } + return pagePosts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -289,7 +289,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pagePosts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -695,9 +695,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -710,9 +710,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAttachments(String nodeId, APIContext context) { + public APIRequestGetAttachments(String nodeId, APIContext context) { super(context, nodeId, "/attachments", "GET", Arrays.asList(PARAMS)); } @@ -826,9 +826,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -841,9 +841,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -1134,9 +1134,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1149,9 +1149,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -1312,9 +1312,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1327,9 +1327,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDynamicPosts(String nodeId, APIContext context) { + public APIRequestGetDynamicPosts(String nodeId, APIContext context) { super(context, nodeId, "/dynamic_posts", "GET", Arrays.asList(PARAMS)); } @@ -1505,9 +1505,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1520,9 +1520,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -1697,9 +1697,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1712,9 +1712,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteLikes(String nodeId, APIContext context) { + public APIRequestDeleteLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "DELETE", Arrays.asList(PARAMS)); } @@ -1822,9 +1822,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1837,9 +1837,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -2006,9 +2006,9 @@ public PagePost execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2021,9 +2021,9 @@ public PagePost apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLike(String nodeId, APIContext context) { + public APIRequestCreateLike(String nodeId, APIContext context) { super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS)); } @@ -2137,9 +2137,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2152,9 +2152,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReactions(String nodeId, APIContext context) { + public APIRequestGetReactions(String nodeId, APIContext context) { super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS)); } @@ -2388,9 +2388,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2403,9 +2403,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -3057,9 +3057,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3072,9 +3072,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSponsorTags(String nodeId, APIContext context) { + public APIRequestGetSponsorTags(String nodeId, APIContext context) { super(context, nodeId, "/sponsor_tags", "GET", Arrays.asList(PARAMS)); } @@ -4138,9 +4138,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4153,9 +4153,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTo(String nodeId, APIContext context) { + public APIRequestGetTo(String nodeId, APIContext context) { super(context, nodeId, "/to", "GET", Arrays.asList(PARAMS)); } @@ -4319,9 +4319,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4334,9 +4334,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -4477,9 +4477,9 @@ public PagePost execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4492,9 +4492,9 @@ public PagePost apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -4989,9 +4989,9 @@ public PagePost execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5004,9 +5004,9 @@ public PagePost apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageRestaurantServices.java b/src/main/java/com/facebook/ads/sdk/PageRestaurantServices.java index c2e6b0e9..2e00db22 100644 --- a/src/main/java/com/facebook/ads/sdk/PageRestaurantServices.java +++ b/src/main/java/com/facebook/ads/sdk/PageRestaurantServices.java @@ -96,7 +96,7 @@ public static PageRestaurantServices loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageRestaurantServices.context = context; pageRestaurantServices.rawValue = json; @@ -117,8 +117,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageRestaurantServicess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageRestaurantServicess; + } + return pageRestaurantServicess; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -142,7 +142,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageRestaurantServicess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PageRestaurantSpecialties.java b/src/main/java/com/facebook/ads/sdk/PageRestaurantSpecialties.java index 9d9afc75..e4a4c577 100644 --- a/src/main/java/com/facebook/ads/sdk/PageRestaurantSpecialties.java +++ b/src/main/java/com/facebook/ads/sdk/PageRestaurantSpecialties.java @@ -86,7 +86,7 @@ public static PageRestaurantSpecialties loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageRestaurantSpecialties.context = context; pageRestaurantSpecialties.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageRestaurantSpecialtiess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageRestaurantSpecialtiess; + } + return pageRestaurantSpecialtiess; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageRestaurantSpecialtiess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PageSavedFilter.java b/src/main/java/com/facebook/ads/sdk/PageSavedFilter.java index d4d9e2d1..89c015e2 100644 --- a/src/main/java/com/facebook/ads/sdk/PageSavedFilter.java +++ b/src/main/java/com/facebook/ads/sdk/PageSavedFilter.java @@ -149,7 +149,7 @@ public static PageSavedFilter loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageSavedFilter.context = context; pageSavedFilter.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageSavedFilters.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageSavedFilters; + } + return pageSavedFilters; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageSavedFilters.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -352,9 +352,9 @@ public PageSavedFilter execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -367,9 +367,9 @@ public PageSavedFilter apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageSettings.java b/src/main/java/com/facebook/ads/sdk/PageSettings.java index 2fadd116..48082edd 100644 --- a/src/main/java/com/facebook/ads/sdk/PageSettings.java +++ b/src/main/java/com/facebook/ads/sdk/PageSettings.java @@ -80,7 +80,7 @@ public static PageSettings loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageSettings.context = context; pageSettings.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageSettingss; + } + return pageSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PageStartInfo.java b/src/main/java/com/facebook/ads/sdk/PageStartInfo.java index b67a5b10..39fb87fd 100644 --- a/src/main/java/com/facebook/ads/sdk/PageStartInfo.java +++ b/src/main/java/com/facebook/ads/sdk/PageStartInfo.java @@ -80,7 +80,7 @@ public static PageStartInfo loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageStartInfo.context = context; pageStartInfo.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageStartInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageStartInfos; + } + return pageStartInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageStartInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PageThreadOwner.java b/src/main/java/com/facebook/ads/sdk/PageThreadOwner.java index 4713cdbd..663973dc 100644 --- a/src/main/java/com/facebook/ads/sdk/PageThreadOwner.java +++ b/src/main/java/com/facebook/ads/sdk/PageThreadOwner.java @@ -78,7 +78,7 @@ public static PageThreadOwner loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageThreadOwner.context = context; pageThreadOwner.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageThreadOwners.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageThreadOwners; + } + return pageThreadOwners; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageThreadOwners.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PageUpcomingChange.java b/src/main/java/com/facebook/ads/sdk/PageUpcomingChange.java index 4074ed5b..7f23f84b 100644 --- a/src/main/java/com/facebook/ads/sdk/PageUpcomingChange.java +++ b/src/main/java/com/facebook/ads/sdk/PageUpcomingChange.java @@ -147,7 +147,7 @@ public static PageUpcomingChange loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageUpcomingChange.context = context; pageUpcomingChange.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageUpcomingChanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageUpcomingChanges; + } + return pageUpcomingChanges; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageUpcomingChanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -355,9 +355,9 @@ public PageUpcomingChange execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -370,9 +370,9 @@ public PageUpcomingChange apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -502,9 +502,9 @@ public PageUpcomingChange execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -517,9 +517,9 @@ public PageUpcomingChange apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PageUserMessageThreadLabel.java b/src/main/java/com/facebook/ads/sdk/PageUserMessageThreadLabel.java index e5f252d4..9130cb64 100644 --- a/src/main/java/com/facebook/ads/sdk/PageUserMessageThreadLabel.java +++ b/src/main/java/com/facebook/ads/sdk/PageUserMessageThreadLabel.java @@ -139,7 +139,7 @@ public static PageUserMessageThreadLabel loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } pageUserMessageThreadLabel.context = context; pageUserMessageThreadLabel.rawValue = json; @@ -160,8 +160,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageUserMessageThreadLabels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return pageUserMessageThreadLabels; + } + return pageUserMessageThreadLabels; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -185,7 +185,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { pageUserMessageThreadLabels.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -328,9 +328,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -343,9 +343,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteLabel(String nodeId, APIContext context) { + public APIRequestDeleteLabel(String nodeId, APIContext context) { super(context, nodeId, "/label", "DELETE", Arrays.asList(PARAMS)); } @@ -442,9 +442,9 @@ public PageUserMessageThreadLabel execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -457,9 +457,9 @@ public PageUserMessageThreadLabel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLabel(String nodeId, APIContext context) { + public APIRequestCreateLabel(String nodeId, APIContext context) { super(context, nodeId, "/label", "POST", Arrays.asList(PARAMS)); } @@ -555,9 +555,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -570,9 +570,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -661,9 +661,9 @@ public PageUserMessageThreadLabel execute(Map extraParams) throw public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -676,9 +676,9 @@ public PageUserMessageThreadLabel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PartnerStudy.java b/src/main/java/com/facebook/ads/sdk/PartnerStudy.java index 45aecdc6..7f442347 100644 --- a/src/main/java/com/facebook/ads/sdk/PartnerStudy.java +++ b/src/main/java/com/facebook/ads/sdk/PartnerStudy.java @@ -171,7 +171,7 @@ public static PartnerStudy loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } partnerStudy.context = context; partnerStudy.rawValue = json; @@ -192,8 +192,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { partnerStudys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return partnerStudys; + } + return partnerStudys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -217,7 +217,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { partnerStudys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -477,9 +477,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -492,9 +492,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSubmitters(String nodeId, APIContext context) { + public APIRequestGetSubmitters(String nodeId, APIContext context) { super(context, nodeId, "/submitters", "GET", Arrays.asList(PARAMS)); } @@ -1012,9 +1012,9 @@ public PartnerStudy execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1027,9 +1027,9 @@ public PartnerStudy apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PaymentPricepoints.java b/src/main/java/com/facebook/ads/sdk/PaymentPricepoints.java index e15a2e16..93e1d439 100644 --- a/src/main/java/com/facebook/ads/sdk/PaymentPricepoints.java +++ b/src/main/java/com/facebook/ads/sdk/PaymentPricepoints.java @@ -78,7 +78,7 @@ public static PaymentPricepoints loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } paymentPricepoints.context = context; paymentPricepoints.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { paymentPricepointss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return paymentPricepointss; + } + return paymentPricepointss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { paymentPricepointss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Permission.java b/src/main/java/com/facebook/ads/sdk/Permission.java index 90701374..18eceafa 100644 --- a/src/main/java/com/facebook/ads/sdk/Permission.java +++ b/src/main/java/com/facebook/ads/sdk/Permission.java @@ -80,7 +80,7 @@ public static Permission loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } permission.context = context; permission.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { permissions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return permissions; + } + return permissions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { permissions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Persona.java b/src/main/java/com/facebook/ads/sdk/Persona.java index 33d35b51..bd2491eb 100644 --- a/src/main/java/com/facebook/ads/sdk/Persona.java +++ b/src/main/java/com/facebook/ads/sdk/Persona.java @@ -141,7 +141,7 @@ public static Persona loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } persona.context = context; persona.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { personas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return personas; + } + return personas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { personas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -325,9 +325,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -340,9 +340,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -432,9 +432,9 @@ public Persona execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -447,9 +447,9 @@ public Persona apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Photo.java b/src/main/java/com/facebook/ads/sdk/Photo.java index d84b914a..878454cc 100644 --- a/src/main/java/com/facebook/ads/sdk/Photo.java +++ b/src/main/java/com/facebook/ads/sdk/Photo.java @@ -189,7 +189,7 @@ public static Photo loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } photo.context = context; photo.rawValue = json; @@ -210,8 +210,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { photos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return photos; + } + return photos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -235,7 +235,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { photos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -536,9 +536,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -551,9 +551,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -846,9 +846,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -861,9 +861,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -1043,9 +1043,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1058,9 +1058,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -1244,9 +1244,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1259,9 +1259,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -1429,9 +1429,9 @@ public Photo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1444,9 +1444,9 @@ public Photo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLike(String nodeId, APIContext context) { + public APIRequestCreateLike(String nodeId, APIContext context) { super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS)); } @@ -1618,9 +1618,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1633,9 +1633,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -2287,9 +2287,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2302,9 +2302,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSponsorTags(String nodeId, APIContext context) { + public APIRequestGetSponsorTags(String nodeId, APIContext context) { super(context, nodeId, "/sponsor_tags", "GET", Arrays.asList(PARAMS)); } @@ -3357,9 +3357,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3372,9 +3372,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -3488,9 +3488,9 @@ public Photo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3503,9 +3503,9 @@ public Photo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Place.java b/src/main/java/com/facebook/ads/sdk/Place.java index 1ede38db..a4030cd0 100644 --- a/src/main/java/com/facebook/ads/sdk/Place.java +++ b/src/main/java/com/facebook/ads/sdk/Place.java @@ -143,7 +143,7 @@ public static Place loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } place.context = context; place.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, APIContext context, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { places.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return places; + } + return places; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, APIContext context, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { places.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -331,9 +331,9 @@ public Place execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -346,9 +346,9 @@ public Place apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PlaceTopic.java b/src/main/java/com/facebook/ads/sdk/PlaceTopic.java index 5f0fc959..ae12155d 100644 --- a/src/main/java/com/facebook/ads/sdk/PlaceTopic.java +++ b/src/main/java/com/facebook/ads/sdk/PlaceTopic.java @@ -151,7 +151,7 @@ public static PlaceTopic loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } placeTopic.context = context; placeTopic.rawValue = json; @@ -172,8 +172,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { placeTopics.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return placeTopics; + } + return placeTopics; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -197,7 +197,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { placeTopics.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -360,9 +360,9 @@ public PlaceTopic execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -375,9 +375,9 @@ public PlaceTopic apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/PlatformImageSource.java b/src/main/java/com/facebook/ads/sdk/PlatformImageSource.java index eaa424e7..6ed5278c 100644 --- a/src/main/java/com/facebook/ads/sdk/PlatformImageSource.java +++ b/src/main/java/com/facebook/ads/sdk/PlatformImageSource.java @@ -82,7 +82,7 @@ public static PlatformImageSource loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } platformImageSource.context = context; platformImageSource.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { platformImageSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return platformImageSources; + } + return platformImageSources; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { platformImageSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PlayableContent.java b/src/main/java/com/facebook/ads/sdk/PlayableContent.java index b441a31a..db836ce3 100644 --- a/src/main/java/com/facebook/ads/sdk/PlayableContent.java +++ b/src/main/java/com/facebook/ads/sdk/PlayableContent.java @@ -141,7 +141,7 @@ public static PlayableContent loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } playableContent.context = context; playableContent.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { playableContents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return playableContents; + } + return playableContents; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { playableContents.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -327,9 +327,9 @@ public PlayableContent execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -342,9 +342,9 @@ public PlayableContent apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Post.java b/src/main/java/com/facebook/ads/sdk/Post.java index 51ea592f..222ead0a 100644 --- a/src/main/java/com/facebook/ads/sdk/Post.java +++ b/src/main/java/com/facebook/ads/sdk/Post.java @@ -257,7 +257,7 @@ public static Post loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } post.context = context; post.rawValue = json; @@ -278,8 +278,8 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { posts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return posts; + } + return posts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -303,7 +303,7 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { posts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -737,9 +737,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -752,9 +752,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAttachments(String nodeId, APIContext context) { + public APIRequestGetAttachments(String nodeId, APIContext context) { super(context, nodeId, "/attachments", "GET", Arrays.asList(PARAMS)); } @@ -868,9 +868,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -883,9 +883,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -1176,9 +1176,9 @@ public Comment execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1191,9 +1191,9 @@ public Comment apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateComment(String nodeId, APIContext context) { + public APIRequestCreateComment(String nodeId, APIContext context) { super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS)); } @@ -1354,9 +1354,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1369,9 +1369,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDynamicPosts(String nodeId, APIContext context) { + public APIRequestGetDynamicPosts(String nodeId, APIContext context) { super(context, nodeId, "/dynamic_posts", "GET", Arrays.asList(PARAMS)); } @@ -1547,9 +1547,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1562,9 +1562,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -1739,9 +1739,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1754,9 +1754,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteLikes(String nodeId, APIContext context) { + public APIRequestDeleteLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "DELETE", Arrays.asList(PARAMS)); } @@ -1856,9 +1856,9 @@ public Post execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1871,9 +1871,9 @@ public Post apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLike(String nodeId, APIContext context) { + public APIRequestCreateLike(String nodeId, APIContext context) { super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS)); } @@ -1988,9 +1988,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2003,9 +2003,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePromotion(String nodeId, APIContext context) { + public APIRequestCreatePromotion(String nodeId, APIContext context) { super(context, nodeId, "/promotions", "POST", Arrays.asList(PARAMS)); } @@ -2201,9 +2201,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2216,9 +2216,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetReactions(String nodeId, APIContext context) { + public APIRequestGetReactions(String nodeId, APIContext context) { super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS)); } @@ -2452,9 +2452,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2467,9 +2467,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSharedPosts(String nodeId, APIContext context) { + public APIRequestGetSharedPosts(String nodeId, APIContext context) { super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS)); } @@ -3121,9 +3121,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3136,9 +3136,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSponsorTags(String nodeId, APIContext context) { + public APIRequestGetSponsorTags(String nodeId, APIContext context) { super(context, nodeId, "/sponsor_tags", "GET", Arrays.asList(PARAMS)); } @@ -4202,9 +4202,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4217,9 +4217,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTo(String nodeId, APIContext context) { + public APIRequestGetTo(String nodeId, APIContext context) { super(context, nodeId, "/to", "GET", Arrays.asList(PARAMS)); } @@ -4383,9 +4383,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4398,9 +4398,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -4548,9 +4548,9 @@ public Post execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4563,9 +4563,9 @@ public Post apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -5109,9 +5109,9 @@ public Post execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5124,9 +5124,9 @@ public Post apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Privacy.java b/src/main/java/com/facebook/ads/sdk/Privacy.java index a6dcad32..6e223001 100644 --- a/src/main/java/com/facebook/ads/sdk/Privacy.java +++ b/src/main/java/com/facebook/ads/sdk/Privacy.java @@ -88,7 +88,7 @@ public static Privacy loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } privacy.context = context; privacy.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { privacys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return privacys; + } + return privacys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { privacys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalog.java b/src/main/java/com/facebook/ads/sdk/ProductCatalog.java index aebdd388..0dea24cb 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalog.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalog.java @@ -157,7 +157,7 @@ public static ProductCatalog loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalog.context = context; productCatalog.rawValue = json; @@ -178,8 +178,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogs; + } + return productCatalogs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -203,7 +203,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -559,9 +559,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -574,9 +574,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAgencies(String nodeId, APIContext context) { + public APIRequestDeleteAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "DELETE", Arrays.asList(PARAMS)); } @@ -686,9 +686,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -701,9 +701,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAgencies(String nodeId, APIContext context) { + public APIRequestGetAgencies(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "GET", Arrays.asList(PARAMS)); } @@ -919,9 +919,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -934,9 +934,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAgency(String nodeId, APIContext context) { + public APIRequestCreateAgency(String nodeId, APIContext context) { super(context, nodeId, "/agencies", "POST", Arrays.asList(PARAMS)); } @@ -1047,9 +1047,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1062,9 +1062,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { + public APIRequestDeleteAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "DELETE", Arrays.asList(PARAMS)); } @@ -1165,9 +1165,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1180,9 +1180,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedUsers(String nodeId, APIContext context) { + public APIRequestGetAssignedUsers(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "GET", Arrays.asList(PARAMS)); } @@ -1304,9 +1304,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1319,9 +1319,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAssignedUser(String nodeId, APIContext context) { + public APIRequestCreateAssignedUser(String nodeId, APIContext context) { super(context, nodeId, "/assigned_users", "POST", Arrays.asList(PARAMS)); } @@ -1453,9 +1453,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1468,9 +1468,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAutomotiveModels(String nodeId, APIContext context) { + public APIRequestGetAutomotiveModels(String nodeId, APIContext context) { super(context, nodeId, "/automotive_models", "GET", Arrays.asList(PARAMS)); } @@ -1753,9 +1753,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1768,9 +1768,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBatch(String nodeId, APIContext context) { + public APIRequestCreateBatch(String nodeId, APIContext context) { super(context, nodeId, "/batch", "POST", Arrays.asList(PARAMS)); } @@ -1881,9 +1881,9 @@ public DynamicItemDisplayBundleFolder execute(Map extraParams) t public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1896,9 +1896,9 @@ public DynamicItemDisplayBundleFolder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBundleFolder(String nodeId, APIContext context) { + public APIRequestCreateBundleFolder(String nodeId, APIContext context) { super(context, nodeId, "/bundle_folders", "POST", Arrays.asList(PARAMS)); } @@ -1996,9 +1996,9 @@ public DynamicItemDisplayBundle execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2011,9 +2011,9 @@ public DynamicItemDisplayBundle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBundle(String nodeId, APIContext context) { + public APIRequestCreateBundle(String nodeId, APIContext context) { super(context, nodeId, "/bundles", "POST", Arrays.asList(PARAMS)); } @@ -2147,9 +2147,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2162,9 +2162,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCategories(String nodeId, APIContext context) { + public APIRequestGetCategories(String nodeId, APIContext context) { super(context, nodeId, "/categories", "GET", Arrays.asList(PARAMS)); } @@ -2319,9 +2319,9 @@ public ProductCatalogCategory execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2334,9 +2334,9 @@ public ProductCatalogCategory apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateCategory(String nodeId, APIContext context) { + public APIRequestCreateCategory(String nodeId, APIContext context) { super(context, nodeId, "/categories", "POST", Arrays.asList(PARAMS)); } @@ -2441,9 +2441,9 @@ public APINodeList execute(Map extraPar public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2456,9 +2456,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCheckBatchRequestStatus(String nodeId, APIContext context) { + public APIRequestGetCheckBatchRequestStatus(String nodeId, APIContext context) { super(context, nodeId, "/check_batch_request_status", "GET", Arrays.asList(PARAMS)); } @@ -2614,9 +2614,9 @@ public APINodeList execute(Map ex public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2629,9 +2629,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetCollaborativeAdsShareSettings(String nodeId, APIContext context) { + public APIRequestGetCollaborativeAdsShareSettings(String nodeId, APIContext context) { super(context, nodeId, "/collaborative_ads_share_settings", "GET", Arrays.asList(PARAMS)); } @@ -2774,9 +2774,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2789,9 +2789,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDestinations(String nodeId, APIContext context) { + public APIRequestGetDestinations(String nodeId, APIContext context) { super(context, nodeId, "/destinations", "GET", Arrays.asList(PARAMS)); } @@ -2992,9 +2992,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3007,9 +3007,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEventStats(String nodeId, APIContext context) { + public APIRequestGetEventStats(String nodeId, APIContext context) { super(context, nodeId, "/event_stats", "GET", Arrays.asList(PARAMS)); } @@ -3183,9 +3183,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3198,9 +3198,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteExternalEventSources(String nodeId, APIContext context) { + public APIRequestDeleteExternalEventSources(String nodeId, APIContext context) { super(context, nodeId, "/external_event_sources", "DELETE", Arrays.asList(PARAMS)); } @@ -3299,9 +3299,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3314,9 +3314,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetExternalEventSources(String nodeId, APIContext context) { + public APIRequestGetExternalEventSources(String nodeId, APIContext context) { super(context, nodeId, "/external_event_sources", "GET", Arrays.asList(PARAMS)); } @@ -3425,9 +3425,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3440,9 +3440,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateExternalEventSource(String nodeId, APIContext context) { + public APIRequestCreateExternalEventSource(String nodeId, APIContext context) { super(context, nodeId, "/external_event_sources", "POST", Arrays.asList(PARAMS)); } @@ -3554,9 +3554,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3569,9 +3569,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFlights(String nodeId, APIContext context) { + public APIRequestGetFlights(String nodeId, APIContext context) { super(context, nodeId, "/flights", "GET", Arrays.asList(PARAMS)); } @@ -3817,9 +3817,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3832,9 +3832,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHomeListings(String nodeId, APIContext context) { + public APIRequestGetHomeListings(String nodeId, APIContext context) { super(context, nodeId, "/home_listings", "GET", Arrays.asList(PARAMS)); } @@ -4241,9 +4241,9 @@ public HomeListing execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4256,9 +4256,9 @@ public HomeListing apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateHomeListing(String nodeId, APIContext context) { + public APIRequestCreateHomeListing(String nodeId, APIContext context) { super(context, nodeId, "/home_listings", "POST", Arrays.asList(PARAMS)); } @@ -4453,9 +4453,9 @@ public APINodeList execute(Map ex public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4468,9 +4468,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetHotelRoomsBatch(String nodeId, APIContext context) { + public APIRequestGetHotelRoomsBatch(String nodeId, APIContext context) { super(context, nodeId, "/hotel_rooms_batch", "GET", Arrays.asList(PARAMS)); } @@ -4596,9 +4596,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4611,9 +4611,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateHotelRoomsBatch(String nodeId, APIContext context) { + public APIRequestCreateHotelRoomsBatch(String nodeId, APIContext context) { super(context, nodeId, "/hotel_rooms_batch", "POST", Arrays.asList(PARAMS)); } @@ -4762,9 +4762,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4777,9 +4777,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHotels(String nodeId, APIContext context) { + public APIRequestGetHotels(String nodeId, APIContext context) { super(context, nodeId, "/hotels", "GET", Arrays.asList(PARAMS)); } @@ -5023,9 +5023,9 @@ public Hotel execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5038,9 +5038,9 @@ public Hotel apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateHotel(String nodeId, APIContext context) { + public APIRequestCreateHotel(String nodeId, APIContext context) { super(context, nodeId, "/hotels", "POST", Arrays.asList(PARAMS)); } @@ -5219,9 +5219,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5234,9 +5234,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateItemsBatch(String nodeId, APIContext context) { + public APIRequestCreateItemsBatch(String nodeId, APIContext context) { super(context, nodeId, "/items_batch", "POST", Arrays.asList(PARAMS)); } @@ -5351,9 +5351,9 @@ public APINodeList execute(Map> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5366,9 +5366,9 @@ public APINodeList apply(ResponseWrapper re } } ); - }; + } - public APIRequestGetPricingVariablesBatch(String nodeId, APIContext context) { + public APIRequestGetPricingVariablesBatch(String nodeId, APIContext context) { super(context, nodeId, "/pricing_variables_batch", "GET", Arrays.asList(PARAMS)); } @@ -5494,9 +5494,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5509,9 +5509,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePricingVariablesBatch(String nodeId, APIContext context) { + public APIRequestCreatePricingVariablesBatch(String nodeId, APIContext context) { super(context, nodeId, "/pricing_variables_batch", "POST", Arrays.asList(PARAMS)); } @@ -5655,9 +5655,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5670,9 +5670,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProductFeeds(String nodeId, APIContext context) { + public APIRequestGetProductFeeds(String nodeId, APIContext context) { super(context, nodeId, "/product_feeds", "GET", Arrays.asList(PARAMS)); } @@ -5877,9 +5877,9 @@ public ProductFeed execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -5892,9 +5892,9 @@ public ProductFeed apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProductFeed(String nodeId, APIContext context) { + public APIRequestCreateProductFeed(String nodeId, APIContext context) { super(context, nodeId, "/product_feeds", "POST", Arrays.asList(PARAMS)); } @@ -6078,9 +6078,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6093,9 +6093,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProductGroups(String nodeId, APIContext context) { + public APIRequestGetProductGroups(String nodeId, APIContext context) { super(context, nodeId, "/product_groups", "GET", Arrays.asList(PARAMS)); } @@ -6212,9 +6212,9 @@ public ProductGroup execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6227,9 +6227,9 @@ public ProductGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProductGroup(String nodeId, APIContext context) { + public APIRequestCreateProductGroup(String nodeId, APIContext context) { super(context, nodeId, "/product_groups", "POST", Arrays.asList(PARAMS)); } @@ -6340,9 +6340,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6355,9 +6355,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProductSets(String nodeId, APIContext context) { + public APIRequestGetProductSets(String nodeId, APIContext context) { super(context, nodeId, "/product_sets", "GET", Arrays.asList(PARAMS)); } @@ -6512,9 +6512,9 @@ public ProductSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6527,9 +6527,9 @@ public ProductSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProductSet(String nodeId, APIContext context) { + public APIRequestCreateProductSet(String nodeId, APIContext context) { super(context, nodeId, "/product_sets", "POST", Arrays.asList(PARAMS)); } @@ -6635,9 +6635,9 @@ public APINodeList execute(Map e public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6650,9 +6650,9 @@ public APINodeList apply(ResponseWrapper result) } } ); - }; + } - public APIRequestGetProductSetsBatch(String nodeId, APIContext context) { + public APIRequestGetProductSetsBatch(String nodeId, APIContext context) { super(context, nodeId, "/product_sets_batch", "GET", Arrays.asList(PARAMS)); } @@ -6778,9 +6778,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -6793,9 +6793,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProductSetsBatch(String nodeId, APIContext context) { + public APIRequestCreateProductSetsBatch(String nodeId, APIContext context) { super(context, nodeId, "/product_sets_batch", "POST", Arrays.asList(PARAMS)); } @@ -6978,9 +6978,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6993,9 +6993,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProducts(String nodeId, APIContext context) { + public APIRequestGetProducts(String nodeId, APIContext context) { super(context, nodeId, "/products", "GET", Arrays.asList(PARAMS)); } @@ -7528,9 +7528,9 @@ public ProductItem execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -7543,9 +7543,9 @@ public ProductItem apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProduct(String nodeId, APIContext context) { + public APIRequestCreateProduct(String nodeId, APIContext context) { super(context, nodeId, "/products", "POST", Arrays.asList(PARAMS)); } @@ -8016,9 +8016,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8031,9 +8031,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateStoreProductItemsBatch(String nodeId, APIContext context) { + public APIRequestCreateStoreProductItemsBatch(String nodeId, APIContext context) { super(context, nodeId, "/store_product_items_batch", "POST", Arrays.asList(PARAMS)); } @@ -8172,9 +8172,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8187,9 +8187,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVehicleOffers(String nodeId, APIContext context) { + public APIRequestGetVehicleOffers(String nodeId, APIContext context) { super(context, nodeId, "/vehicle_offers", "GET", Arrays.asList(PARAMS)); } @@ -8563,9 +8563,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8578,9 +8578,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVehicles(String nodeId, APIContext context) { + public APIRequestGetVehicles(String nodeId, APIContext context) { super(context, nodeId, "/vehicles", "GET", Arrays.asList(PARAMS)); } @@ -9016,9 +9016,9 @@ public Vehicle execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9031,9 +9031,9 @@ public Vehicle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVehicle(String nodeId, APIContext context) { + public APIRequestCreateVehicle(String nodeId, APIContext context) { super(context, nodeId, "/vehicles", "POST", Arrays.asList(PARAMS)); } @@ -9326,9 +9326,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9341,9 +9341,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -9441,9 +9441,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9456,9 +9456,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -9629,9 +9629,9 @@ public ProductCatalog execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9644,9 +9644,9 @@ public ProductCatalog apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalogCategory.java b/src/main/java/com/facebook/ads/sdk/ProductCatalogCategory.java index 1feccfaa..5287b0b9 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalogCategory.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalogCategory.java @@ -90,7 +90,7 @@ public static ProductCatalogCategory loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalogCategory.context = context; productCatalogCategory.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogCategorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogCategorys; + } + return productCatalogCategorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogCategorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalogHotelRoomsBatch.java b/src/main/java/com/facebook/ads/sdk/ProductCatalogHotelRoomsBatch.java index 4c4606db..70f5646e 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalogHotelRoomsBatch.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalogHotelRoomsBatch.java @@ -84,7 +84,7 @@ public static ProductCatalogHotelRoomsBatch loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalogHotelRoomsBatch.context = context; productCatalogHotelRoomsBatch.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogHotelRoomsBatchs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogHotelRoomsBatchs; + } + return productCatalogHotelRoomsBatchs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogHotelRoomsBatchs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettings.java b/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettings.java index f7fda38b..82b630ef 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettings.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettings.java @@ -80,7 +80,7 @@ public static ProductCatalogImageSettings loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalogImageSettings.context = context; productCatalogImageSettings.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogImageSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogImageSettingss; + } + return productCatalogImageSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogImageSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettingsOperation.java b/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettingsOperation.java index 41eb40e2..1d40ac08 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettingsOperation.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalogImageSettingsOperation.java @@ -78,7 +78,7 @@ public static ProductCatalogImageSettingsOperation loadJSON(String json, APICont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalogImageSettingsOperation.context = context; productCatalogImageSettingsOperation.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(St arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogImageSettingsOperations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogImageSettingsOperations; + } + return productCatalogImageSettingsOperations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(St arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogImageSettingsOperations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalogPricingVariablesBatch.java b/src/main/java/com/facebook/ads/sdk/ProductCatalogPricingVariablesBatch.java index b4fb40ca..7ede2f6f 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalogPricingVariablesBatch.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalogPricingVariablesBatch.java @@ -84,7 +84,7 @@ public static ProductCatalogPricingVariablesBatch loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalogPricingVariablesBatch.context = context; productCatalogPricingVariablesBatch.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogPricingVariablesBatchs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogPricingVariablesBatchs; + } + return productCatalogPricingVariablesBatchs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogPricingVariablesBatchs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductCatalogProductSetsBatch.java b/src/main/java/com/facebook/ads/sdk/ProductCatalogProductSetsBatch.java index 26ce6462..f27a439b 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductCatalogProductSetsBatch.java +++ b/src/main/java/com/facebook/ads/sdk/ProductCatalogProductSetsBatch.java @@ -84,7 +84,7 @@ public static ProductCatalogProductSetsBatch loadJSON(String json, APIContext co context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productCatalogProductSetsBatch.context = context; productCatalogProductSetsBatch.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String j arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogProductSetsBatchs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productCatalogProductSetsBatchs; + } + return productCatalogProductSetsBatchs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String j arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productCatalogProductSetsBatchs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductEventStat.java b/src/main/java/com/facebook/ads/sdk/ProductEventStat.java index 41fbea19..744a8718 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductEventStat.java +++ b/src/main/java/com/facebook/ads/sdk/ProductEventStat.java @@ -98,7 +98,7 @@ public static ProductEventStat loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productEventStat.context = context; productEventStat.rawValue = json; @@ -119,8 +119,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productEventStats.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productEventStats; + } + return productEventStats; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -144,7 +144,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productEventStats.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeed.java b/src/main/java/com/facebook/ads/sdk/ProductFeed.java index 71fe09df..b27545a2 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeed.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeed.java @@ -165,7 +165,7 @@ public static ProductFeed loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeed.context = context; productFeed.rawValue = json; @@ -186,8 +186,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeeds.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeeds; + } + return productFeeds; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -211,7 +211,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeeds.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -493,9 +493,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -508,9 +508,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAutomotiveModels(String nodeId, APIContext context) { + public APIRequestGetAutomotiveModels(String nodeId, APIContext context) { super(context, nodeId, "/automotive_models", "GET", Arrays.asList(PARAMS)); } @@ -804,9 +804,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -819,9 +819,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDestinations(String nodeId, APIContext context) { + public APIRequestGetDestinations(String nodeId, APIContext context) { super(context, nodeId, "/destinations", "GET", Arrays.asList(PARAMS)); } @@ -1026,9 +1026,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1041,9 +1041,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFlights(String nodeId, APIContext context) { + public APIRequestGetFlights(String nodeId, APIContext context) { super(context, nodeId, "/flights", "GET", Arrays.asList(PARAMS)); } @@ -1289,9 +1289,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1304,9 +1304,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHomeListings(String nodeId, APIContext context) { + public APIRequestGetHomeListings(String nodeId, APIContext context) { super(context, nodeId, "/home_listings", "GET", Arrays.asList(PARAMS)); } @@ -1718,9 +1718,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1733,9 +1733,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHotels(String nodeId, APIContext context) { + public APIRequestGetHotels(String nodeId, APIContext context) { super(context, nodeId, "/hotels", "GET", Arrays.asList(PARAMS)); } @@ -2019,9 +2019,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2034,9 +2034,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProducts(String nodeId, APIContext context) { + public APIRequestGetProducts(String nodeId, APIContext context) { super(context, nodeId, "/products", "GET", Arrays.asList(PARAMS)); } @@ -2502,9 +2502,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2517,9 +2517,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRules(String nodeId, APIContext context) { + public APIRequestGetRules(String nodeId, APIContext context) { super(context, nodeId, "/rules", "GET", Arrays.asList(PARAMS)); } @@ -2637,9 +2637,9 @@ public ProductFeedRule execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2652,9 +2652,9 @@ public ProductFeedRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateRule(String nodeId, APIContext context) { + public APIRequestCreateRule(String nodeId, APIContext context) { super(context, nodeId, "/rules", "POST", Arrays.asList(PARAMS)); } @@ -2774,9 +2774,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2789,9 +2789,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUploadSchedules(String nodeId, APIContext context) { + public APIRequestGetUploadSchedules(String nodeId, APIContext context) { super(context, nodeId, "/upload_schedules", "GET", Arrays.asList(PARAMS)); } @@ -2949,9 +2949,9 @@ public ProductFeed execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2964,9 +2964,9 @@ public ProductFeed apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUploadSchedule(String nodeId, APIContext context) { + public APIRequestCreateUploadSchedule(String nodeId, APIContext context) { super(context, nodeId, "/upload_schedules", "POST", Arrays.asList(PARAMS)); } @@ -3071,9 +3071,9 @@ public APINodeList execute(Map extraParams) t public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3086,9 +3086,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUploads(String nodeId, APIContext context) { + public APIRequestGetUploads(String nodeId, APIContext context) { super(context, nodeId, "/uploads", "GET", Arrays.asList(PARAMS)); } @@ -3272,9 +3272,9 @@ public ProductFeedUpload execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3287,9 +3287,9 @@ public ProductFeedUpload apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateUpload(String nodeId, APIContext context) { + public APIRequestCreateUpload(String nodeId, APIContext context) { super(context, nodeId, "/uploads", "POST", Arrays.asList(PARAMS)); } @@ -3448,9 +3448,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3463,9 +3463,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVehicleOffers(String nodeId, APIContext context) { + public APIRequestGetVehicleOffers(String nodeId, APIContext context) { super(context, nodeId, "/vehicle_offers", "GET", Arrays.asList(PARAMS)); } @@ -3839,9 +3839,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3854,9 +3854,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVehicles(String nodeId, APIContext context) { + public APIRequestGetVehicles(String nodeId, APIContext context) { super(context, nodeId, "/vehicles", "GET", Arrays.asList(PARAMS)); } @@ -4262,9 +4262,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4277,9 +4277,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -4381,9 +4381,9 @@ public ProductFeed execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4396,9 +4396,9 @@ public ProductFeed apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -4598,9 +4598,9 @@ public ProductFeed execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4613,9 +4613,9 @@ public ProductFeed apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedMissingFeedItemReplacement.java b/src/main/java/com/facebook/ads/sdk/ProductFeedMissingFeedItemReplacement.java index da1a18b1..cc53c58e 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedMissingFeedItemReplacement.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedMissingFeedItemReplacement.java @@ -84,7 +84,7 @@ public static ProductFeedMissingFeedItemReplacement loadJSON(String json, APICon context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedMissingFeedItemReplacement.context = context; productFeedMissingFeedItemReplacement.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(S arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedMissingFeedItemReplacements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedMissingFeedItemReplacements; + } + return productFeedMissingFeedItemReplacements; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(S arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedMissingFeedItemReplacements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedRule.java b/src/main/java/com/facebook/ads/sdk/ProductFeedRule.java index 6f97ebdc..d106041b 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedRule.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedRule.java @@ -143,7 +143,7 @@ public static ProductFeedRule loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedRule.context = context; productFeedRule.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedRules; + } + return productFeedRules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -335,9 +335,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -350,9 +350,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -443,9 +443,9 @@ public ProductFeedRule execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -458,9 +458,9 @@ public ProductFeedRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -576,9 +576,9 @@ public ProductFeedRule execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -591,9 +591,9 @@ public ProductFeedRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedRuleSuggestion.java b/src/main/java/com/facebook/ads/sdk/ProductFeedRuleSuggestion.java index 62130ae8..6ac37db5 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedRuleSuggestion.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedRuleSuggestion.java @@ -82,7 +82,7 @@ public static ProductFeedRuleSuggestion loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedRuleSuggestion.context = context; productFeedRuleSuggestion.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedRuleSuggestions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedRuleSuggestions; + } + return productFeedRuleSuggestions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedRuleSuggestions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedSchedule.java b/src/main/java/com/facebook/ads/sdk/ProductFeedSchedule.java index a1769f95..f277898c 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedSchedule.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedSchedule.java @@ -155,7 +155,7 @@ public static ProductFeedSchedule loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedSchedule.context = context; productFeedSchedule.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedSchedules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedSchedules; + } + return productFeedSchedules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedSchedules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -371,9 +371,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -386,9 +386,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -485,9 +485,9 @@ public ProductFeedSchedule execute(Map extraParams) throws APIEx public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -500,9 +500,9 @@ public ProductFeedSchedule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -660,9 +660,9 @@ public ProductFeedSchedule execute(Map extraParams) throws APIEx public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -675,9 +675,9 @@ public ProductFeedSchedule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedUpload.java b/src/main/java/com/facebook/ads/sdk/ProductFeedUpload.java index efbeb12f..f21817d1 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedUpload.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedUpload.java @@ -161,7 +161,7 @@ public static ProductFeedUpload loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedUpload.context = context; productFeedUpload.rawValue = json; @@ -182,8 +182,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedUploads; + } + return productFeedUploads; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -207,7 +207,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -389,9 +389,9 @@ public ProductFeedUpload execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -404,9 +404,9 @@ public ProductFeedUpload apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateErrorReport(String nodeId, APIContext context) { + public APIRequestCreateErrorReport(String nodeId, APIContext context) { super(context, nodeId, "/error_report", "POST", Arrays.asList(PARAMS)); } @@ -500,9 +500,9 @@ public APINodeList execute(Map extraPara public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -515,9 +515,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetErrors(String nodeId, APIContext context) { + public APIRequestGetErrors(String nodeId, APIContext context) { super(context, nodeId, "/errors", "GET", Arrays.asList(PARAMS)); } @@ -666,9 +666,9 @@ public ProductFeedUpload execute(Map extraParams) throws APIExce public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -681,9 +681,9 @@ public ProductFeedUpload apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedUploadError.java b/src/main/java/com/facebook/ads/sdk/ProductFeedUploadError.java index 929998fa..831b93f1 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedUploadError.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedUploadError.java @@ -149,7 +149,7 @@ public static ProductFeedUploadError loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedUploadError.context = context; productFeedUploadError.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploadErrors.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedUploadErrors; + } + return productFeedUploadErrors; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploadErrors.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -356,9 +356,9 @@ public APINodeList execute(Map ext public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -371,9 +371,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSamples(String nodeId, APIContext context) { + public APIRequestGetSamples(String nodeId, APIContext context) { super(context, nodeId, "/samples", "GET", Arrays.asList(PARAMS)); } @@ -484,9 +484,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -499,9 +499,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetSuggestedRules(String nodeId, APIContext context) { + public APIRequestGetSuggestedRules(String nodeId, APIContext context) { super(context, nodeId, "/suggested_rules", "GET", Arrays.asList(PARAMS)); } @@ -616,9 +616,9 @@ public ProductFeedUploadError execute(Map extraParams) throws AP public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -631,9 +631,9 @@ public ProductFeedUploadError apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorReport.java b/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorReport.java index fb4ec121..08a642a4 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorReport.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorReport.java @@ -80,7 +80,7 @@ public static ProductFeedUploadErrorReport loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedUploadErrorReport.context = context; productFeedUploadErrorReport.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploadErrorReports.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedUploadErrorReports; + } + return productFeedUploadErrorReports; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploadErrorReports.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorSample.java b/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorSample.java index c7221fb6..32769409 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorSample.java +++ b/src/main/java/com/facebook/ads/sdk/ProductFeedUploadErrorSample.java @@ -141,7 +141,7 @@ public static ProductFeedUploadErrorSample loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productFeedUploadErrorSample.context = context; productFeedUploadErrorSample.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploadErrorSamples.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productFeedUploadErrorSamples; + } + return productFeedUploadErrorSamples; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productFeedUploadErrorSamples.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -324,9 +324,9 @@ public ProductFeedUploadErrorSample execute(Map extraParams) thr public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -339,9 +339,9 @@ public ProductFeedUploadErrorSample apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductGroup.java b/src/main/java/com/facebook/ads/sdk/ProductGroup.java index 1f602d2a..39af6acd 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductGroup.java +++ b/src/main/java/com/facebook/ads/sdk/ProductGroup.java @@ -143,7 +143,7 @@ public static ProductGroup loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productGroup.context = context; productGroup.rawValue = json; @@ -164,8 +164,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productGroups; + } + return productGroups; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -189,7 +189,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -397,9 +397,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -412,9 +412,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProducts(String nodeId, APIContext context) { + public APIRequestGetProducts(String nodeId, APIContext context) { super(context, nodeId, "/products", "GET", Arrays.asList(PARAMS)); } @@ -918,9 +918,9 @@ public ProductItem execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -933,9 +933,9 @@ public ProductItem apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateProduct(String nodeId, APIContext context) { + public APIRequestCreateProduct(String nodeId, APIContext context) { super(context, nodeId, "/products", "POST", Arrays.asList(PARAMS)); } @@ -1390,9 +1390,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1405,9 +1405,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -1498,9 +1498,9 @@ public ProductGroup execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1513,9 +1513,9 @@ public ProductGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1632,9 +1632,9 @@ public ProductGroup execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1647,9 +1647,9 @@ public ProductGroup apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductItem.java b/src/main/java/com/facebook/ads/sdk/ProductItem.java index a1c4ccdb..8be0d9b1 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductItem.java +++ b/src/main/java/com/facebook/ads/sdk/ProductItem.java @@ -237,7 +237,7 @@ public static ProductItem loadJSON(String json, APIContext context, String heade context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productItem.context = context; productItem.rawValue = json; @@ -258,8 +258,8 @@ public static APINodeList parseResponse(String json, APIContext con arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productItems.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productItems; + } + return productItems; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -283,7 +283,7 @@ public static APINodeList parseResponse(String json, APIContext con arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productItems.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -636,9 +636,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -651,9 +651,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProductSets(String nodeId, APIContext context) { + public APIRequestGetProductSets(String nodeId, APIContext context) { super(context, nodeId, "/product_sets", "GET", Arrays.asList(PARAMS)); } @@ -782,9 +782,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -797,9 +797,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -939,9 +939,9 @@ public ProductItem execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -954,9 +954,9 @@ public ProductItem apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1479,9 +1479,9 @@ public ProductItem execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1494,9 +1494,9 @@ public ProductItem apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductItemCommerceInsights.java b/src/main/java/com/facebook/ads/sdk/ProductItemCommerceInsights.java index e40dd985..8ac3ca9a 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductItemCommerceInsights.java +++ b/src/main/java/com/facebook/ads/sdk/ProductItemCommerceInsights.java @@ -82,7 +82,7 @@ public static ProductItemCommerceInsights loadJSON(String json, APIContext conte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productItemCommerceInsights.context = context; productItemCommerceInsights.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productItemCommerceInsightss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productItemCommerceInsightss; + } + return productItemCommerceInsightss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productItemCommerceInsightss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ProductSet.java b/src/main/java/com/facebook/ads/sdk/ProductSet.java index a45d00cc..fdd9d858 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductSet.java +++ b/src/main/java/com/facebook/ads/sdk/ProductSet.java @@ -147,7 +147,7 @@ public static ProductSet loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productSet.context = context; productSet.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productSets; + } + return productSets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productSets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -409,9 +409,9 @@ public APINodeList execute(Map extraParams) thr public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -424,9 +424,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAutomotiveModels(String nodeId, APIContext context) { + public APIRequestGetAutomotiveModels(String nodeId, APIContext context) { super(context, nodeId, "/automotive_models", "GET", Arrays.asList(PARAMS)); } @@ -720,9 +720,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -735,9 +735,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetDestinations(String nodeId, APIContext context) { + public APIRequestGetDestinations(String nodeId, APIContext context) { super(context, nodeId, "/destinations", "GET", Arrays.asList(PARAMS)); } @@ -942,9 +942,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -957,9 +957,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFlights(String nodeId, APIContext context) { + public APIRequestGetFlights(String nodeId, APIContext context) { super(context, nodeId, "/flights", "GET", Arrays.asList(PARAMS)); } @@ -1205,9 +1205,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1220,9 +1220,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHomeListings(String nodeId, APIContext context) { + public APIRequestGetHomeListings(String nodeId, APIContext context) { super(context, nodeId, "/home_listings", "GET", Arrays.asList(PARAMS)); } @@ -1634,9 +1634,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1649,9 +1649,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetHotels(String nodeId, APIContext context) { + public APIRequestGetHotels(String nodeId, APIContext context) { super(context, nodeId, "/hotels", "GET", Arrays.asList(PARAMS)); } @@ -1935,9 +1935,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1950,9 +1950,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetProducts(String nodeId, APIContext context) { + public APIRequestGetProducts(String nodeId, APIContext context) { super(context, nodeId, "/products", "GET", Arrays.asList(PARAMS)); } @@ -2448,9 +2448,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2463,9 +2463,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVehicleOffers(String nodeId, APIContext context) { + public APIRequestGetVehicleOffers(String nodeId, APIContext context) { super(context, nodeId, "/vehicle_offers", "GET", Arrays.asList(PARAMS)); } @@ -2839,9 +2839,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2854,9 +2854,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVehicles(String nodeId, APIContext context) { + public APIRequestGetVehicles(String nodeId, APIContext context) { super(context, nodeId, "/vehicles", "GET", Arrays.asList(PARAMS)); } @@ -3262,9 +3262,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3277,9 +3277,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -3372,9 +3372,9 @@ public ProductSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3387,9 +3387,9 @@ public ProductSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -3520,9 +3520,9 @@ public ProductSet execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3535,9 +3535,9 @@ public ProductSet apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProductVariant.java b/src/main/java/com/facebook/ads/sdk/ProductVariant.java index 89472bf2..586c419a 100644 --- a/src/main/java/com/facebook/ads/sdk/ProductVariant.java +++ b/src/main/java/com/facebook/ads/sdk/ProductVariant.java @@ -82,7 +82,7 @@ public static ProductVariant loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } productVariant.context = context; productVariant.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productVariants.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return productVariants; + } + return productVariants; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { productVariants.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Profile.java b/src/main/java/com/facebook/ads/sdk/Profile.java index e5d63a89..8841f914 100644 --- a/src/main/java/com/facebook/ads/sdk/Profile.java +++ b/src/main/java/com/facebook/ads/sdk/Profile.java @@ -157,7 +157,7 @@ public static Profile loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } profile.context = context; profile.rawValue = json; @@ -178,8 +178,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { profiles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return profiles; + } + return profiles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -203,7 +203,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { profiles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -386,9 +386,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -401,9 +401,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -600,9 +600,9 @@ public Profile execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -615,9 +615,9 @@ public Profile apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ProfilePictureSource.java b/src/main/java/com/facebook/ads/sdk/ProfilePictureSource.java index 80ee3151..ac974508 100644 --- a/src/main/java/com/facebook/ads/sdk/ProfilePictureSource.java +++ b/src/main/java/com/facebook/ads/sdk/ProfilePictureSource.java @@ -94,7 +94,7 @@ public static ProfilePictureSource loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } profilePictureSource.context = context; profilePictureSource.rawValue = json; @@ -115,8 +115,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { profilePictureSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return profilePictureSources; + } + return profilePictureSources; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -140,7 +140,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { profilePictureSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/PublisherBlockList.java b/src/main/java/com/facebook/ads/sdk/PublisherBlockList.java index d9341ca7..90900160 100644 --- a/src/main/java/com/facebook/ads/sdk/PublisherBlockList.java +++ b/src/main/java/com/facebook/ads/sdk/PublisherBlockList.java @@ -155,7 +155,7 @@ public static PublisherBlockList loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } publisherBlockList.context = context; publisherBlockList.rawValue = json; @@ -176,8 +176,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { publisherBlockLists.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return publisherBlockLists; + } + return publisherBlockLists; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -201,7 +201,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { publisherBlockLists.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -380,9 +380,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -395,9 +395,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPagedAppPublishers(String nodeId, APIContext context) { + public APIRequestGetPagedAppPublishers(String nodeId, APIContext context) { super(context, nodeId, "/paged_app_publishers", "GET", Arrays.asList(PARAMS)); } @@ -490,9 +490,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -505,9 +505,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPagedWebPublishers(String nodeId, APIContext context) { + public APIRequestGetPagedWebPublishers(String nodeId, APIContext context) { super(context, nodeId, "/paged_web_publishers", "GET", Arrays.asList(PARAMS)); } @@ -599,9 +599,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -614,9 +614,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -716,9 +716,9 @@ public PublisherBlockList execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -731,9 +731,9 @@ public PublisherBlockList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -910,9 +910,9 @@ public PublisherBlockList execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -925,9 +925,9 @@ public PublisherBlockList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/RTBDynamicPost.java b/src/main/java/com/facebook/ads/sdk/RTBDynamicPost.java index 25e1e533..f4183f64 100644 --- a/src/main/java/com/facebook/ads/sdk/RTBDynamicPost.java +++ b/src/main/java/com/facebook/ads/sdk/RTBDynamicPost.java @@ -157,7 +157,7 @@ public static RTBDynamicPost loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } rtbDynamicPost.context = context; rtbDynamicPost.rawValue = json; @@ -178,8 +178,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { rtbDynamicPosts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return rtbDynamicPosts; + } + return rtbDynamicPosts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -203,7 +203,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { rtbDynamicPosts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -408,9 +408,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -423,9 +423,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetComments(String nodeId, APIContext context) { + public APIRequestGetComments(String nodeId, APIContext context) { super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS)); } @@ -712,9 +712,9 @@ public APINodeList execute(Map extraParams) th public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -727,9 +727,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInstagramComments(String nodeId, APIContext context) { + public APIRequestGetInstagramComments(String nodeId, APIContext context) { super(context, nodeId, "/instagram_comments", "GET", Arrays.asList(PARAMS)); } @@ -876,9 +876,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -891,9 +891,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -1068,9 +1068,9 @@ public RTBDynamicPost execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1083,9 +1083,9 @@ public RTBDynamicPost apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/RawCustomAudience.java b/src/main/java/com/facebook/ads/sdk/RawCustomAudience.java index ffd6927e..895c0dd7 100644 --- a/src/main/java/com/facebook/ads/sdk/RawCustomAudience.java +++ b/src/main/java/com/facebook/ads/sdk/RawCustomAudience.java @@ -80,7 +80,7 @@ public static RawCustomAudience loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } rawCustomAudience.context = context; rawCustomAudience.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { rawCustomAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return rawCustomAudiences; + } + return rawCustomAudiences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { rawCustomAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyActivity.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyActivity.java index 73624633..d73fe829 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyActivity.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyActivity.java @@ -100,7 +100,7 @@ public static ReachFrequencyActivity loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyActivity.context = context; reachFrequencyActivity.rawValue = json; @@ -121,8 +121,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyActivitys; + } + return reachFrequencyActivitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -146,7 +146,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyActivitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyAdFormat.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyAdFormat.java index 12ba4fa3..aae82a43 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyAdFormat.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyAdFormat.java @@ -80,7 +80,7 @@ public static ReachFrequencyAdFormat loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyAdFormat.context = context; reachFrequencyAdFormat.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyAdFormats.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyAdFormats; + } + return reachFrequencyAdFormats; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyAdFormats.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveLowerConfidenceRange.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveLowerConfidenceRange.java index 1081e21c..6dbcb4b6 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveLowerConfidenceRange.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveLowerConfidenceRange.java @@ -88,7 +88,7 @@ public static ReachFrequencyCurveLowerConfidenceRange loadJSON(String json, APIC context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyCurveLowerConfidenceRange.context = context; reachFrequencyCurveLowerConfidenceRange.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyCurveLowerConfidenceRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyCurveLowerConfidenceRanges; + } + return reachFrequencyCurveLowerConfidenceRanges; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyCurveLowerConfidenceRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveUpperConfidenceRange.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveUpperConfidenceRange.java index ab6f5d9b..b36589bf 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveUpperConfidenceRange.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyCurveUpperConfidenceRange.java @@ -88,7 +88,7 @@ public static ReachFrequencyCurveUpperConfidenceRange loadJSON(String json, APIC context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyCurveUpperConfidenceRange.context = context; reachFrequencyCurveUpperConfidenceRange.rawValue = json; @@ -109,8 +109,8 @@ public static APINodeList parseResponse arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyCurveUpperConfidenceRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyCurveUpperConfidenceRanges; + } + return reachFrequencyCurveUpperConfidenceRanges; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -134,7 +134,7 @@ public static APINodeList parseResponse arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyCurveUpperConfidenceRanges.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyDayPart.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyDayPart.java index 58861f23..680eba97 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyDayPart.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyDayPart.java @@ -82,7 +82,7 @@ public static ReachFrequencyDayPart loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyDayPart.context = context; reachFrequencyDayPart.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyDayParts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyDayParts; + } + return reachFrequencyDayParts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyDayParts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesCurve.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesCurve.java index ae4c8d40..3b46b12e 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesCurve.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesCurve.java @@ -92,7 +92,7 @@ public static ReachFrequencyEstimatesCurve loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyEstimatesCurve.context = context; reachFrequencyEstimatesCurve.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyEstimatesCurves.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyEstimatesCurves; + } + return reachFrequencyEstimatesCurves; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyEstimatesCurves.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesPlacementBreakdown.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesPlacementBreakdown.java index e13bd769..332498ba 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesPlacementBreakdown.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyEstimatesPlacementBreakdown.java @@ -100,7 +100,7 @@ public static ReachFrequencyEstimatesPlacementBreakdown loadJSON(String json, AP context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyEstimatesPlacementBreakdown.context = context; reachFrequencyEstimatesPlacementBreakdown.rawValue = json; @@ -121,8 +121,8 @@ public static APINodeList parseRespon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyEstimatesPlacementBreakdowns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyEstimatesPlacementBreakdowns; + } + return reachFrequencyEstimatesPlacementBreakdowns; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -146,7 +146,7 @@ public static APINodeList parseRespon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyEstimatesPlacementBreakdowns.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencyPrediction.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencyPrediction.java index 3b1b370c..bd5aaca1 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencyPrediction.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencyPrediction.java @@ -301,7 +301,7 @@ public static ReachFrequencyPrediction loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencyPrediction.context = context; reachFrequencyPrediction.rawValue = json; @@ -322,8 +322,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyPredictions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencyPredictions; + } + return reachFrequencyPredictions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -347,7 +347,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencyPredictions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -884,9 +884,9 @@ public ReachFrequencyPrediction execute(Map extraParams) throws public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -899,9 +899,9 @@ public ReachFrequencyPrediction apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ReachFrequencySpec.java b/src/main/java/com/facebook/ads/sdk/ReachFrequencySpec.java index 7fe4ebb2..1d183a3a 100644 --- a/src/main/java/com/facebook/ads/sdk/ReachFrequencySpec.java +++ b/src/main/java/com/facebook/ads/sdk/ReachFrequencySpec.java @@ -92,7 +92,7 @@ public static ReachFrequencySpec loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } reachFrequencySpec.context = context; reachFrequencySpec.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return reachFrequencySpecs; + } + return reachFrequencySpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { reachFrequencySpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ReadOnlyAnalyticsUserPropertyConfig.java b/src/main/java/com/facebook/ads/sdk/ReadOnlyAnalyticsUserPropertyConfig.java index 1d775c15..ba51271e 100644 --- a/src/main/java/com/facebook/ads/sdk/ReadOnlyAnalyticsUserPropertyConfig.java +++ b/src/main/java/com/facebook/ads/sdk/ReadOnlyAnalyticsUserPropertyConfig.java @@ -139,7 +139,7 @@ public static ReadOnlyAnalyticsUserPropertyConfig loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } readOnlyAnalyticsUserPropertyConfig.context = context; readOnlyAnalyticsUserPropertyConfig.rawValue = json; @@ -160,8 +160,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { readOnlyAnalyticsUserPropertyConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return readOnlyAnalyticsUserPropertyConfigs; + } + return readOnlyAnalyticsUserPropertyConfigs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -185,7 +185,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { readOnlyAnalyticsUserPropertyConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -317,9 +317,9 @@ public ReadOnlyAnalyticsUserPropertyConfig execute(Map extraPara public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -332,9 +332,9 @@ public ReadOnlyAnalyticsUserPropertyConfig apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Recommendation.java b/src/main/java/com/facebook/ads/sdk/Recommendation.java index ec2ac74b..02d9db0c 100644 --- a/src/main/java/com/facebook/ads/sdk/Recommendation.java +++ b/src/main/java/com/facebook/ads/sdk/Recommendation.java @@ -92,7 +92,7 @@ public static Recommendation loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } recommendation.context = context; recommendation.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { recommendations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return recommendations; + } + return recommendations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { recommendations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Referral.java b/src/main/java/com/facebook/ads/sdk/Referral.java index 28319585..6b8aa2e7 100644 --- a/src/main/java/com/facebook/ads/sdk/Referral.java +++ b/src/main/java/com/facebook/ads/sdk/Referral.java @@ -157,7 +157,7 @@ public static Referral loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } referral.context = context; referral.rawValue = json; @@ -178,8 +178,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { referrals.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return referrals; + } + return referrals; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -203,7 +203,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { referrals.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -377,9 +377,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -392,9 +392,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -492,9 +492,9 @@ public Referral execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -507,9 +507,9 @@ public Referral apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -683,9 +683,9 @@ public Referral execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -698,9 +698,9 @@ public Referral apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/RequestHistory.java b/src/main/java/com/facebook/ads/sdk/RequestHistory.java index a31329b2..1f24deca 100644 --- a/src/main/java/com/facebook/ads/sdk/RequestHistory.java +++ b/src/main/java/com/facebook/ads/sdk/RequestHistory.java @@ -90,7 +90,7 @@ public static RequestHistory loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } requestHistory.context = context; requestHistory.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { requestHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return requestHistorys; + } + return requestHistorys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { requestHistorys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/RevSharePolicy.java b/src/main/java/com/facebook/ads/sdk/RevSharePolicy.java index b2b612b4..9aabdd97 100644 --- a/src/main/java/com/facebook/ads/sdk/RevSharePolicy.java +++ b/src/main/java/com/facebook/ads/sdk/RevSharePolicy.java @@ -80,7 +80,7 @@ public static RevSharePolicy loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } revSharePolicy.context = context; revSharePolicy.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { revSharePolicys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return revSharePolicys; + } + return revSharePolicys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { revSharePolicys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/RichMediaElement.java b/src/main/java/com/facebook/ads/sdk/RichMediaElement.java index b734fafa..d4029eae 100644 --- a/src/main/java/com/facebook/ads/sdk/RichMediaElement.java +++ b/src/main/java/com/facebook/ads/sdk/RichMediaElement.java @@ -82,7 +82,7 @@ public static RichMediaElement loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } richMediaElement.context = context; richMediaElement.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { richMediaElements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return richMediaElements; + } + return richMediaElements; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { richMediaElements.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/SavedAudience.java b/src/main/java/com/facebook/ads/sdk/SavedAudience.java index 26f591c6..602497a9 100644 --- a/src/main/java/com/facebook/ads/sdk/SavedAudience.java +++ b/src/main/java/com/facebook/ads/sdk/SavedAudience.java @@ -159,7 +159,7 @@ public static SavedAudience loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } savedAudience.context = context; savedAudience.rawValue = json; @@ -180,8 +180,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { savedAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return savedAudiences; + } + return savedAudiences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -205,7 +205,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { savedAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -382,9 +382,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -397,9 +397,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -498,9 +498,9 @@ public SavedAudience execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -513,9 +513,9 @@ public SavedAudience apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/SavedMessageResponse.java b/src/main/java/com/facebook/ads/sdk/SavedMessageResponse.java index e63bf13b..c61b0364 100644 --- a/src/main/java/com/facebook/ads/sdk/SavedMessageResponse.java +++ b/src/main/java/com/facebook/ads/sdk/SavedMessageResponse.java @@ -147,7 +147,7 @@ public static SavedMessageResponse loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } savedMessageResponse.context = context; savedMessageResponse.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { savedMessageResponses.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return savedMessageResponses; + } + return savedMessageResponses; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { savedMessageResponses.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -345,9 +345,9 @@ public SavedMessageResponse execute(Map extraParams) throws APIE public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -360,9 +360,9 @@ public SavedMessageResponse apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/SecuritySettings.java b/src/main/java/com/facebook/ads/sdk/SecuritySettings.java index 1cbdc436..9eca062c 100644 --- a/src/main/java/com/facebook/ads/sdk/SecuritySettings.java +++ b/src/main/java/com/facebook/ads/sdk/SecuritySettings.java @@ -78,7 +78,7 @@ public static SecuritySettings loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } securitySettings.context = context; securitySettings.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String json, APIContex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { securitySettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return securitySettingss; + } + return securitySettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String json, APIContex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { securitySettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/SplitTestConfig.java b/src/main/java/com/facebook/ads/sdk/SplitTestConfig.java index 6dc5f5c6..53fce4fe 100644 --- a/src/main/java/com/facebook/ads/sdk/SplitTestConfig.java +++ b/src/main/java/com/facebook/ads/sdk/SplitTestConfig.java @@ -149,7 +149,7 @@ public static SplitTestConfig loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } splitTestConfig.context = context; splitTestConfig.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { splitTestConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return splitTestConfigs; + } + return splitTestConfigs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { splitTestConfigs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -352,9 +352,9 @@ public SplitTestConfig execute(Map extraParams) throws APIExcept public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -367,9 +367,9 @@ public SplitTestConfig apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/SplitTestWinner.java b/src/main/java/com/facebook/ads/sdk/SplitTestWinner.java index dc00ff88..3695285a 100644 --- a/src/main/java/com/facebook/ads/sdk/SplitTestWinner.java +++ b/src/main/java/com/facebook/ads/sdk/SplitTestWinner.java @@ -82,7 +82,7 @@ public static SplitTestWinner loadJSON(String json, APIContext context, String h context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } splitTestWinner.context = context; splitTestWinner.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { splitTestWinners.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return splitTestWinners; + } + return splitTestWinners; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { splitTestWinners.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/StoreCatalogSettings.java b/src/main/java/com/facebook/ads/sdk/StoreCatalogSettings.java index 776160d6..915104c3 100644 --- a/src/main/java/com/facebook/ads/sdk/StoreCatalogSettings.java +++ b/src/main/java/com/facebook/ads/sdk/StoreCatalogSettings.java @@ -139,7 +139,7 @@ public static StoreCatalogSettings loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } storeCatalogSettings.context = context; storeCatalogSettings.rawValue = json; @@ -160,8 +160,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { storeCatalogSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return storeCatalogSettingss; + } + return storeCatalogSettingss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -185,7 +185,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { storeCatalogSettingss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -324,9 +324,9 @@ public StoreCatalogSettings execute(Map extraParams) throws APIE public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -339,9 +339,9 @@ public StoreCatalogSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -443,9 +443,9 @@ public StoreCatalogSettings execute(Map extraParams) throws APIE public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -458,9 +458,9 @@ public StoreCatalogSettings apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/StreamingReaction.java b/src/main/java/com/facebook/ads/sdk/StreamingReaction.java index 936cfb0e..de4aa863 100644 --- a/src/main/java/com/facebook/ads/sdk/StreamingReaction.java +++ b/src/main/java/com/facebook/ads/sdk/StreamingReaction.java @@ -80,7 +80,7 @@ public static StreamingReaction loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } streamingReaction.context = context; streamingReaction.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { streamingReactions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return streamingReactions; + } + return streamingReactions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { streamingReactions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/SystemUser.java b/src/main/java/com/facebook/ads/sdk/SystemUser.java index fb139cc6..ee1fafd7 100644 --- a/src/main/java/com/facebook/ads/sdk/SystemUser.java +++ b/src/main/java/com/facebook/ads/sdk/SystemUser.java @@ -147,7 +147,7 @@ public static SystemUser loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } systemUser.context = context; systemUser.rawValue = json; @@ -168,8 +168,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { systemUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return systemUsers; + } + return systemUsers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -193,7 +193,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { systemUsers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -422,9 +422,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -437,9 +437,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/assigned_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -949,9 +949,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -964,9 +964,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) { + public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) { super(context, nodeId, "/assigned_business_asset_groups", "GET", Arrays.asList(PARAMS)); } @@ -1210,9 +1210,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1225,9 +1225,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedPages(String nodeId, APIContext context) { + public APIRequestGetAssignedPages(String nodeId, APIContext context) { super(context, nodeId, "/assigned_pages", "GET", Arrays.asList(PARAMS)); } @@ -2291,9 +2291,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2306,9 +2306,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetAssignedProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/assigned_product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -2531,9 +2531,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2546,9 +2546,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetUpdatedBy(String nodeId, APIContext context) { + public APIRequestGetUpdatedBy(String nodeId, APIContext context) { super(context, nodeId, "/updated_by", "GET", Arrays.asList(PARAMS)); } @@ -3054,9 +3054,9 @@ public SystemUser execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3069,9 +3069,9 @@ public SystemUser apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/Tab.java b/src/main/java/com/facebook/ads/sdk/Tab.java index 3221cc90..1423c054 100644 --- a/src/main/java/com/facebook/ads/sdk/Tab.java +++ b/src/main/java/com/facebook/ads/sdk/Tab.java @@ -96,7 +96,7 @@ public static Tab loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } tab.context = context; tab.rawValue = json; @@ -117,8 +117,8 @@ public static APINodeList parseResponse(String json, APIContext context, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { tabs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return tabs; + } + return tabs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -142,7 +142,7 @@ public static APINodeList parseResponse(String json, APIContext context, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { tabs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Targeting.java b/src/main/java/com/facebook/ads/sdk/Targeting.java index 504fdbf6..131d3c5b 100644 --- a/src/main/java/com/facebook/ads/sdk/Targeting.java +++ b/src/main/java/com/facebook/ads/sdk/Targeting.java @@ -252,7 +252,7 @@ public static Targeting loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targeting.context = context; targeting.rawValue = json; @@ -273,8 +273,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetings; + } + return targetings; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -298,7 +298,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetings.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingDynamicRule.java b/src/main/java/com/facebook/ads/sdk/TargetingDynamicRule.java index f62ce337..5d8ba6e5 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingDynamicRule.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingDynamicRule.java @@ -92,7 +92,7 @@ public static TargetingDynamicRule loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingDynamicRule.context = context; targetingDynamicRule.rawValue = json; @@ -113,8 +113,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingDynamicRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingDynamicRules; + } + return targetingDynamicRules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -138,7 +138,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingDynamicRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocation.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocation.java index 26a222f7..ef0d93cf 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocation.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocation.java @@ -116,7 +116,7 @@ public static TargetingGeoLocation loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocation.context = context; targetingGeoLocation.rawValue = json; @@ -137,8 +137,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocations; + } + return targetingGeoLocations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -162,7 +162,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCity.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCity.java index 1824543b..ecf12a12 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCity.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCity.java @@ -90,7 +90,7 @@ public static TargetingGeoLocationCity loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationCity.context = context; targetingGeoLocationCity.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationCitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationCitys; + } + return targetingGeoLocationCitys; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationCitys.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCustomLocation.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCustomLocation.java index c65fd351..644f5339 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCustomLocation.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationCustomLocation.java @@ -104,7 +104,7 @@ public static TargetingGeoLocationCustomLocation loadJSON(String json, APIContex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationCustomLocation.context = context; targetingGeoLocationCustomLocation.rawValue = json; @@ -125,8 +125,8 @@ public static APINodeList parseResponse(Stri arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationCustomLocations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationCustomLocations; + } + return targetingGeoLocationCustomLocations; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -150,7 +150,7 @@ public static APINodeList parseResponse(Stri arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationCustomLocations.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationElectoralDistrict.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationElectoralDistrict.java index 95456d18..20464d0d 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationElectoralDistrict.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationElectoralDistrict.java @@ -84,7 +84,7 @@ public static TargetingGeoLocationElectoralDistrict loadJSON(String json, APICon context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationElectoralDistrict.context = context; targetingGeoLocationElectoralDistrict.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(S arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationElectoralDistricts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationElectoralDistricts; + } + return targetingGeoLocationElectoralDistricts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(S arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationElectoralDistricts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationGeoEntities.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationGeoEntities.java index a9069fb0..99adf33a 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationGeoEntities.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationGeoEntities.java @@ -86,7 +86,7 @@ public static TargetingGeoLocationGeoEntities loadJSON(String json, APIContext c context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationGeoEntities.context = context; targetingGeoLocationGeoEntities.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationGeoEntitiess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationGeoEntitiess; + } + return targetingGeoLocationGeoEntitiess; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationGeoEntitiess.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationCluster.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationCluster.java index 031b16a3..4559ae4f 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationCluster.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationCluster.java @@ -78,7 +78,7 @@ public static TargetingGeoLocationLocationCluster loadJSON(String json, APIConte context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationLocationCluster.context = context; targetingGeoLocationLocationCluster.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(Str arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationLocationClusters.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationLocationClusters; + } + return targetingGeoLocationLocationClusters; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(Str arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationLocationClusters.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationExpansion.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationExpansion.java index 12e8eecc..deb79a01 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationExpansion.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationLocationExpansion.java @@ -78,7 +78,7 @@ public static TargetingGeoLocationLocationExpansion loadJSON(String json, APICon context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationLocationExpansion.context = context; targetingGeoLocationLocationExpansion.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(S arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationLocationExpansions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationLocationExpansions; + } + return targetingGeoLocationLocationExpansions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(S arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationLocationExpansions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationMarket.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationMarket.java index 72c035b8..173fa4a4 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationMarket.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationMarket.java @@ -84,7 +84,7 @@ public static TargetingGeoLocationMarket loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationMarket.context = context; targetingGeoLocationMarket.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationMarkets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationMarkets; + } + return targetingGeoLocationMarkets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationMarkets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPlace.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPlace.java index 6dcf2f12..ffbb15c1 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPlace.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPlace.java @@ -94,7 +94,7 @@ public static TargetingGeoLocationPlace loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationPlace.context = context; targetingGeoLocationPlace.rawValue = json; @@ -115,8 +115,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationPlaces.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationPlaces; + } + return targetingGeoLocationPlaces; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -140,7 +140,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationPlaces.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPoliticalDistrict.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPoliticalDistrict.java index de1658fb..038ccb03 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPoliticalDistrict.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationPoliticalDistrict.java @@ -84,7 +84,7 @@ public static TargetingGeoLocationPoliticalDistrict loadJSON(String json, APICon context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationPoliticalDistrict.context = context; targetingGeoLocationPoliticalDistrict.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(S arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationPoliticalDistricts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationPoliticalDistricts; + } + return targetingGeoLocationPoliticalDistricts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(S arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationPoliticalDistricts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationRegion.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationRegion.java index ba9b6957..0b835228 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationRegion.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationRegion.java @@ -82,7 +82,7 @@ public static TargetingGeoLocationRegion loadJSON(String json, APIContext contex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationRegion.context = context; targetingGeoLocationRegion.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationRegions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationRegions; + } + return targetingGeoLocationRegions; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationRegions.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationZip.java b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationZip.java index 87428609..88c988b7 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationZip.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingGeoLocationZip.java @@ -86,7 +86,7 @@ public static TargetingGeoLocationZip loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingGeoLocationZip.context = context; targetingGeoLocationZip.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationZips.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingGeoLocationZips; + } + return targetingGeoLocationZips; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingGeoLocationZips.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSpec.java b/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSpec.java index ec20938e..d1bc8c1c 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSpec.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSpec.java @@ -82,7 +82,7 @@ public static TargetingProductAudienceSpec loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingProductAudienceSpec.context = context; targetingProductAudienceSpec.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingProductAudienceSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingProductAudienceSpecs; + } + return targetingProductAudienceSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingProductAudienceSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSubSpec.java b/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSubSpec.java index 9c6cd578..67b7e2f4 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSubSpec.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingProductAudienceSubSpec.java @@ -80,7 +80,7 @@ public static TargetingProductAudienceSubSpec loadJSON(String json, APIContext c context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingProductAudienceSubSpec.context = context; targetingProductAudienceSubSpec.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingProductAudienceSubSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingProductAudienceSubSpecs; + } + return targetingProductAudienceSubSpecs; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingProductAudienceSubSpecs.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingProspectingAudience.java b/src/main/java/com/facebook/ads/sdk/TargetingProspectingAudience.java index 2c6293a6..77c69201 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingProspectingAudience.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingProspectingAudience.java @@ -78,7 +78,7 @@ public static TargetingProspectingAudience loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingProspectingAudience.context = context; targetingProspectingAudience.rawValue = json; @@ -99,8 +99,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingProspectingAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingProspectingAudiences; + } + return targetingProspectingAudiences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -124,7 +124,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingProspectingAudiences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/TargetingSentenceLine.java b/src/main/java/com/facebook/ads/sdk/TargetingSentenceLine.java index b690fe36..8cce23a9 100644 --- a/src/main/java/com/facebook/ads/sdk/TargetingSentenceLine.java +++ b/src/main/java/com/facebook/ads/sdk/TargetingSentenceLine.java @@ -82,7 +82,7 @@ public static TargetingSentenceLine loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } targetingSentenceLine.context = context; targetingSentenceLine.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingSentenceLines.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return targetingSentenceLines; + } + return targetingSentenceLines; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { targetingSentenceLines.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/ThirdPartyMeasurementReportDataset.java b/src/main/java/com/facebook/ads/sdk/ThirdPartyMeasurementReportDataset.java index 17ff0897..126b0884 100644 --- a/src/main/java/com/facebook/ads/sdk/ThirdPartyMeasurementReportDataset.java +++ b/src/main/java/com/facebook/ads/sdk/ThirdPartyMeasurementReportDataset.java @@ -145,7 +145,7 @@ public static ThirdPartyMeasurementReportDataset loadJSON(String json, APIContex context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } thirdPartyMeasurementReportDataset.context = context; thirdPartyMeasurementReportDataset.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(Stri arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { thirdPartyMeasurementReportDatasets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return thirdPartyMeasurementReportDatasets; + } + return thirdPartyMeasurementReportDatasets; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(Stri arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { thirdPartyMeasurementReportDatasets.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -345,9 +345,9 @@ public ThirdPartyMeasurementReportDataset execute(Map extraParam public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -360,9 +360,9 @@ public ThirdPartyMeasurementReportDataset apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -485,9 +485,9 @@ public ThirdPartyMeasurementReportDataset execute(Map extraParam public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -500,9 +500,9 @@ public ThirdPartyMeasurementReportDataset apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/TrackingAndConversionWithDefaults.java b/src/main/java/com/facebook/ads/sdk/TrackingAndConversionWithDefaults.java index bfd5f42d..e53fc487 100644 --- a/src/main/java/com/facebook/ads/sdk/TrackingAndConversionWithDefaults.java +++ b/src/main/java/com/facebook/ads/sdk/TrackingAndConversionWithDefaults.java @@ -84,7 +84,7 @@ public static TrackingAndConversionWithDefaults loadJSON(String json, APIContext context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } trackingAndConversionWithDefaults.context = context; trackingAndConversionWithDefaults.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(Strin arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { trackingAndConversionWithDefaultss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return trackingAndConversionWithDefaultss; + } + return trackingAndConversionWithDefaultss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(Strin arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { trackingAndConversionWithDefaultss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/URL.java b/src/main/java/com/facebook/ads/sdk/URL.java index 027cf058..923d8b63 100644 --- a/src/main/java/com/facebook/ads/sdk/URL.java +++ b/src/main/java/com/facebook/ads/sdk/URL.java @@ -149,7 +149,7 @@ public static URL loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } url.context = context; url.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContext context, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { urls.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return urls; + } + return urls; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContext context, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { urls.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -362,9 +362,9 @@ public URL execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -377,9 +377,9 @@ public URL apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -520,9 +520,9 @@ public URL execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -535,9 +535,9 @@ public URL apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/UnifiedThread.java b/src/main/java/com/facebook/ads/sdk/UnifiedThread.java index 36265bb8..c7d42d62 100644 --- a/src/main/java/com/facebook/ads/sdk/UnifiedThread.java +++ b/src/main/java/com/facebook/ads/sdk/UnifiedThread.java @@ -165,7 +165,7 @@ public static UnifiedThread loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } unifiedThread.context = context; unifiedThread.rawValue = json; @@ -186,8 +186,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { unifiedThreads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return unifiedThreads; + } + return unifiedThreads; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -211,7 +211,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { unifiedThreads.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -402,9 +402,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -417,9 +417,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMessages(String nodeId, APIContext context) { + public APIRequestGetMessages(String nodeId, APIContext context) { super(context, nodeId, "/messages", "GET", Arrays.asList(PARAMS)); } @@ -573,9 +573,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -588,9 +588,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMessage(String nodeId, APIContext context) { + public APIRequestCreateMessage(String nodeId, APIContext context) { super(context, nodeId, "/messages", "POST", Arrays.asList(PARAMS)); } @@ -1134,9 +1134,9 @@ public UnifiedThread execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1149,9 +1149,9 @@ public UnifiedThread apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/User.java b/src/main/java/com/facebook/ads/sdk/User.java index e011dae6..55304c51 100644 --- a/src/main/java/com/facebook/ads/sdk/User.java +++ b/src/main/java/com/facebook/ads/sdk/User.java @@ -253,7 +253,7 @@ public static User loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } user.context = context; user.rawValue = json; @@ -274,8 +274,8 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { users.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return users; + } + return users; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -299,7 +299,7 @@ public static APINodeList parseResponse(String json, APIContext context, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { users.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -918,9 +918,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -933,9 +933,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteAccessTokens(String nodeId, APIContext context) { + public APIRequestDeleteAccessTokens(String nodeId, APIContext context) { super(context, nodeId, "/access_tokens", "DELETE", Arrays.asList(PARAMS)); } @@ -1025,9 +1025,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1040,9 +1040,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAccessToken(String nodeId, APIContext context) { + public APIRequestCreateAccessToken(String nodeId, APIContext context) { super(context, nodeId, "/access_tokens", "POST", Arrays.asList(PARAMS)); } @@ -1292,9 +1292,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -1307,9 +1307,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAccounts(String nodeId, APIContext context) { + public APIRequestGetAccounts(String nodeId, APIContext context) { super(context, nodeId, "/accounts", "GET", Arrays.asList(PARAMS)); } @@ -2396,9 +2396,9 @@ public Page execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2411,9 +2411,9 @@ public Page apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAccount(String nodeId, APIContext context) { + public APIRequestCreateAccount(String nodeId, APIContext context) { super(context, nodeId, "/accounts", "POST", Arrays.asList(PARAMS)); } @@ -2635,9 +2635,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -2650,9 +2650,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAchievement(String nodeId, APIContext context) { + public APIRequestCreateAchievement(String nodeId, APIContext context) { super(context, nodeId, "/achievements", "POST", Arrays.asList(PARAMS)); } @@ -2961,9 +2961,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -2976,9 +2976,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdStudies(String nodeId, APIContext context) { + public APIRequestGetAdStudies(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "GET", Arrays.asList(PARAMS)); } @@ -3182,9 +3182,9 @@ public AdStudy execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -3197,9 +3197,9 @@ public AdStudy apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateAdStudy(String nodeId, APIContext context) { + public APIRequestCreateAdStudy(String nodeId, APIContext context) { super(context, nodeId, "/ad_studies", "POST", Arrays.asList(PARAMS)); } @@ -3442,9 +3442,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -3457,9 +3457,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/adaccounts", "GET", Arrays.asList(PARAMS)); } @@ -3989,9 +3989,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4004,9 +4004,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAlbums(String nodeId, APIContext context) { + public APIRequestGetAlbums(String nodeId, APIContext context) { super(context, nodeId, "/albums", "GET", Arrays.asList(PARAMS)); } @@ -4255,9 +4255,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -4270,9 +4270,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateApplication(String nodeId, APIContext context) { + public APIRequestCreateApplication(String nodeId, APIContext context) { super(context, nodeId, "/applications", "POST", Arrays.asList(PARAMS)); } @@ -4370,9 +4370,9 @@ public APINodeList execute(Map extraP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4385,9 +4385,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAppRequestFormerRecipients(String nodeId, APIContext context) { + public APIRequestGetAppRequestFormerRecipients(String nodeId, APIContext context) { super(context, nodeId, "/apprequestformerrecipients", "GET", Arrays.asList(PARAMS)); } @@ -4497,9 +4497,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4512,9 +4512,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAppRequests(String nodeId, APIContext context) { + public APIRequestGetAppRequests(String nodeId, APIContext context) { super(context, nodeId, "/apprequests", "GET", Arrays.asList(PARAMS)); } @@ -4724,9 +4724,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -4739,9 +4739,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) { + public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/assigned_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -5251,9 +5251,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5266,9 +5266,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) { + public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) { super(context, nodeId, "/assigned_business_asset_groups", "GET", Arrays.asList(PARAMS)); } @@ -5512,9 +5512,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -5527,9 +5527,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedPages(String nodeId, APIContext context) { + public APIRequestGetAssignedPages(String nodeId, APIContext context) { super(context, nodeId, "/assigned_pages", "GET", Arrays.asList(PARAMS)); } @@ -6593,9 +6593,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6608,9 +6608,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetAssignedProductCatalogs(String nodeId, APIContext context) { + public APIRequestGetAssignedProductCatalogs(String nodeId, APIContext context) { super(context, nodeId, "/assigned_product_catalogs", "GET", Arrays.asList(PARAMS)); } @@ -6913,9 +6913,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -6928,9 +6928,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBooks(String nodeId, APIContext context) { + public APIRequestGetBooks(String nodeId, APIContext context) { super(context, nodeId, "/books", "GET", Arrays.asList(PARAMS)); } @@ -8001,9 +8001,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8016,9 +8016,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinessUsers(String nodeId, APIContext context) { + public APIRequestGetBusinessUsers(String nodeId, APIContext context) { super(context, nodeId, "/business_users", "GET", Arrays.asList(PARAMS)); } @@ -8197,9 +8197,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8212,9 +8212,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteBusinesses(String nodeId, APIContext context) { + public APIRequestDeleteBusinesses(String nodeId, APIContext context) { super(context, nodeId, "/businesses", "DELETE", Arrays.asList(PARAMS)); } @@ -8324,9 +8324,9 @@ public APINodeList execute(Map extraParams) throws API public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8339,9 +8339,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetBusinesses(String nodeId, APIContext context) { + public APIRequestGetBusinesses(String nodeId, APIContext context) { super(context, nodeId, "/businesses", "GET", Arrays.asList(PARAMS)); } @@ -8563,9 +8563,9 @@ public Business execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -8578,9 +8578,9 @@ public Business apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateBusiness(String nodeId, APIContext context) { + public APIRequestCreateBusiness(String nodeId, APIContext context) { super(context, nodeId, "/businesses", "POST", Arrays.asList(PARAMS)); } @@ -8750,9 +8750,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8765,9 +8765,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetConversations(String nodeId, APIContext context) { + public APIRequestGetConversations(String nodeId, APIContext context) { super(context, nodeId, "/conversations", "GET", Arrays.asList(PARAMS)); } @@ -8980,9 +8980,9 @@ public APINodeList execute(Map extra public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -8995,9 +8995,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetCustomLabels(String nodeId, APIContext context) { + public APIRequestGetCustomLabels(String nodeId, APIContext context) { super(context, nodeId, "/custom_labels", "GET", Arrays.asList(PARAMS)); } @@ -9130,9 +9130,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -9145,9 +9145,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetEvents(String nodeId, APIContext context) { + public APIRequestGetEvents(String nodeId, APIContext context) { super(context, nodeId, "/events", "GET", Arrays.asList(PARAMS)); } @@ -9574,9 +9574,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -9589,9 +9589,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateFeed(String nodeId, APIContext context) { + public APIRequestCreateFeed(String nodeId, APIContext context) { super(context, nodeId, "/feed", "POST", Arrays.asList(PARAMS)); } @@ -10482,9 +10482,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -10497,9 +10497,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFriendLists(String nodeId, APIContext context) { + public APIRequestGetFriendLists(String nodeId, APIContext context) { super(context, nodeId, "/friendlists", "GET", Arrays.asList(PARAMS)); } @@ -10674,9 +10674,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -10689,9 +10689,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetFriends(String nodeId, APIContext context) { + public APIRequestGetFriends(String nodeId, APIContext context) { super(context, nodeId, "/friends", "GET", Arrays.asList(PARAMS)); } @@ -11206,9 +11206,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -11221,9 +11221,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateGameItem(String nodeId, APIContext context) { + public APIRequestCreateGameItem(String nodeId, APIContext context) { super(context, nodeId, "/game_items", "POST", Arrays.asList(PARAMS)); } @@ -11349,9 +11349,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -11364,9 +11364,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateGameTime(String nodeId, APIContext context) { + public APIRequestCreateGameTime(String nodeId, APIContext context) { super(context, nodeId, "/game_times", "POST", Arrays.asList(PARAMS)); } @@ -11601,9 +11601,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -11616,9 +11616,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetGames(String nodeId, APIContext context) { + public APIRequestGetGames(String nodeId, APIContext context) { super(context, nodeId, "/games", "GET", Arrays.asList(PARAMS)); } @@ -12707,9 +12707,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -12722,9 +12722,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateGamesPlay(String nodeId, APIContext context) { + public APIRequestCreateGamesPlay(String nodeId, APIContext context) { super(context, nodeId, "/games_plays", "POST", Arrays.asList(PARAMS)); } @@ -13021,9 +13021,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -13036,9 +13036,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateGamesStat(String nodeId, APIContext context) { + public APIRequestCreateGamesStat(String nodeId, APIContext context) { super(context, nodeId, "/games_stats", "POST", Arrays.asList(PARAMS)); } @@ -13169,9 +13169,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13184,9 +13184,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetGroups(String nodeId, APIContext context) { + public APIRequestGetGroups(String nodeId, APIContext context) { super(context, nodeId, "/groups", "GET", Arrays.asList(PARAMS)); } @@ -13423,9 +13423,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13438,9 +13438,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetIdsForApps(String nodeId, APIContext context) { + public APIRequestGetIdsForApps(String nodeId, APIContext context) { super(context, nodeId, "/ids_for_apps", "GET", Arrays.asList(PARAMS)); } @@ -13553,9 +13553,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13568,9 +13568,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetIdsForBusiness(String nodeId, APIContext context) { + public APIRequestGetIdsForBusiness(String nodeId, APIContext context) { super(context, nodeId, "/ids_for_business", "GET", Arrays.asList(PARAMS)); } @@ -13683,9 +13683,9 @@ public APINodeList execute(Map extraParams) throw public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13698,9 +13698,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetIdsForPages(String nodeId, APIContext context) { + public APIRequestGetIdsForPages(String nodeId, APIContext context) { super(context, nodeId, "/ids_for_pages", "GET", Arrays.asList(PARAMS)); } @@ -13823,9 +13823,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -13838,9 +13838,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetInsights(String nodeId, APIContext context) { + public APIRequestGetInsights(String nodeId, APIContext context) { super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS)); } @@ -14161,9 +14161,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -14176,9 +14176,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLikes(String nodeId, APIContext context) { + public APIRequestGetLikes(String nodeId, APIContext context) { super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS)); } @@ -15247,9 +15247,9 @@ public APINodeList execute(Map extraParams) throws public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15262,9 +15262,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLiveEncoders(String nodeId, APIContext context) { + public APIRequestGetLiveEncoders(String nodeId, APIContext context) { super(context, nodeId, "/live_encoders", "GET", Arrays.asList(PARAMS)); } @@ -15433,9 +15433,9 @@ public LiveEncoder execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -15448,9 +15448,9 @@ public LiveEncoder apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLiveEncoder(String nodeId, APIContext context) { + public APIRequestCreateLiveEncoder(String nodeId, APIContext context) { super(context, nodeId, "/live_encoders", "POST", Arrays.asList(PARAMS)); } @@ -15591,9 +15591,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -15606,9 +15606,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetLiveVideos(String nodeId, APIContext context) { + public APIRequestGetLiveVideos(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "GET", Arrays.asList(PARAMS)); } @@ -15923,9 +15923,9 @@ public LiveVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -15938,9 +15938,9 @@ public LiveVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateLiveVideo(String nodeId, APIContext context) { + public APIRequestCreateLiveVideo(String nodeId, APIContext context) { super(context, nodeId, "/live_videos", "POST", Arrays.asList(PARAMS)); } @@ -16205,9 +16205,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -16220,9 +16220,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMfsAccountPinReset(String nodeId, APIContext context) { + public APIRequestCreateMfsAccountPinReset(String nodeId, APIContext context) { super(context, nodeId, "/mfs_account_pin_reset", "POST", Arrays.asList(PARAMS)); } @@ -16481,9 +16481,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -16496,9 +16496,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMovies(String nodeId, APIContext context) { + public APIRequestGetMovies(String nodeId, APIContext context) { super(context, nodeId, "/movies", "GET", Arrays.asList(PARAMS)); } @@ -17695,9 +17695,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -17710,9 +17710,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMusic(String nodeId, APIContext context) { + public APIRequestGetMusic(String nodeId, APIContext context) { super(context, nodeId, "/music", "GET", Arrays.asList(PARAMS)); } @@ -18778,9 +18778,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -18793,9 +18793,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateNotification(String nodeId, APIContext context) { + public APIRequestCreateNotification(String nodeId, APIContext context) { super(context, nodeId, "/notifications", "POST", Arrays.asList(PARAMS)); } @@ -18951,9 +18951,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -18966,9 +18966,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeletePermissions(String nodeId, APIContext context) { + public APIRequestDeletePermissions(String nodeId, APIContext context) { super(context, nodeId, "/permissions", "DELETE", Arrays.asList(PARAMS)); } @@ -19064,9 +19064,9 @@ public APINodeList execute(Map extraParams) throws A public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19079,9 +19079,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPermissions(String nodeId, APIContext context) { + public APIRequestGetPermissions(String nodeId, APIContext context) { super(context, nodeId, "/permissions", "GET", Arrays.asList(PARAMS)); } @@ -19256,9 +19256,9 @@ public APINodeList execute(Map extraParams) throws AP public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19271,9 +19271,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPersonalAdAccounts(String nodeId, APIContext context) { + public APIRequestGetPersonalAdAccounts(String nodeId, APIContext context) { super(context, nodeId, "/personal_ad_accounts", "GET", Arrays.asList(PARAMS)); } @@ -19808,9 +19808,9 @@ public APINodeList execute(Map extraParams) throws APIExc public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -19823,9 +19823,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhotos(String nodeId, APIContext context) { + public APIRequestGetPhotos(String nodeId, APIContext context) { super(context, nodeId, "/photos", "GET", Arrays.asList(PARAMS)); } @@ -20162,9 +20162,9 @@ public Photo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -20177,9 +20177,9 @@ public Photo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreatePhoto(String nodeId, APIContext context) { + public APIRequestCreatePhoto(String nodeId, APIContext context) { super(context, nodeId, "/photos", "POST", Arrays.asList(PARAMS)); } @@ -20663,9 +20663,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -20678,9 +20678,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } @@ -20930,9 +20930,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -20945,9 +20945,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPosts(String nodeId, APIContext context) { + public APIRequestGetPosts(String nodeId, APIContext context) { super(context, nodeId, "/posts", "GET", Arrays.asList(PARAMS)); } @@ -21495,9 +21495,9 @@ public APINodeList execute(Map extraParams) thro public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -21510,9 +21510,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRequestHistory(String nodeId, APIContext context) { + public APIRequestGetRequestHistory(String nodeId, APIContext context) { super(context, nodeId, "/request_history", "GET", Arrays.asList(PARAMS)); } @@ -21659,9 +21659,9 @@ public APINodeList execute(Map extraParams) throws APIEx public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -21674,9 +21674,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetRichMediaDocuments(String nodeId, APIContext context) { + public APIRequestGetRichMediaDocuments(String nodeId, APIContext context) { super(context, nodeId, "/rich_media_documents", "GET", Arrays.asList(PARAMS)); } @@ -21840,9 +21840,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -21855,9 +21855,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateScreenName(String nodeId, APIContext context) { + public APIRequestCreateScreenName(String nodeId, APIContext context) { super(context, nodeId, "/screennames", "POST", Arrays.asList(PARAMS)); } @@ -21959,9 +21959,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -21974,9 +21974,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateStagingResource(String nodeId, APIContext context) { + public APIRequestCreateStagingResource(String nodeId, APIContext context) { super(context, nodeId, "/staging_resources", "POST", Arrays.asList(PARAMS)); } @@ -22077,9 +22077,9 @@ public APINodeList execute(Map extraParams) public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -22092,9 +22092,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTaggableFriends(String nodeId, APIContext context) { + public APIRequestGetTaggableFriends(String nodeId, APIContext context) { super(context, nodeId, "/taggable_friends", "GET", Arrays.asList(PARAMS)); } @@ -22355,9 +22355,9 @@ public APINodeList execute(Map extraParams) throws APIExce public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -22370,9 +22370,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetTelevision(String nodeId, APIContext context) { + public APIRequestGetTelevision(String nodeId, APIContext context) { super(context, nodeId, "/television", "GET", Arrays.asList(PARAMS)); } @@ -23471,9 +23471,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -23486,9 +23486,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideos(String nodeId, APIContext context) { + public APIRequestGetVideos(String nodeId, APIContext context) { super(context, nodeId, "/videos", "GET", Arrays.asList(PARAMS)); } @@ -23939,9 +23939,9 @@ public AdVideo execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -23954,9 +23954,9 @@ public AdVideo apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateVideo(String nodeId, APIContext context) { + public APIRequestCreateVideo(String nodeId, APIContext context) { super(context, nodeId, "/videos", "POST", Arrays.asList(PARAMS)); } @@ -24578,9 +24578,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -24593,9 +24593,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDelete(String nodeId, APIContext context) { + public APIRequestDelete(String nodeId, APIContext context) { super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS)); } @@ -24741,9 +24741,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -24756,9 +24756,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -25265,9 +25265,9 @@ public User execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -25280,9 +25280,9 @@ public User apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/UserCoverPhoto.java b/src/main/java/com/facebook/ads/sdk/UserCoverPhoto.java index 7d3ef5c6..ba0a44ce 100644 --- a/src/main/java/com/facebook/ads/sdk/UserCoverPhoto.java +++ b/src/main/java/com/facebook/ads/sdk/UserCoverPhoto.java @@ -82,7 +82,7 @@ public static UserCoverPhoto loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userCoverPhoto.context = context; userCoverPhoto.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userCoverPhotos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userCoverPhotos; + } + return userCoverPhotos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userCoverPhotos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserDevice.java b/src/main/java/com/facebook/ads/sdk/UserDevice.java index 288fb5d0..25c7d71e 100644 --- a/src/main/java/com/facebook/ads/sdk/UserDevice.java +++ b/src/main/java/com/facebook/ads/sdk/UserDevice.java @@ -80,7 +80,7 @@ public static UserDevice loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userDevice.context = context; userDevice.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userDevices.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userDevices; + } + return userDevices; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userDevices.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserIDForApp.java b/src/main/java/com/facebook/ads/sdk/UserIDForApp.java index 56f23f98..d93b5380 100644 --- a/src/main/java/com/facebook/ads/sdk/UserIDForApp.java +++ b/src/main/java/com/facebook/ads/sdk/UserIDForApp.java @@ -80,7 +80,7 @@ public static UserIDForApp loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userIDForApp.context = context; userIDForApp.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userIDForApps.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userIDForApps; + } + return userIDForApps; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userIDForApps.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserIDForPage.java b/src/main/java/com/facebook/ads/sdk/UserIDForPage.java index 275610e2..c1d056d2 100644 --- a/src/main/java/com/facebook/ads/sdk/UserIDForPage.java +++ b/src/main/java/com/facebook/ads/sdk/UserIDForPage.java @@ -80,7 +80,7 @@ public static UserIDForPage loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userIDForPage.context = context; userIDForPage.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userIDForPages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userIDForPages; + } + return userIDForPages; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userIDForPages.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserInfluence.java b/src/main/java/com/facebook/ads/sdk/UserInfluence.java index dcc80d11..b6b181e5 100644 --- a/src/main/java/com/facebook/ads/sdk/UserInfluence.java +++ b/src/main/java/com/facebook/ads/sdk/UserInfluence.java @@ -82,7 +82,7 @@ public static UserInfluence loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userInfluence.context = context; userInfluence.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userInfluences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userInfluences; + } + return userInfluences; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userInfluences.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserLeadGenDisclaimerResponse.java b/src/main/java/com/facebook/ads/sdk/UserLeadGenDisclaimerResponse.java index 129d89a1..84438b77 100644 --- a/src/main/java/com/facebook/ads/sdk/UserLeadGenDisclaimerResponse.java +++ b/src/main/java/com/facebook/ads/sdk/UserLeadGenDisclaimerResponse.java @@ -80,7 +80,7 @@ public static UserLeadGenDisclaimerResponse loadJSON(String json, APIContext con context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userLeadGenDisclaimerResponse.context = context; userLeadGenDisclaimerResponse.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String js arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userLeadGenDisclaimerResponses.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userLeadGenDisclaimerResponses; + } + return userLeadGenDisclaimerResponses; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String js arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userLeadGenDisclaimerResponses.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserLeadGenFieldData.java b/src/main/java/com/facebook/ads/sdk/UserLeadGenFieldData.java index 8834a9e4..ff4a28a6 100644 --- a/src/main/java/com/facebook/ads/sdk/UserLeadGenFieldData.java +++ b/src/main/java/com/facebook/ads/sdk/UserLeadGenFieldData.java @@ -80,7 +80,7 @@ public static UserLeadGenFieldData loadJSON(String json, APIContext context, Str context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userLeadGenFieldData.context = context; userLeadGenFieldData.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APICo arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userLeadGenFieldDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userLeadGenFieldDatas; + } + return userLeadGenFieldDatas; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APICo arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userLeadGenFieldDatas.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserPaymentMethodsInfo.java b/src/main/java/com/facebook/ads/sdk/UserPaymentMethodsInfo.java index 694bd04b..33eb0c49 100644 --- a/src/main/java/com/facebook/ads/sdk/UserPaymentMethodsInfo.java +++ b/src/main/java/com/facebook/ads/sdk/UserPaymentMethodsInfo.java @@ -90,7 +90,7 @@ public static UserPaymentMethodsInfo loadJSON(String json, APIContext context, S context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userPaymentMethodsInfo.context = context; userPaymentMethodsInfo.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, API arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userPaymentMethodsInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userPaymentMethodsInfos; + } + return userPaymentMethodsInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, API arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userPaymentMethodsInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserPaymentMobilePricepoints.java b/src/main/java/com/facebook/ads/sdk/UserPaymentMobilePricepoints.java index c355d79f..48f9c1cb 100644 --- a/src/main/java/com/facebook/ads/sdk/UserPaymentMobilePricepoints.java +++ b/src/main/java/com/facebook/ads/sdk/UserPaymentMobilePricepoints.java @@ -84,7 +84,7 @@ public static UserPaymentMobilePricepoints loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userPaymentMobilePricepoints.context = context; userPaymentMobilePricepoints.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userPaymentMobilePricepointss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userPaymentMobilePricepointss; + } + return userPaymentMobilePricepointss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userPaymentMobilePricepointss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserPaymentModulesOptions.java b/src/main/java/com/facebook/ads/sdk/UserPaymentModulesOptions.java index 21a27746..fc2de380 100644 --- a/src/main/java/com/facebook/ads/sdk/UserPaymentModulesOptions.java +++ b/src/main/java/com/facebook/ads/sdk/UserPaymentModulesOptions.java @@ -84,7 +84,7 @@ public static UserPaymentModulesOptions loadJSON(String json, APIContext context context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userPaymentModulesOptions.context = context; userPaymentModulesOptions.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userPaymentModulesOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userPaymentModulesOptionss; + } + return userPaymentModulesOptionss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userPaymentModulesOptionss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/UserTaggableFriend.java b/src/main/java/com/facebook/ads/sdk/UserTaggableFriend.java index 5e0071c6..679a9e3d 100644 --- a/src/main/java/com/facebook/ads/sdk/UserTaggableFriend.java +++ b/src/main/java/com/facebook/ads/sdk/UserTaggableFriend.java @@ -86,7 +86,7 @@ public static UserTaggableFriend loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } userTaggableFriend.context = context; userTaggableFriend.rawValue = json; @@ -107,8 +107,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userTaggableFriends.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return userTaggableFriends; + } + return userTaggableFriends; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -132,7 +132,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { userTaggableFriends.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -312,9 +312,9 @@ public APINodeList execute(Map extraParams public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -327,9 +327,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPicture(String nodeId, APIContext context) { + public APIRequestGetPicture(String nodeId, APIContext context) { super(context, nodeId, "/picture", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/ValueBasedEligibleSource.java b/src/main/java/com/facebook/ads/sdk/ValueBasedEligibleSource.java index 39830db2..c769de93 100644 --- a/src/main/java/com/facebook/ads/sdk/ValueBasedEligibleSource.java +++ b/src/main/java/com/facebook/ads/sdk/ValueBasedEligibleSource.java @@ -82,7 +82,7 @@ public static ValueBasedEligibleSource loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } valueBasedEligibleSource.context = context; valueBasedEligibleSource.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, A arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { valueBasedEligibleSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return valueBasedEligibleSources; + } + return valueBasedEligibleSources; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, A arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { valueBasedEligibleSources.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/Vehicle.java b/src/main/java/com/facebook/ads/sdk/Vehicle.java index 02b1dfa3..f762a48c 100644 --- a/src/main/java/com/facebook/ads/sdk/Vehicle.java +++ b/src/main/java/com/facebook/ads/sdk/Vehicle.java @@ -221,7 +221,7 @@ public static Vehicle loadJSON(String json, APIContext context, String header) { context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } vehicle.context = context; vehicle.rawValue = json; @@ -242,8 +242,8 @@ public static APINodeList parseResponse(String json, APIContext context arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { vehicles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return vehicles; + } + return vehicles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -267,7 +267,7 @@ public static APINodeList parseResponse(String json, APIContext context arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { vehicles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -611,9 +611,9 @@ public Vehicle execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -626,9 +626,9 @@ public Vehicle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -1045,9 +1045,9 @@ public Vehicle execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -1060,9 +1060,9 @@ public Vehicle apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VehicleOffer.java b/src/main/java/com/facebook/ads/sdk/VehicleOffer.java index 18d71ec9..5d18d24e 100644 --- a/src/main/java/com/facebook/ads/sdk/VehicleOffer.java +++ b/src/main/java/com/facebook/ads/sdk/VehicleOffer.java @@ -199,7 +199,7 @@ public static VehicleOffer loadJSON(String json, APIContext context, String head context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } vehicleOffer.context = context; vehicleOffer.rawValue = json; @@ -220,8 +220,8 @@ public static APINodeList parseResponse(String json, APIContext co arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { vehicleOffers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return vehicleOffers; + } + return vehicleOffers; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -245,7 +245,7 @@ public static APINodeList parseResponse(String json, APIContext co arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { vehicleOffers.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -527,9 +527,9 @@ public VehicleOffer execute(Map extraParams) throws APIException public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -542,9 +542,9 @@ public VehicleOffer apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VideoCopyright.java b/src/main/java/com/facebook/ads/sdk/VideoCopyright.java index 3b24bf10..cf9b5ddf 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoCopyright.java +++ b/src/main/java/com/facebook/ads/sdk/VideoCopyright.java @@ -167,7 +167,7 @@ public static VideoCopyright loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoCopyright.context = context; videoCopyright.rawValue = json; @@ -188,8 +188,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoCopyrights; + } + return videoCopyrights; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -213,7 +213,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrights.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -422,9 +422,9 @@ public VideoCopyright execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -437,9 +437,9 @@ public VideoCopyright apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -649,9 +649,9 @@ public VideoCopyright execute(Map extraParams) throws APIExcepti public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -664,9 +664,9 @@ public VideoCopyright apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VideoCopyrightConditionGroup.java b/src/main/java/com/facebook/ads/sdk/VideoCopyrightConditionGroup.java index cc4d93c8..50ecfab7 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoCopyrightConditionGroup.java +++ b/src/main/java/com/facebook/ads/sdk/VideoCopyrightConditionGroup.java @@ -82,7 +82,7 @@ public static VideoCopyrightConditionGroup loadJSON(String json, APIContext cont context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoCopyrightConditionGroup.context = context; videoCopyrightConditionGroup.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String jso arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightConditionGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoCopyrightConditionGroups; + } + return videoCopyrightConditionGroups; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String jso arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightConditionGroups.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/VideoCopyrightGeoGate.java b/src/main/java/com/facebook/ads/sdk/VideoCopyrightGeoGate.java index dff43414..0e2486ea 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoCopyrightGeoGate.java +++ b/src/main/java/com/facebook/ads/sdk/VideoCopyrightGeoGate.java @@ -80,7 +80,7 @@ public static VideoCopyrightGeoGate loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoCopyrightGeoGate.context = context; videoCopyrightGeoGate.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightGeoGates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoCopyrightGeoGates; + } + return videoCopyrightGeoGates; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightGeoGates.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/VideoCopyrightRule.java b/src/main/java/com/facebook/ads/sdk/VideoCopyrightRule.java index c9a8386d..e1b1392d 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoCopyrightRule.java +++ b/src/main/java/com/facebook/ads/sdk/VideoCopyrightRule.java @@ -149,7 +149,7 @@ public static VideoCopyrightRule loadJSON(String json, APIContext context, Strin context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoCopyrightRule.context = context; videoCopyrightRule.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APICont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoCopyrightRules; + } + return videoCopyrightRules; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APICont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightRules.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -355,9 +355,9 @@ public VideoCopyrightRule execute(Map extraParams) throws APIExc public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -370,9 +370,9 @@ public VideoCopyrightRule apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VideoCopyrightSegment.java b/src/main/java/com/facebook/ads/sdk/VideoCopyrightSegment.java index 3e0668f9..96727161 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoCopyrightSegment.java +++ b/src/main/java/com/facebook/ads/sdk/VideoCopyrightSegment.java @@ -82,7 +82,7 @@ public static VideoCopyrightSegment loadJSON(String json, APIContext context, St context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoCopyrightSegment.context = context; videoCopyrightSegment.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APIC arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightSegments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoCopyrightSegments; + } + return videoCopyrightSegments; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APIC arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoCopyrightSegments.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/VideoGameShow.java b/src/main/java/com/facebook/ads/sdk/VideoGameShow.java index 6c4cee6c..7e975ced 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoGameShow.java +++ b/src/main/java/com/facebook/ads/sdk/VideoGameShow.java @@ -145,7 +145,7 @@ public static VideoGameShow loadJSON(String json, APIContext context, String hea context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoGameShow.context = context; videoGameShow.rawValue = json; @@ -166,8 +166,8 @@ public static APINodeList parseResponse(String json, APIContext c arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoGameShows.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoGameShows; + } + return videoGameShows; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -191,7 +191,7 @@ public static APINodeList parseResponse(String json, APIContext c arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoGameShows.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -345,9 +345,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -360,9 +360,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetQuestions(String nodeId, APIContext context) { + public APIRequestGetQuestions(String nodeId, APIContext context) { super(context, nodeId, "/questions", "GET", Arrays.asList(PARAMS)); } @@ -452,9 +452,9 @@ public APINode execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -467,9 +467,9 @@ public APINode apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateQuestion(String nodeId, APIContext context) { + public APIRequestCreateQuestion(String nodeId, APIContext context) { super(context, nodeId, "/questions", "POST", Arrays.asList(PARAMS)); } @@ -584,9 +584,9 @@ public VideoGameShow execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -599,9 +599,9 @@ public VideoGameShow apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -724,9 +724,9 @@ public VideoGameShow execute(Map extraParams) throws APIExceptio public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -739,9 +739,9 @@ public VideoGameShow apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VideoList.java b/src/main/java/com/facebook/ads/sdk/VideoList.java index d2324193..0fd502ca 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoList.java +++ b/src/main/java/com/facebook/ads/sdk/VideoList.java @@ -153,7 +153,7 @@ public static VideoList loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoList.context = context; videoList.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoLists.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoLists; + } + return videoLists; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoLists.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -401,9 +401,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -416,9 +416,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetVideos(String nodeId, APIContext context) { + public APIRequestGetVideos(String nodeId, APIContext context) { super(context, nodeId, "/videos", "GET", Arrays.asList(PARAMS)); } @@ -794,9 +794,9 @@ public VideoList execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -809,9 +809,9 @@ public VideoList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VideoPoll.java b/src/main/java/com/facebook/ads/sdk/VideoPoll.java index 655e6958..9d56f617 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoPoll.java +++ b/src/main/java/com/facebook/ads/sdk/VideoPoll.java @@ -149,7 +149,7 @@ public static VideoPoll loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoPoll.context = context; videoPoll.rawValue = json; @@ -170,8 +170,8 @@ public static APINodeList parseResponse(String json, APIContext conte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoPolls.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoPolls; + } + return videoPolls; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -195,7 +195,7 @@ public static APINodeList parseResponse(String json, APIContext conte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoPolls.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -353,9 +353,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -368,9 +368,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPollOptions(String nodeId, APIContext context) { + public APIRequestGetPollOptions(String nodeId, APIContext context) { super(context, nodeId, "/poll_options", "GET", Arrays.asList(PARAMS)); } @@ -464,9 +464,9 @@ public VideoPoll execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -479,9 +479,9 @@ public VideoPoll apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -622,9 +622,9 @@ public VideoPoll execute(Map extraParams) throws APIException { public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -637,9 +637,9 @@ public VideoPoll apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/VideoThumbnail.java b/src/main/java/com/facebook/ads/sdk/VideoThumbnail.java index 864a1c5a..263b8ab5 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoThumbnail.java +++ b/src/main/java/com/facebook/ads/sdk/VideoThumbnail.java @@ -90,7 +90,7 @@ public static VideoThumbnail loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoThumbnail.context = context; videoThumbnail.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoThumbnails.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoThumbnails; + } + return videoThumbnails; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoThumbnails.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/VideoUploadLimits.java b/src/main/java/com/facebook/ads/sdk/VideoUploadLimits.java index b6a8ccb0..16bbc2ed 100644 --- a/src/main/java/com/facebook/ads/sdk/VideoUploadLimits.java +++ b/src/main/java/com/facebook/ads/sdk/VideoUploadLimits.java @@ -80,7 +80,7 @@ public static VideoUploadLimits loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } videoUploadLimits.context = context; videoUploadLimits.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoUploadLimitss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return videoUploadLimitss; + } + return videoUploadLimitss; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { videoUploadLimitss.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/VoipInfo.java b/src/main/java/com/facebook/ads/sdk/VoipInfo.java index 70289977..a494e4cd 100644 --- a/src/main/java/com/facebook/ads/sdk/VoipInfo.java +++ b/src/main/java/com/facebook/ads/sdk/VoipInfo.java @@ -90,7 +90,7 @@ public static VoipInfo loadJSON(String json, APIContext context, String header) context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } voipInfo.context = context; voipInfo.rawValue = json; @@ -111,8 +111,8 @@ public static APINodeList parseResponse(String json, APIContext contex arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { voipInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return voipInfos; + } + return voipInfos; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -136,7 +136,7 @@ public static APINodeList parseResponse(String json, APIContext contex arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { voipInfos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/WebAppLink.java b/src/main/java/com/facebook/ads/sdk/WebAppLink.java index 121e5e62..48c9aff0 100644 --- a/src/main/java/com/facebook/ads/sdk/WebAppLink.java +++ b/src/main/java/com/facebook/ads/sdk/WebAppLink.java @@ -80,7 +80,7 @@ public static WebAppLink loadJSON(String json, APIContext context, String header context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } webAppLink.context = context; webAppLink.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIContext cont arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { webAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return webAppLinks; + } + return webAppLinks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIContext cont arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { webAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java b/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java index 12c38d18..9ce5508f 100644 --- a/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java +++ b/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessAccount.java @@ -153,7 +153,7 @@ public static WhatsAppBusinessAccount loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } whatsAppBusinessAccount.context = context; whatsAppBusinessAccount.rawValue = json; @@ -174,8 +174,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { whatsAppBusinessAccounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return whatsAppBusinessAccounts; + } + return whatsAppBusinessAccounts; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -199,7 +199,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { whatsAppBusinessAccounts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -374,9 +374,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -389,9 +389,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestDeleteMessageTemplates(String nodeId, APIContext context) { + public APIRequestDeleteMessageTemplates(String nodeId, APIContext context) { super(context, nodeId, "/message_templates", "DELETE", Arrays.asList(PARAMS)); } @@ -489,9 +489,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -504,9 +504,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetMessageTemplates(String nodeId, APIContext context) { + public APIRequestGetMessageTemplates(String nodeId, APIContext context) { super(context, nodeId, "/message_templates", "GET", Arrays.asList(PARAMS)); } @@ -639,9 +639,9 @@ public WhatsAppBusinessAccount execute(Map extraParams) throws A public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -654,9 +654,9 @@ public WhatsAppBusinessAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestCreateMessageTemplate(String nodeId, APIContext context) { + public APIRequestCreateMessageTemplate(String nodeId, APIContext context) { super(context, nodeId, "/message_templates", "POST", Arrays.asList(PARAMS)); } @@ -771,9 +771,9 @@ public APINodeList execute(Map extraParams) throws APIE public ListenableFuture> executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture> executeAsync(Map extraParams) throws APIException { + public ListenableFuture> executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function>() { @@ -786,9 +786,9 @@ public APINodeList apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGetPhoneNumbers(String nodeId, APIContext context) { + public APIRequestGetPhoneNumbers(String nodeId, APIContext context) { super(context, nodeId, "/phone_numbers", "GET", Arrays.asList(PARAMS)); } @@ -884,9 +884,9 @@ public WhatsAppBusinessAccount execute(Map extraParams) throws A public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -899,9 +899,9 @@ public WhatsAppBusinessAccount apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessProfile.java b/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessProfile.java index a05b5bf8..0ba3cf35 100644 --- a/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessProfile.java +++ b/src/main/java/com/facebook/ads/sdk/WhatsAppBusinessProfile.java @@ -141,7 +141,7 @@ public static WhatsAppBusinessProfile loadJSON(String json, APIContext context, context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } whatsAppBusinessProfile.context = context; whatsAppBusinessProfile.rawValue = json; @@ -162,8 +162,8 @@ public static APINodeList parseResponse(String json, AP arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { whatsAppBusinessProfiles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return whatsAppBusinessProfiles; + } + return whatsAppBusinessProfiles; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -187,7 +187,7 @@ public static APINodeList parseResponse(String json, AP arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { whatsAppBusinessProfiles.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); @@ -328,9 +328,9 @@ public WhatsAppBusinessProfile execute(Map extraParams) throws A public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -343,9 +343,9 @@ public WhatsAppBusinessProfile apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestGet(String nodeId, APIContext context) { + public APIRequestGet(String nodeId, APIContext context) { super(context, nodeId, "/", "GET", Arrays.asList(PARAMS)); } @@ -454,9 +454,9 @@ public WhatsAppBusinessProfile execute(Map extraParams) throws A public ListenableFuture executeAsync() throws APIException { return executeAsync(new HashMap()); - }; + } - public ListenableFuture executeAsync(Map extraParams) throws APIException { + public ListenableFuture executeAsync(Map extraParams) throws APIException { return Futures.transform( executeAsyncInternal(extraParams), new Function() { @@ -469,9 +469,9 @@ public WhatsAppBusinessProfile apply(ResponseWrapper result) { } } ); - }; + } - public APIRequestUpdate(String nodeId, APIContext context) { + public APIRequestUpdate(String nodeId, APIContext context) { super(context, nodeId, "/", "POST", Arrays.asList(PARAMS)); } diff --git a/src/main/java/com/facebook/ads/sdk/WindowsAppLink.java b/src/main/java/com/facebook/ads/sdk/WindowsAppLink.java index 1ae8717b..cf8d8f45 100644 --- a/src/main/java/com/facebook/ads/sdk/WindowsAppLink.java +++ b/src/main/java/com/facebook/ads/sdk/WindowsAppLink.java @@ -84,7 +84,7 @@ public static WindowsAppLink loadJSON(String json, APIContext context, String he context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } windowsAppLink.context = context; windowsAppLink.rawValue = json; @@ -105,8 +105,8 @@ public static APINodeList parseResponse(String json, APIContext arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { windowsAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return windowsAppLinks; + } + return windowsAppLinks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -130,7 +130,7 @@ public static APINodeList parseResponse(String json, APIContext arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { windowsAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/WindowsPhoneAppLink.java b/src/main/java/com/facebook/ads/sdk/WindowsPhoneAppLink.java index 9b41fff2..8667c9a9 100644 --- a/src/main/java/com/facebook/ads/sdk/WindowsPhoneAppLink.java +++ b/src/main/java/com/facebook/ads/sdk/WindowsPhoneAppLink.java @@ -82,7 +82,7 @@ public static WindowsPhoneAppLink loadJSON(String json, APIContext context, Stri context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } windowsPhoneAppLink.context = context; windowsPhoneAppLink.rawValue = json; @@ -103,8 +103,8 @@ public static APINodeList parseResponse(String json, APICon arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { windowsPhoneAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return windowsPhoneAppLinks; + } + return windowsPhoneAppLinks; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -128,7 +128,7 @@ public static APINodeList parseResponse(String json, APICon arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { windowsPhoneAppLinks.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject(); diff --git a/src/main/java/com/facebook/ads/sdk/WorkUserFrontline.java b/src/main/java/com/facebook/ads/sdk/WorkUserFrontline.java index e01c858d..4f89ebac 100644 --- a/src/main/java/com/facebook/ads/sdk/WorkUserFrontline.java +++ b/src/main/java/com/facebook/ads/sdk/WorkUserFrontline.java @@ -80,7 +80,7 @@ public static WorkUserFrontline loadJSON(String json, APIContext context, String context.log("[Warning] When parsing response, object is not consistent with JSON:"); context.log("[JSON]" + o1); context.log("[Object]" + o2); - }; + } } workUserFrontline.context = context; workUserFrontline.rawValue = json; @@ -101,8 +101,8 @@ public static APINodeList parseResponse(String json, APIConte arr = result.getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { workUserFrontlines.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; - return workUserFrontlines; + } + return workUserFrontlines; } else if (result.isJsonObject()) { obj = result.getAsJsonObject(); if (obj.has("data")) { @@ -126,7 +126,7 @@ public static APINodeList parseResponse(String json, APIConte arr = obj.get("data").getAsJsonArray(); for (int i = 0; i < arr.size(); i++) { workUserFrontlines.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header)); - }; + } } else if (obj.get("data").isJsonObject()) { // Third, check if it's a JSON object with "data" obj = obj.get("data").getAsJsonObject();