From eb2bccf8d8d54e36630862226e8944b645e63cb7 Mon Sep 17 00:00:00 2001 From: Xinyu Wen Date: Mon, 25 Mar 2024 11:34:00 +0800 Subject: [PATCH 1/2] v13.0.19 --- README.md | 2 +- pom.xml | 2 +- .../bingads/v13/adinsight/AgeEnum.java | 68 ++ .../adinsight/ApplyRecommendationEntity.java | 90 +++ .../ApplyRecommendationsRequest.java | 64 ++ .../ApplyRecommendationsResponse.java | 64 ++ .../bingads/v13/adinsight/ArrayOfAgeEnum.java | 73 ++ .../ArrayOfApplyRecommendationEntity.java | 71 ++ .../ArrayOfDismissRecommendationEntity.java | 71 ++ .../v13/adinsight/ArrayOfGenderEnum.java | 73 ++ .../v13/adinsight/ArrayOfRadiusTarget.java | 71 ++ .../adinsight/ArrayOfRecommendationBase.java | 71 ++ .../CampaignBudgetRecommendation.java | 150 ++++ .../bingads/v13/adinsight/Currency.java | 175 +++++ .../v13/adinsight/DecimalRoundedResult.java | 92 +++ .../DismissRecommendationEntity.java | 90 +++ .../DismissRecommendationsRequest.java | 64 ++ .../DismissRecommendationsResponse.java | 64 ++ .../microsoft/bingads/v13/adinsight/Feed.java | 118 ++++ .../bingads/v13/adinsight/GenderEnum.java | 53 ++ .../GetAudienceFullEstimationRequest.java | 431 ++++++++++++ .../GetAudienceFullEstimationResponse.java | 403 +++++++++++ .../v13/adinsight/IAdInsightService.java | 164 +++++ .../v13/adinsight/KeywordRecommendation.java | 176 +++++ .../bingads/v13/adinsight/ObjectFactory.java | 644 ++++++++++++++++++ .../bingads/v13/adinsight/RadiusTarget.java | 148 ++++ .../bingads/v13/adinsight/RadiusUnit.java | 50 ++ .../RangeResultOfDecimalRoundedResult.java | 90 +++ .../v13/adinsight/RangeResultOfdouble.java | 90 +++ .../v13/adinsight/RecommendationBase.java | 490 +++++++++++++ .../v13/adinsight/RecommendationType.java | 53 ++ .../ResponsiveSearchAdRecommendation.java | 64 ++ .../RetrieveRecommendationsRequest.java | 92 +++ .../RetrieveRecommendationsResponse.java | 64 ++ .../bingads/v13/adinsight/ScaleUnit.java | 56 ++ .../v13/adinsight/SelectionOfAgeEnum.java | 90 +++ .../v13/adinsight/SelectionOfGenderEnum.java | 90 +++ .../v13/adinsight/SelectionOflong.java | 90 +++ .../bingads/v13/bulk/AdApiFaultDetail.java | 3 + .../bingads/v13/bulk/ApiFaultDetail.java | 3 + .../bingads/v13/bulk/ApplicationFault.java | 4 + .../bingads/v13/bulk/ArrayOfAdApiError.java | 11 +- .../bingads/v13/bulk/ArrayOfBatchError.java | 11 +- .../v13/bulk/ArrayOfCampaignScope.java | 11 +- .../v13/bulk/ArrayOfDownloadEntity.java | 11 +- .../bulk/ArrayOfKeyValueOfstringstring.java | 11 +- .../ArrayOfKeyValuePairOfstringstring.java | 11 +- .../v13/bulk/ArrayOfOperationError.java | 11 +- .../bingads/v13/bulk/ArrayOflong.java | 11 +- .../bingads/v13/bulk/ArrayOfstring.java | 11 +- .../bingads/v13/bulk/BatchError.java | 2 +- .../bingads/v13/bulk/DownloadEntity.java | 53 +- .../bingads/v13/bulk/EditorialError.java | 3 + .../AccountPropertyName.java | 5 +- .../AdGroupCriterionType.java | 3 +- .../AddDataExclusionsRequest.java | 92 +++ .../AddDataExclusionsResponse.java | 92 +++ .../AddSeasonalityAdjustmentsRequest.java | 92 +++ .../AddSeasonalityAdjustmentsResponse.java | 92 +++ .../ApplyCustomerListUserDataRequest.java | 64 ++ .../ApplyCustomerListUserDataResponse.java | 64 ++ .../ArrayOfCampaignAssociation.java | 80 +++ ...istItem.java => ArrayOfDataExclusion.java} | 42 +- .../ArrayOfSeasonalityAdjustment.java | 80 +++ .../v13/campaignmanagement/BrandItem.java | 67 ++ .../v13/campaignmanagement/BrandList.java | 37 + .../v13/campaignmanagement/Campaign.java | 28 + .../CampaignAdditionalField.java | 4 +- .../CampaignAssociation.java | 62 ++ .../CampaignCriterionType.java | 3 +- .../v13/campaignmanagement/CustomerList.java | 62 +- .../campaignmanagement/CustomerListItem.java | 92 --- .../CustomerListUserData.java | 141 ++++ .../v13/campaignmanagement/DataExclusion.java | 268 ++++++++ .../DeleteDataExclusionsRequest.java | 92 +++ .../DeleteDataExclusionsResponse.java | 64 ++ .../DeleteSeasonalityAdjustmentsRequest.java | 92 +++ .../DeleteSeasonalityAdjustmentsResponse.java | 64 ++ .../v13/campaignmanagement/DeviceType.java | 59 ++ .../GetDataExclusionsByAccountIdRequest.java | 64 ++ .../GetDataExclusionsByAccountIdResponse.java | 92 +++ .../GetDataExclusionsByIdsRequest.java | 92 +++ .../GetDataExclusionsByIdsResponse.java | 92 +++ ...sonalityAdjustmentsByAccountIdRequest.java | 64 ++ ...onalityAdjustmentsByAccountIdResponse.java | 92 +++ ...GetSeasonalityAdjustmentsByIdsRequest.java | 92 +++ ...etSeasonalityAdjustmentsByIdsResponse.java | 92 +++ .../GoogleImportOption.java | 140 ++++ .../ICampaignManagementService.java | 451 ++++++++++++ .../ImportAdditionalField.java | 7 +- .../v13/campaignmanagement/ObjectFactory.java | 506 ++++++++++++-- .../PerformanceMaxSetting.java | 56 ++ .../SeasonalityAdjustment.java | 296 ++++++++ .../v13/campaignmanagement/SharedList.java | 3 +- .../campaignmanagement/SharedListItem.java | 3 +- .../UpdateDataExclusionsRequest.java | 92 +++ .../UpdateDataExclusionsResponse.java | 64 ++ .../UpdateSeasonalityAdjustmentsRequest.java | 92 +++ .../UpdateSeasonalityAdjustmentsResponse.java | 64 ++ .../AccountAdditionalField.java | 30 + .../AccountAdditionalFieldConverter.java | 34 + .../bingads/v13/customerbilling/Adapter2.java | 20 + .../bingads/v13/customerbilling/Adapter3.java | 20 + .../v13/customerbilling/InsertionOrder.java | 58 +- .../InsertionOrderAdditionalField.java | 29 + ...nsertionOrderAdditionalFieldConverter.java | 34 + .../v13/customerbilling/ObjectFactory.java | 31 + .../customerbilling/SearchCouponsRequest.java | 33 +- .../SearchInsertionOrdersRequest.java | 33 +- .../AccountAdditionalField.java | 3 +- .../ArrayOfKeyValueEntityOflongint.java | 71 ++ .../DismissNotificationsRequest.java | 92 +++ .../DismissNotificationsResponse.java | 34 + .../ICustomerManagementService.java | 41 ++ .../KeyValueEntityOflongint.java | 90 +++ .../v13/customermanagement/ObjectFactory.java | 68 ++ .../AccountPerformanceReportRequest.java | 3 + .../v13/reporting/AdApiFaultDetail.java | 3 + ...AdDynamicTextPerformanceReportRequest.java | 3 + .../AdExtensionByAdReportRequest.java | 3 + .../AdExtensionByKeywordReportRequest.java | 3 + .../AdExtensionDetailReportRequest.java | 3 + .../AdGroupPerformanceReportRequest.java | 3 + .../reporting/AdPerformanceReportRequest.java | 3 + .../AgeGenderAudienceReportRequest.java | 3 + .../bingads/v13/reporting/ApiFaultDetail.java | 3 + .../v13/reporting/ApplicationFault.java | 4 + ...ArrayOfAccountPerformanceReportColumn.java | 11 +- .../v13/reporting/ArrayOfAdApiError.java | 11 +- ...fAdDynamicTextPerformanceReportColumn.java | 11 +- .../ArrayOfAdExtensionByAdReportColumn.java | 11 +- ...rayOfAdExtensionByKeywordReportColumn.java | 11 +- .../ArrayOfAdExtensionDetailReportColumn.java | 11 +- ...ArrayOfAdGroupPerformanceReportColumn.java | 11 +- .../reporting/ArrayOfAdGroupReportScope.java | 11 +- .../ArrayOfAdPerformanceReportColumn.java | 11 +- .../ArrayOfAgeGenderAudienceReportColumn.java | 11 +- ...rrayOfAudiencePerformanceReportColumn.java | 11 +- .../v13/reporting/ArrayOfBatchError.java | 11 +- .../ArrayOfBudgetSummaryReportColumn.java | 11 +- .../ArrayOfCallDetailReportColumn.java | 11 +- ...rrayOfCampaignPerformanceReportColumn.java | 11 +- .../reporting/ArrayOfCampaignReportScope.java | 11 +- ...ayOfConversionPerformanceReportColumn.java | 11 +- ...fDSAAutoTargetPerformanceReportColumn.java | 11 +- ...yOfDSACategoryPerformanceReportColumn.java | 11 +- ...DSASearchQueryPerformanceReportColumn.java | 11 +- ...DestinationUrlPerformanceReportColumn.java | 11 +- ...ayOfGeographicPerformanceReportColumn.java | 11 +- .../ArrayOfGoalsAndFunnelsReportColumn.java | 11 +- ...HotelDimensionPerformanceReportColumn.java | 11 +- ...ayOfHotelGroupPerformanceReportColumn.java | 11 +- ...ArrayOfKeywordPerformanceReportColumn.java | 11 +- .../ArrayOfKeywordPerformanceReportSort.java | 11 +- ...OfNegativeKeywordConflictReportColumn.java | 11 +- .../v13/reporting/ArrayOfOperationError.java | 11 +- ...oductDimensionPerformanceReportColumn.java | 11 +- .../ArrayOfProductMatchCountReportColumn.java | 11 +- ...ctNegativeKeywordConflictReportColumn.java | 11 +- ...oductPartitionPerformanceReportColumn.java | 11 +- ...tPartitionUnitPerformanceReportColumn.java | 11 +- ...uctSearchQueryPerformanceReportColumn.java | 11 +- ...ionalDemographicsAudienceReportColumn.java | 11 +- ...PublisherUsagePerformanceReportColumn.java | 11 +- ...archCampaignChangeHistoryReportColumn.java | 11 +- ...yOfSearchQueryPerformanceReportColumn.java | 11 +- .../ArrayOfShareOfVoiceReportColumn.java | 11 +- ...OfUserLocationPerformanceReportColumn.java | 11 +- .../bingads/v13/reporting/ArrayOfint.java | 11 +- .../bingads/v13/reporting/ArrayOflong.java | 11 +- .../bingads/v13/reporting/ArrayOfstring.java | 11 +- .../AudiencePerformanceReportRequest.java | 3 + .../reporting/BudgetSummaryReportRequest.java | 3 + .../reporting/CallDetailReportRequest.java | 3 + .../CampaignPerformanceReportRequest.java | 3 + .../ConversionPerformanceReportRequest.java | 3 + ...DSAAutoTargetPerformanceReportRequest.java | 3 + .../DSACategoryPerformanceReportRequest.java | 3 + ...SASearchQueryPerformanceReportRequest.java | 3 + ...estinationUrlPerformanceReportRequest.java | 3 + .../GeographicPerformanceReportRequest.java | 3 + .../GoalsAndFunnelsReportRequest.java | 3 + ...HotelDimensionPerformanceReportColumn.java | 5 +- ...otelDimensionPerformanceReportRequest.java | 3 + .../HotelGroupPerformanceReportColumn.java | 5 +- .../HotelGroupPerformanceReportRequest.java | 3 + .../KeywordPerformanceReportRequest.java | 3 + .../NegativeKeywordConflictReportRequest.java | 3 + ...oductDimensionPerformanceReportColumn.java | 5 +- ...ductDimensionPerformanceReportRequest.java | 3 + .../ProductMatchCountReportRequest.java | 3 + ...tNegativeKeywordConflictReportRequest.java | 3 + ...ductPartitionPerformanceReportRequest.java | 3 + ...PartitionUnitPerformanceReportRequest.java | 3 + ...ctSearchQueryPerformanceReportRequest.java | 3 + ...onalDemographicsAudienceReportRequest.java | 3 + ...ublisherUsagePerformanceReportRequest.java | 3 + .../bingads/v13/reporting/ReportRequest.java | 4 + ...rchCampaignChangeHistoryReportRequest.java | 3 + .../SearchQueryPerformanceReportRequest.java | 3 + .../reporting/ShareOfVoiceReportRequest.java | 3 + .../UserLocationPerformanceReportRequest.java | 3 + .../bingads/RestfulServiceFactory.java | 7 + .../com/microsoft/bingads/ServiceClient.java | 57 +- .../bingads/internal/HeaderHandler.java | 20 +- .../internal/OAuthWithAuthorizationCode.java | 8 +- .../bingads/internal/ServiceFactoryImpl.java | 2 +- .../bingads/internal/ServiceUtils.java | 5 +- .../restful/BulkRestfulServiceClient.java | 117 ++++ ...ampaignManagementRestfulServiceClient.java | 296 ++++++-- .../ReportingRestfulServiceClient.java | 53 ++ .../restful/RestfulServiceClient.java | 41 +- .../internal/restful/adaptor/AdaptorUtil.java | 36 +- .../arrayOfTypes/AddMixInForArrayOfTypes.java | 25 + .../bulk/arrayOfTypes/ArrayOfTypesMixIn.java | 53 ++ .../AddMixInForComplexTypesWithEnumList.java | 18 + .../bulk/enums/AddMixInForEnumTypes.java | 21 + .../bulk/enums/CompressionTypeMixIn.java | 24 + .../bulk/enums/DataScopeDeserializer.java | 27 + .../generated/bulk/enums/DataScopeMixIn.java | 24 + ...ampaignsByAccountIdsRequestEnumsMixIn.java | 21 + ...mpaignsByCampaignIdsRequestEnumsMixIn.java | 21 + .../bulk/enums/DownloadEntityMixIn.java | 24 + .../bulk/enums/DownloadFileTypeMixIn.java | 24 + .../bulk/enums/ResponseModeMixIn.java | 24 + .../AddMixInForPolymorphicTypes.java | 18 + ...ApplicationFaultPolymorphicTypesMixIn.java | 30 + .../BatchErrorPolymorphicTypesMixIn.java | 29 + .../arrayOfTypes/AddMixInForArrayOfTypes.java | 4 +- .../arrayOfTypes/ArrayOfTypesMixIn.java | 16 +- .../AddMixInForComplexTypesWithEnumList.java | 2 + .../enums/AddMixInForEnumTypes.java | 3 +- .../enums/DataExclusionEnumsMixIn.java | 21 + .../enums/DeviceTypeMixIn.java | 24 + .../SeasonalityAdjustmentEnumsMixIn.java | 21 + .../AdExtensionPolymorphicTypesMixIn.java | 4 +- ...AdGroupCriterionPolymorphicTypesMixIn.java | 4 +- .../AdPolymorphicTypesMixIn.java | 4 +- ...ApplicationFaultPolymorphicTypesMixIn.java | 5 +- .../AssetPolymorphicTypesMixIn.java | 4 +- ...ceGroupDimensionPolymorphicTypesMixIn.java | 4 +- .../AudiencePolymorphicTypesMixIn.java | 4 +- ...hErrorCollectionPolymorphicTypesMixIn.java | 4 +- .../BatchErrorPolymorphicTypesMixIn.java | 4 +- .../BiddingSchemePolymorphicTypesMixIn.java | 4 +- ...ampaignCriterionPolymorphicTypesMixIn.java | 4 +- .../ConversionGoalPolymorphicTypesMixIn.java | 4 +- .../CriterionBidPolymorphicTypesMixIn.java | 4 +- ...riterionCashbackPolymorphicTypesMixIn.java | 4 +- .../CriterionPolymorphicTypesMixIn.java | 4 +- .../ImportJobPolymorphicTypesMixIn.java | 4 +- .../ImportOptionPolymorphicTypesMixIn.java | 4 +- .../MediaPolymorphicTypesMixIn.java | 4 +- ...iaRepresentationPolymorphicTypesMixIn.java | 4 +- .../RemarketingRulePolymorphicTypesMixIn.java | 4 +- .../RuleItemPolymorphicTypesMixIn.java | 4 +- .../SettingPolymorphicTypesMixIn.java | 4 +- .../SharedEntityPolymorphicTypesMixIn.java | 4 +- .../SharedListItemPolymorphicTypesMixIn.java | 6 +- .../SharedListPolymorphicTypesMixIn.java | 6 +- .../arrayOfTypes/AddMixInForArrayOfTypes.java | 60 ++ .../arrayOfTypes/ArrayOfTypesMixIn.java | 192 ++++++ .../AccountPerformanceReportColumnMixIn.java | 24 + ...ountPerformanceReportFilterEnumsMixIn.java | 36 + ...AccountStatusReportFilterDeserializer.java | 27 + .../enums/AccountStatusReportFilterMixIn.java | 24 + ...dDistributionReportFilterDeserializer.java | 27 + .../AdDistributionReportFilterMixIn.java | 24 + ...namicTextPerformanceReportColumnMixIn.java | 24 + ...TextPerformanceReportFilterEnumsMixIn.java | 56 ++ .../AdExtensionByAdReportColumnMixIn.java | 24 + ...AdExtensionByAdReportFilterEnumsMixIn.java | 46 ++ ...AdExtensionByKeywordReportColumnMixIn.java | 24 + ...ensionByKeywordReportFilterEnumsMixIn.java | 46 ++ .../AdExtensionDetailReportColumnMixIn.java | 24 + ...ExtensionDetailReportFilterEnumsMixIn.java | 46 ++ .../AdGroupPerformanceReportColumnMixIn.java | 24 + ...roupPerformanceReportFilterEnumsMixIn.java | 51 ++ ...AdGroupStatusReportFilterDeserializer.java | 27 + .../enums/AdGroupStatusReportFilterMixIn.java | 24 + .../enums/AdPerformanceReportColumnMixIn.java | 24 + .../AdPerformanceReportFilterEnumsMixIn.java | 56 ++ .../AdStatusReportFilterDeserializer.java | 27 + .../enums/AdStatusReportFilterMixIn.java | 24 + .../enums/AdTypeReportFilterDeserializer.java | 27 + .../enums/AdTypeReportFilterMixIn.java | 24 + .../AddMixInForComplexTypesWithEnumList.java | 49 ++ .../reporting/enums/AddMixInForEnumTypes.java | 74 ++ .../AgeGenderAudienceReportColumnMixIn.java | 24 + ...eGenderAudienceReportFilterEnumsMixIn.java | 41 ++ ...etGroupStatusReportFilterDeserializer.java | 27 + .../AssetGroupStatusReportFilterMixIn.java | 24 + .../AudiencePerformanceReportColumnMixIn.java | 24 + ...encePerformanceReportFilterEnumsMixIn.java | 31 + .../BidMatchTypeReportFilterDeserializer.java | 27 + .../enums/BidMatchTypeReportFilterMixIn.java | 24 + ...dStrategyTypeReportFilterDeserializer.java | 27 + .../BidStrategyTypeReportFilterMixIn.java | 24 + .../enums/BudgetSummaryReportColumnMixIn.java | 24 + .../enums/CallDetailReportColumnMixIn.java | 24 + .../CallDetailReportFilterEnumsMixIn.java | 31 + .../CampaignPerformanceReportColumnMixIn.java | 24 + ...aignPerformanceReportFilterEnumsMixIn.java | 41 ++ ...ampaignStatusReportFilterDeserializer.java | 27 + .../CampaignStatusReportFilterMixIn.java | 24 + .../ChangeEntityReportFilterDeserializer.java | 27 + .../enums/ChangeEntityReportFilterMixIn.java | 24 + .../ChangeTypeReportFilterDeserializer.java | 27 + .../enums/ChangeTypeReportFilterMixIn.java | 24 + ...onversionPerformanceReportColumnMixIn.java | 24 + ...sionPerformanceReportFilterEnumsMixIn.java | 46 ++ ...utoTargetPerformanceReportColumnMixIn.java | 24 + ...rgetPerformanceReportFilterEnumsMixIn.java | 46 ++ ...ACategoryPerformanceReportColumnMixIn.java | 24 + ...goryPerformanceReportFilterEnumsMixIn.java | 41 ++ ...archQueryPerformanceReportColumnMixIn.java | 24 + ...ueryPerformanceReportFilterEnumsMixIn.java | 41 ++ ...eredMatchTypeReportFilterDeserializer.java | 27 + .../DeliveredMatchTypeReportFilterMixIn.java | 24 + ...nationUrlPerformanceReportColumnMixIn.java | 24 + ...nUrlPerformanceReportFilterEnumsMixIn.java | 51 ++ .../DeviceOSReportFilterDeserializer.java | 27 + .../enums/DeviceOSReportFilterMixIn.java | 24 + .../DeviceTypeReportFilterDeserializer.java | 27 + .../enums/DeviceTypeReportFilterMixIn.java | 24 + ...dTargetStatusReportFilterDeserializer.java | 27 + ...ynamicAdTargetStatusReportFilterMixIn.java | 24 + ...eographicPerformanceReportColumnMixIn.java | 24 + ...phicPerformanceReportFilterEnumsMixIn.java | 46 ++ .../GoalsAndFunnelsReportColumnMixIn.java | 24 + ...GoalsAndFunnelsReportFilterEnumsMixIn.java | 51 ++ ...DimensionPerformanceReportColumnMixIn.java | 24 + ...sionPerformanceReportFilterEnumsMixIn.java | 36 + ...otelGroupPerformanceReportColumnMixIn.java | 24 + ...roupPerformanceReportFilterEnumsMixIn.java | 36 + .../KeywordPerformanceReportColumnMixIn.java | 24 + ...wordPerformanceReportFilterEnumsMixIn.java | 71 ++ ...KeywordStatusReportFilterDeserializer.java | 27 + .../enums/KeywordStatusReportFilterMixIn.java | 24 + .../LanguageReportFilterDeserializer.java | 27 + .../enums/LanguageReportFilterMixIn.java | 24 + ...ativeKeywordConflictReportColumnMixIn.java | 24 + ...KeywordConflictReportFilterEnumsMixIn.java | 36 + ...DimensionPerformanceReportColumnMixIn.java | 24 + ...sionPerformanceReportFilterEnumsMixIn.java | 51 ++ .../ProductMatchCountReportColumnMixIn.java | 24 + ...ativeKeywordConflictReportColumnMixIn.java | 24 + ...KeywordConflictReportFilterEnumsMixIn.java | 36 + ...PartitionPerformanceReportColumnMixIn.java | 24 + ...tionPerformanceReportFilterEnumsMixIn.java | 51 ++ ...itionUnitPerformanceReportColumnMixIn.java | 24 + ...UnitPerformanceReportFilterEnumsMixIn.java | 51 ++ ...archQueryPerformanceReportColumnMixIn.java | 24 + ...ueryPerformanceReportFilterEnumsMixIn.java | 51 ++ ...DemographicsAudienceReportColumnMixIn.java | 24 + ...raphicsAudienceReportFilterEnumsMixIn.java | 41 ++ ...sherUsagePerformanceReportColumnMixIn.java | 24 + ...sagePerformanceReportFilterEnumsMixIn.java | 46 ++ .../enums/ReportAggregationMixIn.java | 24 + .../reporting/enums/ReportFormatMixIn.java | 24 + .../enums/ReportRequestStatusTypeMixIn.java | 24 + .../enums/ReportTimePeriodMixIn.java | 24 + .../reporting/enums/ReportTimeZoneMixIn.java | 24 + ...ampaignChangeHistoryReportColumnMixIn.java | 24 + ...gnChangeHistoryReportFilterEnumsMixIn.java | 31 + ...archQueryPerformanceReportColumnMixIn.java | 24 + ...ueryPerformanceReportFilterEnumsMixIn.java | 56 ++ .../enums/ShareOfVoiceReportColumnMixIn.java | 24 + .../ShareOfVoiceReportFilterEnumsMixIn.java | 66 ++ .../reporting/enums/SortOrderMixIn.java | 24 + ...rLocationPerformanceReportColumnMixIn.java | 24 + ...tionPerformanceReportFilterEnumsMixIn.java | 26 + .../AddMixInForPolymorphicTypes.java | 18 + ...ApplicationFaultPolymorphicTypesMixIn.java | 30 + .../ReportRequestPolymorphicTypesMixIn.java | 96 +++ .../bingads/v13/bulk/BulkServiceManager.java | 14 +- .../BulkAccountNegativeKeywordList.java | 164 +++++ ...AccountNegativeKeywordListAssociation.java | 169 +++++ .../BulkAccountSharedNegativeKeyword.java | 49 ++ .../v13/bulk/entities/BulkCampaign.java | 171 +++-- .../v13/bulk/entities/BulkDataExclusion.java | 272 ++++++++ .../entities/BulkSeasonalityAdjustment.java | 287 ++++++++ .../entities/StaticBulkObjectFactory.java | 32 + .../bingads/v13/internal/bulk/CsvHeaders.java | 12 + .../v13/internal/bulk/StringExtensions.java | 104 ++- .../v13/internal/bulk/StringTable.java | 12 + .../campaign/BulkCampaignReadTests.java | 4 +- .../campaign/BulkCampaignWriteTests.java | 7 +- ...RowValuesAutoGeneratedImageOptOutTest.java | 67 ++ ...mRowValuesAutoGeneratedTextOptOutTest.java | 67 ++ ...omRowValuesPerformanceMaxSettingsTest.java | 28 +- ...RowValuesVerifiedTrackingSettingsTest.java | 85 --- ...RowValuesAutoGeneratedImageOptOutTest.java | 53 ++ ...oRowValuesAutoGeneratedTextOptOutTest.java | 51 ++ ...uesDetailsVerifiedTrackingSettingTest.java | 63 -- ...sImageOptOutPerformanceMaxSettingTest.java | 43 ++ ...sPageFeedIdsPerformanceMaxSettingTest.java | 45 ++ ...esTextOptOutPerformanceMaxSettingTest.java | 43 ++ .../data_exclusion/BulkDataExclusionTest.java | 71 ++ .../BulkDataExclusionTests.java | 14 + ...FromRowValuesCampaignAssociationsTest.java | 59 ++ ...sionReadFromRowValuesCampaignTypeTest.java | 49 ++ ...ionReadFromRowValuesDataExclusionTest.java | 39 ++ ...usionReadFromRowValuesDescriptionTest.java | 39 ++ ...lusionReadFromRowValuesDeviceTypeTest.java | 39 ++ ...ExclusionReadFromRowValuesEndDateTest.java | 51 ++ ...kDataExclusionReadFromRowValuesIdTest.java | 41 ++ ...clusionReadFromRowValuesStartDateTest.java | 51 ++ .../read/BulkDataExclusionReadTests.java | 20 + .../write/BulkDataExclusionWriteTests.java | 20 + ...teToRowValuesCampaignAssociationsTest.java | 50 ++ ...usionWriteToRowValuesCampaignTypeTest.java | 41 ++ ...sionWriteToRowValuesDataExclusionTest.java | 39 ++ ...lusionWriteToRowValuesDescriptionTest.java | 39 ++ ...clusionWriteToRowValuesDeviceTypeTest.java | 41 ++ ...aExclusionWriteToRowValuesEndDateTest.java | 52 ++ ...lkDataExclusionWriteToRowValuesIdTest.java | 40 ++ ...xclusionWriteToRowValuesStartDateTest.java | 52 ++ .../BulkAccountNegativeKeywordListTest.java | 50 ++ .../BulkAccountNegativeKeywordListTests.java | 14 + ...iveKeywordListReadFromRowValuesIdTest.java | 39 ++ ...eKeywordListReadFromRowValuesNameTest.java | 37 + ...eywordListReadFromRowValuesStatusTest.java | 45 ++ ...lkAccountNegativeKeywordListReadTests.java | 14 + ...kAccountNegativeKeywordListWriteTests.java | 14 + ...tiveKeywordListWriteToRowValuesIdTest.java | 39 ++ ...veKeywordListWriteToRowValuesNameTest.java | 40 ++ ...KeywordListWriteToRowValuesStatusTest.java | 40 ++ .../BulkAccountNKListAssociationTest.java | 50 ++ .../BulkAccountNKListAssociationTests.java | 14 + ...ociationReadFromRowValuesEntityIdTest.java | 35 + ...onReadFromRowValuesSharedEntityIdTest.java | 39 ++ ...ssociationReadFromRowValuesStatusTest.java | 44 ++ ...BulkAccountNKListAssociationReadTests.java | 14 + ...ulkAccountNKListAssociationWriteTests.java | 14 + ...sociationWriteToRowValuesEntityIdTest.java | 39 ++ ...ionWriteToRowValuesSharedEntityIdTest.java | 39 ++ ...AssociationWriteToRowValuesStatusTest.java | 41 ++ .../BulkSeasonalityAdjustmentTest.java | 71 ++ .../BulkSeasonalityAdjustmentTests.java | 14 + ...ntReadFromRowValueAdjustmentValueTest.java | 40 ++ ...FromRowValuesCampaignAssociationsTest.java | 59 ++ ...mentReadFromRowValuesCampaignTypeTest.java | 49 ++ ...tmentReadFromRowValuesDescriptionTest.java | 39 ++ ...stmentReadFromRowValuesDeviceTypeTest.java | 39 ++ ...djustmentReadFromRowValuesEndDateTest.java | 51 ++ ...lityAdjustmentReadFromRowValuesIdTest.java | 41 ++ ...romRowValuesSeasonalityAdjustmentTest.java | 39 ++ ...ustmentReadFromRowValuesStartDateTest.java | 51 ++ .../BulkSeasonalityAdjustmentReadTests.java | 21 + .../BulkSeasonalityAdjustmentWriteTests.java | 21 + ...entWriteToRowValueAdjustmentValueTest.java | 40 ++ ...teToRowValuesCampaignAssociationsTest.java | 50 ++ ...tmentWriteToRowValuesCampaignTypeTest.java | 41 ++ ...stmentWriteToRowValuesDescriptionTest.java | 39 ++ ...ustmentWriteToRowValuesDeviceTypeTest.java | 41 ++ ...AdjustmentWriteToRowValuesEndDateTest.java | 52 ++ ...alityAdjustmentWriteToRowValuesIdTest.java | 40 ++ ...eToRowValuesSeasonalityAdjustmentTest.java | 39 ++ ...justmentWriteToRowValuesStartDateTest.java | 52 ++ .../api/test/operations/ApiServiceTest.java | 6 + .../restfulapi/NumericNodeComparator.java | 25 + .../test/restfulapi/RestApiRequestTest.java | 114 ++++ .../test/restfulapi/RestApiResponseTest.java | 145 ++++ .../api/test/restfulapi/RestApiTestBase.java | 238 +++++++ 465 files changed, 19813 insertions(+), 685 deletions(-) create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/AgeEnum.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationEntity.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ArrayOfAgeEnum.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ArrayOfApplyRecommendationEntity.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ArrayOfDismissRecommendationEntity.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ArrayOfGenderEnum.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRadiusTarget.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRecommendationBase.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/CampaignBudgetRecommendation.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/Currency.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/DecimalRoundedResult.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationEntity.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/Feed.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/GenderEnum.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/KeywordRecommendation.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RadiusTarget.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RadiusUnit.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfDecimalRoundedResult.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfdouble.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RecommendationBase.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RecommendationType.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ResponsiveSearchAdRecommendation.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/ScaleUnit.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/SelectionOfAgeEnum.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/SelectionOfGenderEnum.java create mode 100644 proxies/com/microsoft/bingads/v13/adinsight/SelectionOflong.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCampaignAssociation.java rename proxies/com/microsoft/bingads/v13/campaignmanagement/{ArrayOfCustomerListItem.java => ArrayOfDataExclusion.java} (51%) create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfSeasonalityAdjustment.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/BrandItem.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/BrandList.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAssociation.java delete mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListItem.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListUserData.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/DataExclusion.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/DeviceType.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/SeasonalityAdjustment.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalField.java create mode 100644 proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalFieldConverter.java create mode 100644 proxies/com/microsoft/bingads/v13/customerbilling/Adapter2.java create mode 100644 proxies/com/microsoft/bingads/v13/customerbilling/Adapter3.java create mode 100644 proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalField.java create mode 100644 proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalFieldConverter.java create mode 100644 proxies/com/microsoft/bingads/v13/customermanagement/ArrayOfKeyValueEntityOflongint.java create mode 100644 proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v13/customermanagement/KeyValueEntityOflongint.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/BulkRestfulServiceClient.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/ReportingRestfulServiceClient.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/AddMixInForArrayOfTypes.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/ArrayOfTypesMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForComplexTypesWithEnumList.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForEnumTypes.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/CompressionTypeMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByAccountIdsRequestEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByCampaignIdsRequestEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadEntityMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadFileTypeMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/ResponseModeMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/AddMixInForPolymorphicTypes.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DataExclusionEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DeviceTypeMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/SeasonalityAdjustmentEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/AddMixInForArrayOfTypes.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/ArrayOfTypesMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForComplexTypesWithEnumList.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForEnumTypes.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BudgetSummaryReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterDeserializer.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductMatchCountReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportAggregationMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportFormatMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportRequestStatusTypeMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimePeriodMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimeZoneMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SortOrderMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportColumnMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportFilterEnumsMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/AddMixInForPolymorphicTypes.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ReportRequestPolymorphicTypesMixIn.java create mode 100644 src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordList.java create mode 100644 src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordListAssociation.java create mode 100644 src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountSharedNegativeKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkDataExclusion.java create mode 100644 src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkSeasonalityAdjustment.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedImageOptOutTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedTextOptOutTest.java delete mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedImageOptOutTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedTextOptOutTest.java delete mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesImageOptOutPerformanceMaxSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPageFeedIdsPerformanceMaxSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTextOptOutPerformanceMaxSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignAssociationsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDataExclusionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDescriptionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDeviceTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesEndDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesStartDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignAssociationsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDataExclusionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDescriptionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDeviceTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesEndDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesStartDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesSharedEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesSharedEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValueAdjustmentValueTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignAssociationsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDescriptionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDeviceTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesEndDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesSeasonalityAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesStartDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValueAdjustmentValueTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignAssociationsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDescriptionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDeviceTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesEndDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesSeasonalityAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesStartDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java create mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java diff --git a/README.md b/README.md index ade54a9b64..85adf1e494 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The Bing Ads Java SDK includes and depends on the microsoft.bingads Maven artifa com.microsoft.bingads microsoft.bingads - 13.0.18 + 13.0.19 ``` If you are not using a Maven project, you must include the correct version of each dependency. You can review the complete list of Bing Ads Java SDK dependencies at the [Maven Repository](http://mvnrepository.com/artifact/com.microsoft.bingads/microsoft.bingads/). diff --git a/pom.xml b/pom.xml index 36ccab7b7b..d153c906e3 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 com.microsoft.bingads - 13.0.18 + 13.0.19 Bing Ads Java SDK The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API. https://github.com/BingAds/BingAds-Java-SDK diff --git a/proxies/com/microsoft/bingads/v13/adinsight/AgeEnum.java b/proxies/com/microsoft/bingads/v13/adinsight/AgeEnum.java new file mode 100644 index 0000000000..9da7c19d1a --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/AgeEnum.java @@ -0,0 +1,68 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for AgeEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "AgeEnum") +@XmlEnum +public enum AgeEnum { + + @XmlEnumValue("Unknown") + UNKNOWN("Unknown"), + @XmlEnumValue("ZeroToTwelve") + ZERO_TO_TWELVE("ZeroToTwelve"), + @XmlEnumValue("ThirteenToSevenTeen") + THIRTEEN_TO_SEVEN_TEEN("ThirteenToSevenTeen"), + @XmlEnumValue("EighteenToTwentyFour") + EIGHTEEN_TO_TWENTY_FOUR("EighteenToTwentyFour"), + @XmlEnumValue("TwentyFiveToThirtyFour") + TWENTY_FIVE_TO_THIRTY_FOUR("TwentyFiveToThirtyFour"), + @XmlEnumValue("ThirtyFiveToFourtyNine") + THIRTY_FIVE_TO_FOURTY_NINE("ThirtyFiveToFourtyNine"), + @XmlEnumValue("FiftyToSixtyFour") + FIFTY_TO_SIXTY_FOUR("FiftyToSixtyFour"), + @XmlEnumValue("SixtyFiveAndAbove") + SIXTY_FIVE_AND_ABOVE("SixtyFiveAndAbove"); + private final String value; + + AgeEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AgeEnum fromValue(String v) { + for (AgeEnum c: AgeEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationEntity.java b/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationEntity.java new file mode 100644 index 0000000000..a3ab2933fe --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationEntity.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApplyRecommendationEntity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApplyRecommendationEntity", propOrder = { + "recommendationId", + "recommendationType" +}) +public class ApplyRecommendationEntity { + + @XmlElement(name = "RecommendationId", nillable = true) + protected String recommendationId; + @XmlElement(name = "RecommendationType", nillable = true) + protected String recommendationType; + + /** + * Gets the value of the recommendationId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationId() { + return recommendationId; + } + + /** + * Sets the value of the recommendationId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationId(String value) { + this.recommendationId = value; + } + + /** + * Gets the value of the recommendationType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationType() { + return recommendationType; + } + + /** + * Sets the value of the recommendationType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationType(String value) { + this.recommendationType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsRequest.java b/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsRequest.java new file mode 100644 index 0000000000..11e4c3b7da --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entities" +}) +@XmlRootElement(name = "ApplyRecommendationsRequest") +public class ApplyRecommendationsRequest { + + @XmlElement(name = "Entities", nillable = true) + protected ArrayOfApplyRecommendationEntity entities; + + /** + * Gets the value of the entities property. + * + * @return + * possible object is + * {@link ArrayOfApplyRecommendationEntity } + * + */ + public ArrayOfApplyRecommendationEntity getEntities() { + return entities; + } + + /** + * Sets the value of the entities property. + * + * @param value + * allowed object is + * {@link ArrayOfApplyRecommendationEntity } + * + */ + public void setEntities(ArrayOfApplyRecommendationEntity value) { + this.entities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsResponse.java b/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsResponse.java new file mode 100644 index 0000000000..e4b10d731f --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ApplyRecommendationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "ApplyRecommendationsResponse") +public class ApplyRecommendationsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfAgeEnum.java b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfAgeEnum.java new file mode 100644 index 0000000000..3d077a5de3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfAgeEnum.java @@ -0,0 +1,73 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAgeEnum complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAgeEnum", propOrder = { + "ageEna" +}) +public class ArrayOfAgeEnum { + + @XmlElement(name = "AgeEnum") + @XmlSchemaType(name = "string") + protected List ageEna; + + /** + * Gets the value of the ageEna property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the ageEna property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAgeEna().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AgeEnum } + * + * + * @return + * The value of the ageEna property. + */ + public List getAgeEna() { + if (ageEna == null) { + ageEna = new ArrayList<>(); + } + return this.ageEna; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfApplyRecommendationEntity.java b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfApplyRecommendationEntity.java new file mode 100644 index 0000000000..5997e00201 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfApplyRecommendationEntity.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfApplyRecommendationEntity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfApplyRecommendationEntity", propOrder = { + "applyRecommendationEntities" +}) +public class ArrayOfApplyRecommendationEntity { + + @XmlElement(name = "ApplyRecommendationEntity", nillable = true) + protected List applyRecommendationEntities; + + /** + * Gets the value of the applyRecommendationEntities property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the applyRecommendationEntities property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getApplyRecommendationEntities().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ApplyRecommendationEntity } + * + * + * @return + * The value of the applyRecommendationEntities property. + */ + public List getApplyRecommendationEntities() { + if (applyRecommendationEntities == null) { + applyRecommendationEntities = new ArrayList<>(); + } + return this.applyRecommendationEntities; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfDismissRecommendationEntity.java b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfDismissRecommendationEntity.java new file mode 100644 index 0000000000..1360ddb744 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfDismissRecommendationEntity.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfDismissRecommendationEntity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfDismissRecommendationEntity", propOrder = { + "dismissRecommendationEntities" +}) +public class ArrayOfDismissRecommendationEntity { + + @XmlElement(name = "DismissRecommendationEntity", nillable = true) + protected List dismissRecommendationEntities; + + /** + * Gets the value of the dismissRecommendationEntities property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the dismissRecommendationEntities property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDismissRecommendationEntities().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DismissRecommendationEntity } + * + * + * @return + * The value of the dismissRecommendationEntities property. + */ + public List getDismissRecommendationEntities() { + if (dismissRecommendationEntities == null) { + dismissRecommendationEntities = new ArrayList<>(); + } + return this.dismissRecommendationEntities; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfGenderEnum.java b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfGenderEnum.java new file mode 100644 index 0000000000..609cff81e4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfGenderEnum.java @@ -0,0 +1,73 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfGenderEnum complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfGenderEnum", propOrder = { + "genderEna" +}) +public class ArrayOfGenderEnum { + + @XmlElement(name = "GenderEnum") + @XmlSchemaType(name = "string") + protected List genderEna; + + /** + * Gets the value of the genderEna property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the genderEna property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGenderEna().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link GenderEnum } + * + * + * @return + * The value of the genderEna property. + */ + public List getGenderEna() { + if (genderEna == null) { + genderEna = new ArrayList<>(); + } + return this.genderEna; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRadiusTarget.java b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRadiusTarget.java new file mode 100644 index 0000000000..66fb15ac61 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRadiusTarget.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfRadiusTarget complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfRadiusTarget", propOrder = { + "radiusTargets" +}) +public class ArrayOfRadiusTarget { + + @XmlElement(name = "RadiusTarget", nillable = true) + protected List radiusTargets; + + /** + * Gets the value of the radiusTargets property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the radiusTargets property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRadiusTargets().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link RadiusTarget } + * + * + * @return + * The value of the radiusTargets property. + */ + public List getRadiusTargets() { + if (radiusTargets == null) { + radiusTargets = new ArrayList<>(); + } + return this.radiusTargets; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRecommendationBase.java b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRecommendationBase.java new file mode 100644 index 0000000000..7dcbe73174 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ArrayOfRecommendationBase.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfRecommendationBase complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfRecommendationBase", propOrder = { + "recommendationBases" +}) +public class ArrayOfRecommendationBase { + + @XmlElement(name = "RecommendationBase", nillable = true) + protected List recommendationBases; + + /** + * Gets the value of the recommendationBases property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the recommendationBases property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRecommendationBases().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link RecommendationBase } + * + * + * @return + * The value of the recommendationBases property. + */ + public List getRecommendationBases() { + if (recommendationBases == null) { + recommendationBases = new ArrayList<>(); + } + return this.recommendationBases; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/CampaignBudgetRecommendation.java b/proxies/com/microsoft/bingads/v13/adinsight/CampaignBudgetRecommendation.java new file mode 100644 index 0000000000..e0295f6078 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/CampaignBudgetRecommendation.java @@ -0,0 +1,150 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignBudgetRecommendation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CampaignBudgetRecommendation", propOrder = { + "budgetPoints", + "budgetType", + "currentBudget", + "recommendedBudget" +}) +public class CampaignBudgetRecommendation + extends RecommendationBase +{ + + @XmlElement(name = "BudgetPoints", nillable = true) + protected ArrayOfBudgetPoint budgetPoints; + @XmlElement(name = "BudgetType") + @XmlSchemaType(name = "string") + protected BudgetLimitType budgetType; + @XmlElement(name = "CurrentBudget") + protected Double currentBudget; + @XmlElement(name = "RecommendedBudget") + protected Double recommendedBudget; + + /** + * Gets the value of the budgetPoints property. + * + * @return + * possible object is + * {@link ArrayOfBudgetPoint } + * + */ + public ArrayOfBudgetPoint getBudgetPoints() { + return budgetPoints; + } + + /** + * Sets the value of the budgetPoints property. + * + * @param value + * allowed object is + * {@link ArrayOfBudgetPoint } + * + */ + public void setBudgetPoints(ArrayOfBudgetPoint value) { + this.budgetPoints = value; + } + + /** + * Gets the value of the budgetType property. + * + * @return + * possible object is + * {@link BudgetLimitType } + * + */ + public BudgetLimitType getBudgetType() { + return budgetType; + } + + /** + * Sets the value of the budgetType property. + * + * @param value + * allowed object is + * {@link BudgetLimitType } + * + */ + public void setBudgetType(BudgetLimitType value) { + this.budgetType = value; + } + + /** + * Gets the value of the currentBudget property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCurrentBudget() { + return currentBudget; + } + + /** + * Sets the value of the currentBudget property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCurrentBudget(Double value) { + this.currentBudget = value; + } + + /** + * Gets the value of the recommendedBudget property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getRecommendedBudget() { + return recommendedBudget; + } + + /** + * Sets the value of the recommendedBudget property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setRecommendedBudget(Double value) { + this.recommendedBudget = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/Currency.java b/proxies/com/microsoft/bingads/v13/adinsight/Currency.java new file mode 100644 index 0000000000..906d146391 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/Currency.java @@ -0,0 +1,175 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for Currency. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "Currency") +@XmlEnum +public enum Currency { + + @XmlEnumValue("UnSpecify") + UN_SPECIFY("UnSpecify"), + @XmlEnumValue("AlgerianDinar") + ALGERIAN_DINAR("AlgerianDinar"), + @XmlEnumValue("ArgentinePeso") + ARGENTINE_PESO("ArgentinePeso"), + @XmlEnumValue("AustralianDollar") + AUSTRALIAN_DOLLAR("AustralianDollar"), + @XmlEnumValue("Baht") + BAHT("Baht"), + @XmlEnumValue("Bolivar") + BOLIVAR("Bolivar"), + @XmlEnumValue("BrazilianReal") + BRAZILIAN_REAL("BrazilianReal"), + @XmlEnumValue("CanadianDollar") + CANADIAN_DOLLAR("CanadianDollar"), + @XmlEnumValue("ChileanPeso") + CHILEAN_PESO("ChileanPeso"), + @XmlEnumValue("ColombianPeso") + COLOMBIAN_PESO("ColombianPeso"), + @XmlEnumValue("CzechKoruna") + CZECH_KORUNA("CzechKoruna"), + @XmlEnumValue("DanishKrone") + DANISH_KRONE("DanishKrone"), + @XmlEnumValue("Dong") + DONG("Dong"), + @XmlEnumValue("EgyptianPound") + EGYPTIAN_POUND("EgyptianPound"), + EURO("EURO"), + @XmlEnumValue("Forint") + FORINT("Forint"), + @XmlEnumValue("HongKongDollar") + HONG_KONG_DOLLAR("HongKongDollar"), + @XmlEnumValue("IndianRupee") + INDIAN_RUPEE("IndianRupee"), + @XmlEnumValue("JapaneseYen") + JAPANESE_YEN("JapaneseYen"), + @XmlEnumValue("LebanesePound") + LEBANESE_POUND("LebanesePound"), + @XmlEnumValue("MalaysianRinggit") + MALAYSIAN_RINGGIT("MalaysianRinggit"), + @XmlEnumValue("MexicanPeso") + MEXICAN_PESO("MexicanPeso"), + @XmlEnumValue("MoroccanDirham") + MOROCCAN_DIRHAM("MoroccanDirham"), + @XmlEnumValue("NewTaiwanDollar") + NEW_TAIWAN_DOLLAR("NewTaiwanDollar"), + @XmlEnumValue("NewZealandDollar") + NEW_ZEALAND_DOLLAR("NewZealandDollar"), + @XmlEnumValue("NorwegianKrone") + NORWEGIAN_KRONE("NorwegianKrone"), + @XmlEnumValue("NuevoSol") + NUEVO_SOL("NuevoSol"), + @XmlEnumValue("PhilippinePeso") + PHILIPPINE_PESO("PhilippinePeso"), + @XmlEnumValue("QatariRial") + QATARI_RIAL("QatariRial"), + @XmlEnumValue("Rupiah") + RUPIAH("Rupiah"), + @XmlEnumValue("SaudiRiyal") + SAUDI_RIYAL("SaudiRiyal"), + @XmlEnumValue("SingaporeDollar") + SINGAPORE_DOLLAR("SingaporeDollar"), + @XmlEnumValue("SouthAfricanRand") + SOUTH_AFRICAN_RAND("SouthAfricanRand"), + @XmlEnumValue("SwedishKrona") + SWEDISH_KRONA("SwedishKrona"), + @XmlEnumValue("SwissFranc") + SWISS_FRANC("SwissFranc"), + @XmlEnumValue("TurkishLira") + TURKISH_LIRA("TurkishLira"), + @XmlEnumValue("UKPound") + UK_POUND("UKPound"), + @XmlEnumValue("USDollar") + US_DOLLAR("USDollar"), + @XmlEnumValue("Won") + WON("Won"), + @XmlEnumValue("YuanRenminbi") + YUAN_RENMINBI("YuanRenminbi"), + @XmlEnumValue("PolishZloty") + POLISH_ZLOTY("PolishZloty"), + @XmlEnumValue("UAEDirham") + UAE_DIRHAM("UAEDirham"), + @XmlEnumValue("IsraeliSheqel") + ISRAELI_SHEQEL("IsraeliSheqel"), + @XmlEnumValue("NigerianNaira") + NIGERIAN_NAIRA("NigerianNaira"); + private final String value; + + Currency(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Currency fromValue(String v) { + for (Currency c: Currency.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/DecimalRoundedResult.java b/proxies/com/microsoft/bingads/v13/adinsight/DecimalRoundedResult.java new file mode 100644 index 0000000000..3c45b1b649 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/DecimalRoundedResult.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for DecimalRoundedResult complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DecimalRoundedResult", propOrder = { + "value", + "unit" +}) +public class DecimalRoundedResult { + + @XmlElement(name = "Value", nillable = true) + protected Double value; + @XmlElement(name = "Unit", nillable = true) + @XmlSchemaType(name = "string") + protected ScaleUnit unit; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setValue(Double value) { + this.value = value; + } + + /** + * Gets the value of the unit property. + * + * @return + * possible object is + * {@link ScaleUnit } + * + */ + public ScaleUnit getUnit() { + return unit; + } + + /** + * Sets the value of the unit property. + * + * @param value + * allowed object is + * {@link ScaleUnit } + * + */ + public void setUnit(ScaleUnit value) { + this.unit = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationEntity.java b/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationEntity.java new file mode 100644 index 0000000000..bcb29d98ca --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationEntity.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for DismissRecommendationEntity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DismissRecommendationEntity", propOrder = { + "recommendationId", + "recommendationType" +}) +public class DismissRecommendationEntity { + + @XmlElement(name = "RecommendationId", nillable = true) + protected String recommendationId; + @XmlElement(name = "RecommendationType", nillable = true) + protected String recommendationType; + + /** + * Gets the value of the recommendationId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationId() { + return recommendationId; + } + + /** + * Sets the value of the recommendationId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationId(String value) { + this.recommendationId = value; + } + + /** + * Gets the value of the recommendationType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationType() { + return recommendationType; + } + + /** + * Sets the value of the recommendationType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationType(String value) { + this.recommendationType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsRequest.java b/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsRequest.java new file mode 100644 index 0000000000..947f20a55a --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entities" +}) +@XmlRootElement(name = "DismissRecommendationsRequest") +public class DismissRecommendationsRequest { + + @XmlElement(name = "Entities", nillable = true) + protected ArrayOfDismissRecommendationEntity entities; + + /** + * Gets the value of the entities property. + * + * @return + * possible object is + * {@link ArrayOfDismissRecommendationEntity } + * + */ + public ArrayOfDismissRecommendationEntity getEntities() { + return entities; + } + + /** + * Sets the value of the entities property. + * + * @param value + * allowed object is + * {@link ArrayOfDismissRecommendationEntity } + * + */ + public void setEntities(ArrayOfDismissRecommendationEntity value) { + this.entities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsResponse.java b/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsResponse.java new file mode 100644 index 0000000000..33afdd8307 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/DismissRecommendationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DismissRecommendationsResponse") +public class DismissRecommendationsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/Feed.java b/proxies/com/microsoft/bingads/v13/adinsight/Feed.java new file mode 100644 index 0000000000..2dd5632439 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/Feed.java @@ -0,0 +1,118 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for Feed complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Feed", propOrder = { + "storeId", + "feedId", + "feedType" +}) +public class Feed { + + @XmlElement(name = "StoreId", nillable = true) + protected Long storeId; + @XmlElement(name = "FeedId", nillable = true) + protected Long feedId; + @XmlElement(name = "FeedType", nillable = true) + protected Long feedType; + + /** + * Gets the value of the storeId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getStoreId() { + return storeId; + } + + /** + * Sets the value of the storeId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setStoreId(Long value) { + this.storeId = value; + } + + /** + * Gets the value of the feedId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFeedId() { + return feedId; + } + + /** + * Sets the value of the feedId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFeedId(Long value) { + this.feedId = value; + } + + /** + * Gets the value of the feedType property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFeedType() { + return feedType; + } + + /** + * Sets the value of the feedType property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFeedType(Long value) { + this.feedType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/GenderEnum.java b/proxies/com/microsoft/bingads/v13/adinsight/GenderEnum.java new file mode 100644 index 0000000000..a20b802955 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/GenderEnum.java @@ -0,0 +1,53 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for GenderEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "GenderEnum") +@XmlEnum +public enum GenderEnum { + + @XmlEnumValue("Unknown") + UNKNOWN("Unknown"), + @XmlEnumValue("Male") + MALE("Male"), + @XmlEnumValue("Female") + FEMALE("Female"); + private final String value; + + GenderEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static GenderEnum fromValue(String v) { + for (GenderEnum c: GenderEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationRequest.java b/proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationRequest.java new file mode 100644 index 0000000000..91038efb83 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationRequest.java @@ -0,0 +1,431 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.math.BigDecimal; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "age", + "gender", + "audience", + "company", + "industry", + "jobFunction", + "location", + "radiusTargets", + "campaignBiddingStrategy", + "campaignSubType", + "feed", + "dailyBudget", + "bid", + "currency" +}) +@XmlRootElement(name = "GetAudienceFullEstimationRequest") +public class GetAudienceFullEstimationRequest { + + @XmlElement(name = "Age", nillable = true) + protected SelectionOfAgeEnum age; + @XmlElement(name = "Gender", nillable = true) + protected SelectionOfGenderEnum gender; + @XmlElement(name = "Audience", nillable = true) + protected SelectionOflong audience; + @XmlElement(name = "Company", nillable = true) + protected SelectionOflong company; + @XmlElement(name = "Industry", nillable = true) + protected SelectionOflong industry; + @XmlElement(name = "JobFunction", nillable = true) + protected SelectionOflong jobFunction; + @XmlElement(name = "Location", nillable = true) + protected SelectionOflong location; + @XmlElement(name = "RadiusTargets", nillable = true) + protected ArrayOfRadiusTarget radiusTargets; + @XmlElement(name = "CampaignBiddingStrategy", nillable = true) + protected Integer campaignBiddingStrategy; + @XmlElement(name = "CampaignSubType", nillable = true) + protected Integer campaignSubType; + @XmlElement(name = "Feed", nillable = true) + protected Feed feed; + @XmlElement(name = "DailyBudget", nillable = true) + protected BigDecimal dailyBudget; + @XmlElement(name = "Bid", nillable = true) + protected BigDecimal bid; + @XmlElement(name = "Currency", nillable = true) + @XmlSchemaType(name = "string") + protected Currency currency; + + /** + * Gets the value of the age property. + * + * @return + * possible object is + * {@link SelectionOfAgeEnum } + * + */ + public SelectionOfAgeEnum getAge() { + return age; + } + + /** + * Sets the value of the age property. + * + * @param value + * allowed object is + * {@link SelectionOfAgeEnum } + * + */ + public void setAge(SelectionOfAgeEnum value) { + this.age = value; + } + + /** + * Gets the value of the gender property. + * + * @return + * possible object is + * {@link SelectionOfGenderEnum } + * + */ + public SelectionOfGenderEnum getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value + * allowed object is + * {@link SelectionOfGenderEnum } + * + */ + public void setGender(SelectionOfGenderEnum value) { + this.gender = value; + } + + /** + * Gets the value of the audience property. + * + * @return + * possible object is + * {@link SelectionOflong } + * + */ + public SelectionOflong getAudience() { + return audience; + } + + /** + * Sets the value of the audience property. + * + * @param value + * allowed object is + * {@link SelectionOflong } + * + */ + public void setAudience(SelectionOflong value) { + this.audience = value; + } + + /** + * Gets the value of the company property. + * + * @return + * possible object is + * {@link SelectionOflong } + * + */ + public SelectionOflong getCompany() { + return company; + } + + /** + * Sets the value of the company property. + * + * @param value + * allowed object is + * {@link SelectionOflong } + * + */ + public void setCompany(SelectionOflong value) { + this.company = value; + } + + /** + * Gets the value of the industry property. + * + * @return + * possible object is + * {@link SelectionOflong } + * + */ + public SelectionOflong getIndustry() { + return industry; + } + + /** + * Sets the value of the industry property. + * + * @param value + * allowed object is + * {@link SelectionOflong } + * + */ + public void setIndustry(SelectionOflong value) { + this.industry = value; + } + + /** + * Gets the value of the jobFunction property. + * + * @return + * possible object is + * {@link SelectionOflong } + * + */ + public SelectionOflong getJobFunction() { + return jobFunction; + } + + /** + * Sets the value of the jobFunction property. + * + * @param value + * allowed object is + * {@link SelectionOflong } + * + */ + public void setJobFunction(SelectionOflong value) { + this.jobFunction = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link SelectionOflong } + * + */ + public SelectionOflong getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link SelectionOflong } + * + */ + public void setLocation(SelectionOflong value) { + this.location = value; + } + + /** + * Gets the value of the radiusTargets property. + * + * @return + * possible object is + * {@link ArrayOfRadiusTarget } + * + */ + public ArrayOfRadiusTarget getRadiusTargets() { + return radiusTargets; + } + + /** + * Sets the value of the radiusTargets property. + * + * @param value + * allowed object is + * {@link ArrayOfRadiusTarget } + * + */ + public void setRadiusTargets(ArrayOfRadiusTarget value) { + this.radiusTargets = value; + } + + /** + * Gets the value of the campaignBiddingStrategy property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCampaignBiddingStrategy() { + return campaignBiddingStrategy; + } + + /** + * Sets the value of the campaignBiddingStrategy property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCampaignBiddingStrategy(Integer value) { + this.campaignBiddingStrategy = value; + } + + /** + * Gets the value of the campaignSubType property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCampaignSubType() { + return campaignSubType; + } + + /** + * Sets the value of the campaignSubType property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCampaignSubType(Integer value) { + this.campaignSubType = value; + } + + /** + * Gets the value of the feed property. + * + * @return + * possible object is + * {@link Feed } + * + */ + public Feed getFeed() { + return feed; + } + + /** + * Sets the value of the feed property. + * + * @param value + * allowed object is + * {@link Feed } + * + */ + public void setFeed(Feed value) { + this.feed = value; + } + + /** + * Gets the value of the dailyBudget property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getDailyBudget() { + return dailyBudget; + } + + /** + * Sets the value of the dailyBudget property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setDailyBudget(BigDecimal value) { + this.dailyBudget = value; + } + + /** + * Gets the value of the bid property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getBid() { + return bid; + } + + /** + * Sets the value of the bid property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setBid(BigDecimal value) { + this.bid = value; + } + + /** + * Gets the value of the currency property. + * + * @return + * possible object is + * {@link Currency } + * + */ + public Currency getCurrency() { + return currency; + } + + /** + * Sets the value of the currency property. + * + * @param value + * allowed object is + * {@link Currency } + * + */ + public void setCurrency(Currency value) { + this.currency = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationResponse.java b/proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationResponse.java new file mode 100644 index 0000000000..e3b6d67b05 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/GetAudienceFullEstimationResponse.java @@ -0,0 +1,403 @@ + +package com.microsoft.bingads.v13.adinsight; + +import java.math.BigDecimal; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "estImpression", + "estAudienceSize", + "estClick", + "estSpend", + "estCostPerEvent", + "estCTR", + "suggestedBid", + "suggestedBudget", + "eventsLostToBid", + "eventsLostToBudget", + "estReachAudienceSize", + "estReachImpression", + "currency" +}) +@XmlRootElement(name = "GetAudienceFullEstimationResponse") +public class GetAudienceFullEstimationResponse { + + @XmlElement(name = "EstImpression", nillable = true) + protected RangeResultOfDecimalRoundedResult estImpression; + @XmlElement(name = "EstAudienceSize", nillable = true) + protected RangeResultOfDecimalRoundedResult estAudienceSize; + @XmlElement(name = "EstClick", nillable = true) + protected RangeResultOfDecimalRoundedResult estClick; + @XmlElement(name = "EstSpend", nillable = true) + protected RangeResultOfDecimalRoundedResult estSpend; + @XmlElement(name = "EstCostPerEvent", nillable = true) + protected RangeResultOfDecimalRoundedResult estCostPerEvent; + @XmlElement(name = "EstCTR", nillable = true) + protected RangeResultOfdouble estCTR; + @XmlElement(name = "SuggestedBid", nillable = true) + protected BigDecimal suggestedBid; + @XmlElement(name = "SuggestedBudget", nillable = true) + protected BigDecimal suggestedBudget; + @XmlElement(name = "EventsLostToBid", nillable = true) + protected Integer eventsLostToBid; + @XmlElement(name = "EventsLostToBudget", nillable = true) + protected Integer eventsLostToBudget; + @XmlElement(name = "EstReachAudienceSize", nillable = true) + protected DecimalRoundedResult estReachAudienceSize; + @XmlElement(name = "EstReachImpression", nillable = true) + protected DecimalRoundedResult estReachImpression; + @XmlElement(name = "Currency", nillable = true) + @XmlSchemaType(name = "string") + protected Currency currency; + + /** + * Gets the value of the estImpression property. + * + * @return + * possible object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public RangeResultOfDecimalRoundedResult getEstImpression() { + return estImpression; + } + + /** + * Sets the value of the estImpression property. + * + * @param value + * allowed object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public void setEstImpression(RangeResultOfDecimalRoundedResult value) { + this.estImpression = value; + } + + /** + * Gets the value of the estAudienceSize property. + * + * @return + * possible object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public RangeResultOfDecimalRoundedResult getEstAudienceSize() { + return estAudienceSize; + } + + /** + * Sets the value of the estAudienceSize property. + * + * @param value + * allowed object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public void setEstAudienceSize(RangeResultOfDecimalRoundedResult value) { + this.estAudienceSize = value; + } + + /** + * Gets the value of the estClick property. + * + * @return + * possible object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public RangeResultOfDecimalRoundedResult getEstClick() { + return estClick; + } + + /** + * Sets the value of the estClick property. + * + * @param value + * allowed object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public void setEstClick(RangeResultOfDecimalRoundedResult value) { + this.estClick = value; + } + + /** + * Gets the value of the estSpend property. + * + * @return + * possible object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public RangeResultOfDecimalRoundedResult getEstSpend() { + return estSpend; + } + + /** + * Sets the value of the estSpend property. + * + * @param value + * allowed object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public void setEstSpend(RangeResultOfDecimalRoundedResult value) { + this.estSpend = value; + } + + /** + * Gets the value of the estCostPerEvent property. + * + * @return + * possible object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public RangeResultOfDecimalRoundedResult getEstCostPerEvent() { + return estCostPerEvent; + } + + /** + * Sets the value of the estCostPerEvent property. + * + * @param value + * allowed object is + * {@link RangeResultOfDecimalRoundedResult } + * + */ + public void setEstCostPerEvent(RangeResultOfDecimalRoundedResult value) { + this.estCostPerEvent = value; + } + + /** + * Gets the value of the estCTR property. + * + * @return + * possible object is + * {@link RangeResultOfdouble } + * + */ + public RangeResultOfdouble getEstCTR() { + return estCTR; + } + + /** + * Sets the value of the estCTR property. + * + * @param value + * allowed object is + * {@link RangeResultOfdouble } + * + */ + public void setEstCTR(RangeResultOfdouble value) { + this.estCTR = value; + } + + /** + * Gets the value of the suggestedBid property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getSuggestedBid() { + return suggestedBid; + } + + /** + * Sets the value of the suggestedBid property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setSuggestedBid(BigDecimal value) { + this.suggestedBid = value; + } + + /** + * Gets the value of the suggestedBudget property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getSuggestedBudget() { + return suggestedBudget; + } + + /** + * Sets the value of the suggestedBudget property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setSuggestedBudget(BigDecimal value) { + this.suggestedBudget = value; + } + + /** + * Gets the value of the eventsLostToBid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getEventsLostToBid() { + return eventsLostToBid; + } + + /** + * Sets the value of the eventsLostToBid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setEventsLostToBid(Integer value) { + this.eventsLostToBid = value; + } + + /** + * Gets the value of the eventsLostToBudget property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getEventsLostToBudget() { + return eventsLostToBudget; + } + + /** + * Sets the value of the eventsLostToBudget property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setEventsLostToBudget(Integer value) { + this.eventsLostToBudget = value; + } + + /** + * Gets the value of the estReachAudienceSize property. + * + * @return + * possible object is + * {@link DecimalRoundedResult } + * + */ + public DecimalRoundedResult getEstReachAudienceSize() { + return estReachAudienceSize; + } + + /** + * Sets the value of the estReachAudienceSize property. + * + * @param value + * allowed object is + * {@link DecimalRoundedResult } + * + */ + public void setEstReachAudienceSize(DecimalRoundedResult value) { + this.estReachAudienceSize = value; + } + + /** + * Gets the value of the estReachImpression property. + * + * @return + * possible object is + * {@link DecimalRoundedResult } + * + */ + public DecimalRoundedResult getEstReachImpression() { + return estReachImpression; + } + + /** + * Sets the value of the estReachImpression property. + * + * @param value + * allowed object is + * {@link DecimalRoundedResult } + * + */ + public void setEstReachImpression(DecimalRoundedResult value) { + this.estReachImpression = value; + } + + /** + * Gets the value of the currency property. + * + * @return + * possible object is + * {@link Currency } + * + */ + public Currency getCurrency() { + return currency; + } + + /** + * Sets the value of the currency property. + * + * @param value + * allowed object is + * {@link Currency } + * + */ + public void setCurrency(Currency value) { + this.currency = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/IAdInsightService.java b/proxies/com/microsoft/bingads/v13/adinsight/IAdInsightService.java index 5a367effcf..d9fdafe522 100644 --- a/proxies/com/microsoft/bingads/v13/adinsight/IAdInsightService.java +++ b/proxies/com/microsoft/bingads/v13/adinsight/IAdInsightService.java @@ -1174,4 +1174,168 @@ public GetTextAssetSuggestionsByFinalUrlsResponse getTextAssetSuggestionsByFinal throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "ApplyRecommendations", action = "ApplyRecommendations") + public Response applyRecommendationsAsync( + @WebParam(name = "ApplyRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + ApplyRecommendationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "ApplyRecommendations", action = "ApplyRecommendations") + public Future applyRecommendationsAsync( + @WebParam(name = "ApplyRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + ApplyRecommendationsRequest parameters, + @WebParam(name = "ApplyRecommendationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.adinsight.ApplyRecommendationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "ApplyRecommendations", action = "ApplyRecommendations") + @WebResult(name = "ApplyRecommendationsResponse", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + public ApplyRecommendationsResponse applyRecommendations( + @WebParam(name = "ApplyRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + ApplyRecommendationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "DismissRecommendations", action = "DismissRecommendations") + public Response dismissRecommendationsAsync( + @WebParam(name = "DismissRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + DismissRecommendationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DismissRecommendations", action = "DismissRecommendations") + public Future dismissRecommendationsAsync( + @WebParam(name = "DismissRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + DismissRecommendationsRequest parameters, + @WebParam(name = "DismissRecommendationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.adinsight.DismissRecommendationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DismissRecommendations", action = "DismissRecommendations") + @WebResult(name = "DismissRecommendationsResponse", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + public DismissRecommendationsResponse dismissRecommendations( + @WebParam(name = "DismissRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + DismissRecommendationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "RetrieveRecommendations", action = "RetrieveRecommendations") + public Response retrieveRecommendationsAsync( + @WebParam(name = "RetrieveRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + RetrieveRecommendationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "RetrieveRecommendations", action = "RetrieveRecommendations") + public Future retrieveRecommendationsAsync( + @WebParam(name = "RetrieveRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + RetrieveRecommendationsRequest parameters, + @WebParam(name = "RetrieveRecommendationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.adinsight.RetrieveRecommendationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "RetrieveRecommendations", action = "RetrieveRecommendations") + @WebResult(name = "RetrieveRecommendationsResponse", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + public RetrieveRecommendationsResponse retrieveRecommendations( + @WebParam(name = "RetrieveRecommendationsRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + RetrieveRecommendationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "GetAudienceFullEstimation", action = "GetAudienceFullEstimation") + public Response getAudienceFullEstimationAsync( + @WebParam(name = "GetAudienceFullEstimationRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + GetAudienceFullEstimationRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAudienceFullEstimation", action = "GetAudienceFullEstimation") + public Future getAudienceFullEstimationAsync( + @WebParam(name = "GetAudienceFullEstimationRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + GetAudienceFullEstimationRequest parameters, + @WebParam(name = "GetAudienceFullEstimationResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.adinsight.GetAudienceFullEstimationResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAudienceFullEstimation", action = "GetAudienceFullEstimation") + @WebResult(name = "GetAudienceFullEstimationResponse", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + public GetAudienceFullEstimationResponse getAudienceFullEstimation( + @WebParam(name = "GetAudienceFullEstimationRequest", targetNamespace = "https://bingads.microsoft.com/AdInsight/v13", partName = "parameters") + GetAudienceFullEstimationRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + } diff --git a/proxies/com/microsoft/bingads/v13/adinsight/KeywordRecommendation.java b/proxies/com/microsoft/bingads/v13/adinsight/KeywordRecommendation.java new file mode 100644 index 0000000000..d3803e8bba --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/KeywordRecommendation.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordRecommendation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordRecommendation", propOrder = { + "competition", + "matchType", + "monthlySearches", + "suggestedBid", + "suggestedKeyword" +}) +public class KeywordRecommendation + extends RecommendationBase +{ + + @XmlElement(name = "Competition") + protected Double competition; + @XmlElement(name = "MatchType") + protected Integer matchType; + @XmlElement(name = "MonthlySearches") + protected Long monthlySearches; + @XmlElement(name = "SuggestedBid") + protected Double suggestedBid; + @XmlElement(name = "SuggestedKeyword", nillable = true) + protected String suggestedKeyword; + + /** + * Gets the value of the competition property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCompetition() { + return competition; + } + + /** + * Sets the value of the competition property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCompetition(Double value) { + this.competition = value; + } + + /** + * Gets the value of the matchType property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMatchType(Integer value) { + this.matchType = value; + } + + /** + * Gets the value of the monthlySearches property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMonthlySearches() { + return monthlySearches; + } + + /** + * Sets the value of the monthlySearches property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMonthlySearches(Long value) { + this.monthlySearches = value; + } + + /** + * Gets the value of the suggestedBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getSuggestedBid() { + return suggestedBid; + } + + /** + * Sets the value of the suggestedBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setSuggestedBid(Double value) { + this.suggestedBid = value; + } + + /** + * Gets the value of the suggestedKeyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSuggestedKeyword() { + return suggestedKeyword; + } + + /** + * Sets the value of the suggestedKeyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSuggestedKeyword(String value) { + this.suggestedKeyword = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ObjectFactory.java b/proxies/com/microsoft/bingads/v13/adinsight/ObjectFactory.java index 552be49169..f78c62d117 100644 --- a/proxies/com/microsoft/bingads/v13/adinsight/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/v13/adinsight/ObjectFactory.java @@ -206,6 +206,32 @@ public class ObjectFactory { private static final QName _RSARecommendationInfo_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RSARecommendationInfo"); private static final QName _ArrayOfTextAssetSuggestions_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfTextAssetSuggestions"); private static final QName _TextAssetSuggestions_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "TextAssetSuggestions"); + private static final QName _ArrayOfApplyRecommendationEntity_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfApplyRecommendationEntity"); + private static final QName _ApplyRecommendationEntity_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ApplyRecommendationEntity"); + private static final QName _ArrayOfDismissRecommendationEntity_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfDismissRecommendationEntity"); + private static final QName _DismissRecommendationEntity_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "DismissRecommendationEntity"); + private static final QName _ArrayOfRecommendationBase_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfRecommendationBase"); + private static final QName _RecommendationBase_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RecommendationBase"); + private static final QName _RecommendationType_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RecommendationType"); + private static final QName _CampaignBudgetRecommendation_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "CampaignBudgetRecommendation"); + private static final QName _KeywordRecommendation_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "KeywordRecommendation"); + private static final QName _ResponsiveSearchAdRecommendation_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ResponsiveSearchAdRecommendation"); + private static final QName _SelectionOfAgeEnum_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "SelectionOfAgeEnum"); + private static final QName _ArrayOfAgeEnum_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfAgeEnum"); + private static final QName _AgeEnum_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "AgeEnum"); + private static final QName _SelectionOfGenderEnum_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "SelectionOfGenderEnum"); + private static final QName _ArrayOfGenderEnum_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfGenderEnum"); + private static final QName _GenderEnum_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "GenderEnum"); + private static final QName _SelectionOflong_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "SelectionOflong"); + private static final QName _ArrayOfRadiusTarget_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ArrayOfRadiusTarget"); + private static final QName _RadiusTarget_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RadiusTarget"); + private static final QName _RadiusUnit_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RadiusUnit"); + private static final QName _Feed_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "Feed"); + private static final QName _Currency_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "Currency"); + private static final QName _RangeResultOfDecimalRoundedResult_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RangeResultOfDecimalRoundedResult"); + private static final QName _DecimalRoundedResult_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "DecimalRoundedResult"); + private static final QName _ScaleUnit_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "ScaleUnit"); + private static final QName _RangeResultOfdouble_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v13", "RangeResultOfdouble"); private static final QName _AdApiFaultDetail_QNAME = new QName("https://adapi.microsoft.com", "AdApiFaultDetail"); private static final QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); private static final QName _ArrayOfAdApiError_QNAME = new QName("https://adapi.microsoft.com", "ArrayOfAdApiError"); @@ -2421,6 +2447,286 @@ public TextAssetSuggestions createTextAssetSuggestions() { return new TextAssetSuggestions(); } + /** + * Create an instance of {@link ApplyRecommendationsRequest } + * + * @return + * the new instance of {@link ApplyRecommendationsRequest } + */ + public ApplyRecommendationsRequest createApplyRecommendationsRequest() { + return new ApplyRecommendationsRequest(); + } + + /** + * Create an instance of {@link ArrayOfApplyRecommendationEntity } + * + * @return + * the new instance of {@link ArrayOfApplyRecommendationEntity } + */ + public ArrayOfApplyRecommendationEntity createArrayOfApplyRecommendationEntity() { + return new ArrayOfApplyRecommendationEntity(); + } + + /** + * Create an instance of {@link ApplyRecommendationEntity } + * + * @return + * the new instance of {@link ApplyRecommendationEntity } + */ + public ApplyRecommendationEntity createApplyRecommendationEntity() { + return new ApplyRecommendationEntity(); + } + + /** + * Create an instance of {@link ApplyRecommendationsResponse } + * + * @return + * the new instance of {@link ApplyRecommendationsResponse } + */ + public ApplyRecommendationsResponse createApplyRecommendationsResponse() { + return new ApplyRecommendationsResponse(); + } + + /** + * Create an instance of {@link DismissRecommendationsRequest } + * + * @return + * the new instance of {@link DismissRecommendationsRequest } + */ + public DismissRecommendationsRequest createDismissRecommendationsRequest() { + return new DismissRecommendationsRequest(); + } + + /** + * Create an instance of {@link ArrayOfDismissRecommendationEntity } + * + * @return + * the new instance of {@link ArrayOfDismissRecommendationEntity } + */ + public ArrayOfDismissRecommendationEntity createArrayOfDismissRecommendationEntity() { + return new ArrayOfDismissRecommendationEntity(); + } + + /** + * Create an instance of {@link DismissRecommendationEntity } + * + * @return + * the new instance of {@link DismissRecommendationEntity } + */ + public DismissRecommendationEntity createDismissRecommendationEntity() { + return new DismissRecommendationEntity(); + } + + /** + * Create an instance of {@link DismissRecommendationsResponse } + * + * @return + * the new instance of {@link DismissRecommendationsResponse } + */ + public DismissRecommendationsResponse createDismissRecommendationsResponse() { + return new DismissRecommendationsResponse(); + } + + /** + * Create an instance of {@link RetrieveRecommendationsRequest } + * + * @return + * the new instance of {@link RetrieveRecommendationsRequest } + */ + public RetrieveRecommendationsRequest createRetrieveRecommendationsRequest() { + return new RetrieveRecommendationsRequest(); + } + + /** + * Create an instance of {@link RetrieveRecommendationsResponse } + * + * @return + * the new instance of {@link RetrieveRecommendationsResponse } + */ + public RetrieveRecommendationsResponse createRetrieveRecommendationsResponse() { + return new RetrieveRecommendationsResponse(); + } + + /** + * Create an instance of {@link ArrayOfRecommendationBase } + * + * @return + * the new instance of {@link ArrayOfRecommendationBase } + */ + public ArrayOfRecommendationBase createArrayOfRecommendationBase() { + return new ArrayOfRecommendationBase(); + } + + /** + * Create an instance of {@link RecommendationBase } + * + * @return + * the new instance of {@link RecommendationBase } + */ + public RecommendationBase createRecommendationBase() { + return new RecommendationBase(); + } + + /** + * Create an instance of {@link CampaignBudgetRecommendation } + * + * @return + * the new instance of {@link CampaignBudgetRecommendation } + */ + public CampaignBudgetRecommendation createCampaignBudgetRecommendation() { + return new CampaignBudgetRecommendation(); + } + + /** + * Create an instance of {@link KeywordRecommendation } + * + * @return + * the new instance of {@link KeywordRecommendation } + */ + public KeywordRecommendation createKeywordRecommendation() { + return new KeywordRecommendation(); + } + + /** + * Create an instance of {@link ResponsiveSearchAdRecommendation } + * + * @return + * the new instance of {@link ResponsiveSearchAdRecommendation } + */ + public ResponsiveSearchAdRecommendation createResponsiveSearchAdRecommendation() { + return new ResponsiveSearchAdRecommendation(); + } + + /** + * Create an instance of {@link GetAudienceFullEstimationRequest } + * + * @return + * the new instance of {@link GetAudienceFullEstimationRequest } + */ + public GetAudienceFullEstimationRequest createGetAudienceFullEstimationRequest() { + return new GetAudienceFullEstimationRequest(); + } + + /** + * Create an instance of {@link SelectionOfAgeEnum } + * + * @return + * the new instance of {@link SelectionOfAgeEnum } + */ + public SelectionOfAgeEnum createSelectionOfAgeEnum() { + return new SelectionOfAgeEnum(); + } + + /** + * Create an instance of {@link SelectionOfGenderEnum } + * + * @return + * the new instance of {@link SelectionOfGenderEnum } + */ + public SelectionOfGenderEnum createSelectionOfGenderEnum() { + return new SelectionOfGenderEnum(); + } + + /** + * Create an instance of {@link SelectionOflong } + * + * @return + * the new instance of {@link SelectionOflong } + */ + public SelectionOflong createSelectionOflong() { + return new SelectionOflong(); + } + + /** + * Create an instance of {@link ArrayOfRadiusTarget } + * + * @return + * the new instance of {@link ArrayOfRadiusTarget } + */ + public ArrayOfRadiusTarget createArrayOfRadiusTarget() { + return new ArrayOfRadiusTarget(); + } + + /** + * Create an instance of {@link Feed } + * + * @return + * the new instance of {@link Feed } + */ + public Feed createFeed() { + return new Feed(); + } + + /** + * Create an instance of {@link ArrayOfAgeEnum } + * + * @return + * the new instance of {@link ArrayOfAgeEnum } + */ + public ArrayOfAgeEnum createArrayOfAgeEnum() { + return new ArrayOfAgeEnum(); + } + + /** + * Create an instance of {@link ArrayOfGenderEnum } + * + * @return + * the new instance of {@link ArrayOfGenderEnum } + */ + public ArrayOfGenderEnum createArrayOfGenderEnum() { + return new ArrayOfGenderEnum(); + } + + /** + * Create an instance of {@link RadiusTarget } + * + * @return + * the new instance of {@link RadiusTarget } + */ + public RadiusTarget createRadiusTarget() { + return new RadiusTarget(); + } + + /** + * Create an instance of {@link GetAudienceFullEstimationResponse } + * + * @return + * the new instance of {@link GetAudienceFullEstimationResponse } + */ + public GetAudienceFullEstimationResponse createGetAudienceFullEstimationResponse() { + return new GetAudienceFullEstimationResponse(); + } + + /** + * Create an instance of {@link RangeResultOfDecimalRoundedResult } + * + * @return + * the new instance of {@link RangeResultOfDecimalRoundedResult } + */ + public RangeResultOfDecimalRoundedResult createRangeResultOfDecimalRoundedResult() { + return new RangeResultOfDecimalRoundedResult(); + } + + /** + * Create an instance of {@link RangeResultOfdouble } + * + * @return + * the new instance of {@link RangeResultOfdouble } + */ + public RangeResultOfdouble createRangeResultOfdouble() { + return new RangeResultOfdouble(); + } + + /** + * Create an instance of {@link DecimalRoundedResult } + * + * @return + * the new instance of {@link DecimalRoundedResult } + */ + public DecimalRoundedResult createDecimalRoundedResult() { + return new DecimalRoundedResult(); + } + /** * Create an instance of {@link AdApiFaultDetail } * @@ -4808,6 +5114,344 @@ public JAXBElement createTextAssetSuggestions(TextAssetSug return new JAXBElement<>(_TextAssetSuggestions_QNAME, TextAssetSuggestions.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfApplyRecommendationEntity }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfApplyRecommendationEntity }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ArrayOfApplyRecommendationEntity") + public JAXBElement createArrayOfApplyRecommendationEntity(ArrayOfApplyRecommendationEntity value) { + return new JAXBElement<>(_ArrayOfApplyRecommendationEntity_QNAME, ArrayOfApplyRecommendationEntity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApplyRecommendationEntity }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ApplyRecommendationEntity }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ApplyRecommendationEntity") + public JAXBElement createApplyRecommendationEntity(ApplyRecommendationEntity value) { + return new JAXBElement<>(_ApplyRecommendationEntity_QNAME, ApplyRecommendationEntity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfDismissRecommendationEntity }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfDismissRecommendationEntity }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ArrayOfDismissRecommendationEntity") + public JAXBElement createArrayOfDismissRecommendationEntity(ArrayOfDismissRecommendationEntity value) { + return new JAXBElement<>(_ArrayOfDismissRecommendationEntity_QNAME, ArrayOfDismissRecommendationEntity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DismissRecommendationEntity }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link DismissRecommendationEntity }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "DismissRecommendationEntity") + public JAXBElement createDismissRecommendationEntity(DismissRecommendationEntity value) { + return new JAXBElement<>(_DismissRecommendationEntity_QNAME, DismissRecommendationEntity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfRecommendationBase }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfRecommendationBase }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ArrayOfRecommendationBase") + public JAXBElement createArrayOfRecommendationBase(ArrayOfRecommendationBase value) { + return new JAXBElement<>(_ArrayOfRecommendationBase_QNAME, ArrayOfRecommendationBase.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RecommendationBase }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RecommendationBase }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "RecommendationBase") + public JAXBElement createRecommendationBase(RecommendationBase value) { + return new JAXBElement<>(_RecommendationBase_QNAME, RecommendationBase.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RecommendationType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RecommendationType }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "RecommendationType") + public JAXBElement createRecommendationType(RecommendationType value) { + return new JAXBElement<>(_RecommendationType_QNAME, RecommendationType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignBudgetRecommendation }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link CampaignBudgetRecommendation }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "CampaignBudgetRecommendation") + public JAXBElement createCampaignBudgetRecommendation(CampaignBudgetRecommendation value) { + return new JAXBElement<>(_CampaignBudgetRecommendation_QNAME, CampaignBudgetRecommendation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordRecommendation }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link KeywordRecommendation }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "KeywordRecommendation") + public JAXBElement createKeywordRecommendation(KeywordRecommendation value) { + return new JAXBElement<>(_KeywordRecommendation_QNAME, KeywordRecommendation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ResponsiveSearchAdRecommendation }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ResponsiveSearchAdRecommendation }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ResponsiveSearchAdRecommendation") + public JAXBElement createResponsiveSearchAdRecommendation(ResponsiveSearchAdRecommendation value) { + return new JAXBElement<>(_ResponsiveSearchAdRecommendation_QNAME, ResponsiveSearchAdRecommendation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SelectionOfAgeEnum }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link SelectionOfAgeEnum }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "SelectionOfAgeEnum") + public JAXBElement createSelectionOfAgeEnum(SelectionOfAgeEnum value) { + return new JAXBElement<>(_SelectionOfAgeEnum_QNAME, SelectionOfAgeEnum.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeEnum }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeEnum }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ArrayOfAgeEnum") + public JAXBElement createArrayOfAgeEnum(ArrayOfAgeEnum value) { + return new JAXBElement<>(_ArrayOfAgeEnum_QNAME, ArrayOfAgeEnum.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AgeEnum }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link AgeEnum }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "AgeEnum") + public JAXBElement createAgeEnum(AgeEnum value) { + return new JAXBElement<>(_AgeEnum_QNAME, AgeEnum.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SelectionOfGenderEnum }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link SelectionOfGenderEnum }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "SelectionOfGenderEnum") + public JAXBElement createSelectionOfGenderEnum(SelectionOfGenderEnum value) { + return new JAXBElement<>(_SelectionOfGenderEnum_QNAME, SelectionOfGenderEnum.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfGenderEnum }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfGenderEnum }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ArrayOfGenderEnum") + public JAXBElement createArrayOfGenderEnum(ArrayOfGenderEnum value) { + return new JAXBElement<>(_ArrayOfGenderEnum_QNAME, ArrayOfGenderEnum.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GenderEnum }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GenderEnum }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "GenderEnum") + public JAXBElement createGenderEnum(GenderEnum value) { + return new JAXBElement<>(_GenderEnum_QNAME, GenderEnum.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SelectionOflong }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link SelectionOflong }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "SelectionOflong") + public JAXBElement createSelectionOflong(SelectionOflong value) { + return new JAXBElement<>(_SelectionOflong_QNAME, SelectionOflong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfRadiusTarget }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfRadiusTarget }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ArrayOfRadiusTarget") + public JAXBElement createArrayOfRadiusTarget(ArrayOfRadiusTarget value) { + return new JAXBElement<>(_ArrayOfRadiusTarget_QNAME, ArrayOfRadiusTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RadiusTarget }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RadiusTarget }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "RadiusTarget") + public JAXBElement createRadiusTarget(RadiusTarget value) { + return new JAXBElement<>(_RadiusTarget_QNAME, RadiusTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RadiusUnit }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RadiusUnit }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "RadiusUnit") + public JAXBElement createRadiusUnit(RadiusUnit value) { + return new JAXBElement<>(_RadiusUnit_QNAME, RadiusUnit.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Feed }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Feed }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "Feed") + public JAXBElement createFeed(Feed value) { + return new JAXBElement<>(_Feed_QNAME, Feed.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Currency }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Currency }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "Currency") + public JAXBElement createCurrency(Currency value) { + return new JAXBElement<>(_Currency_QNAME, Currency.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RangeResultOfDecimalRoundedResult }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RangeResultOfDecimalRoundedResult }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "RangeResultOfDecimalRoundedResult") + public JAXBElement createRangeResultOfDecimalRoundedResult(RangeResultOfDecimalRoundedResult value) { + return new JAXBElement<>(_RangeResultOfDecimalRoundedResult_QNAME, RangeResultOfDecimalRoundedResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DecimalRoundedResult }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link DecimalRoundedResult }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "DecimalRoundedResult") + public JAXBElement createDecimalRoundedResult(DecimalRoundedResult value) { + return new JAXBElement<>(_DecimalRoundedResult_QNAME, DecimalRoundedResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ScaleUnit }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ScaleUnit }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "ScaleUnit") + public JAXBElement createScaleUnit(ScaleUnit value) { + return new JAXBElement<>(_ScaleUnit_QNAME, ScaleUnit.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RangeResultOfdouble }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RangeResultOfdouble }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v13", name = "RangeResultOfdouble") + public JAXBElement createRangeResultOfdouble(RangeResultOfdouble value) { + return new JAXBElement<>(_RangeResultOfdouble_QNAME, RangeResultOfdouble.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link AdApiFaultDetail }{@code >} * diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RadiusTarget.java b/proxies/com/microsoft/bingads/v13/adinsight/RadiusTarget.java new file mode 100644 index 0000000000..43907a862f --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RadiusTarget.java @@ -0,0 +1,148 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for RadiusTarget complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RadiusTarget", propOrder = { + "radius", + "radiusUnit", + "centerLatitude", + "centerLongitude" +}) +public class RadiusTarget { + + @XmlElement(name = "Radius") + protected Integer radius; + @XmlElement(name = "RadiusUnit") + @XmlSchemaType(name = "string") + protected RadiusUnit radiusUnit; + @XmlElement(name = "CenterLatitude") + protected Double centerLatitude; + @XmlElement(name = "CenterLongitude") + protected Double centerLongitude; + + /** + * Gets the value of the radius property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getRadius() { + return radius; + } + + /** + * Sets the value of the radius property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setRadius(Integer value) { + this.radius = value; + } + + /** + * Gets the value of the radiusUnit property. + * + * @return + * possible object is + * {@link RadiusUnit } + * + */ + public RadiusUnit getRadiusUnit() { + return radiusUnit; + } + + /** + * Sets the value of the radiusUnit property. + * + * @param value + * allowed object is + * {@link RadiusUnit } + * + */ + public void setRadiusUnit(RadiusUnit value) { + this.radiusUnit = value; + } + + /** + * Gets the value of the centerLatitude property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCenterLatitude() { + return centerLatitude; + } + + /** + * Sets the value of the centerLatitude property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCenterLatitude(Double value) { + this.centerLatitude = value; + } + + /** + * Gets the value of the centerLongitude property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCenterLongitude() { + return centerLongitude; + } + + /** + * Sets the value of the centerLongitude property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCenterLongitude(Double value) { + this.centerLongitude = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RadiusUnit.java b/proxies/com/microsoft/bingads/v13/adinsight/RadiusUnit.java new file mode 100644 index 0000000000..bdf77c1846 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RadiusUnit.java @@ -0,0 +1,50 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for RadiusUnit. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "RadiusUnit") +@XmlEnum +public enum RadiusUnit { + + @XmlEnumValue("Miles") + MILES("Miles"), + @XmlEnumValue("Kilometers") + KILOMETERS("Kilometers"); + private final String value; + + RadiusUnit(String v) { + value = v; + } + + public String value() { + return value; + } + + public static RadiusUnit fromValue(String v) { + for (RadiusUnit c: RadiusUnit.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfDecimalRoundedResult.java b/proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfDecimalRoundedResult.java new file mode 100644 index 0000000000..88af5442f9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfDecimalRoundedResult.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for RangeResultOfDecimalRoundedResult complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RangeResultOfDecimalRoundedResult", propOrder = { + "high", + "low" +}) +public class RangeResultOfDecimalRoundedResult { + + @XmlElement(name = "High", nillable = true) + protected DecimalRoundedResult high; + @XmlElement(name = "Low", nillable = true) + protected DecimalRoundedResult low; + + /** + * Gets the value of the high property. + * + * @return + * possible object is + * {@link DecimalRoundedResult } + * + */ + public DecimalRoundedResult getHigh() { + return high; + } + + /** + * Sets the value of the high property. + * + * @param value + * allowed object is + * {@link DecimalRoundedResult } + * + */ + public void setHigh(DecimalRoundedResult value) { + this.high = value; + } + + /** + * Gets the value of the low property. + * + * @return + * possible object is + * {@link DecimalRoundedResult } + * + */ + public DecimalRoundedResult getLow() { + return low; + } + + /** + * Sets the value of the low property. + * + * @param value + * allowed object is + * {@link DecimalRoundedResult } + * + */ + public void setLow(DecimalRoundedResult value) { + this.low = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfdouble.java b/proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfdouble.java new file mode 100644 index 0000000000..a3cc15d411 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RangeResultOfdouble.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for RangeResultOfdouble complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RangeResultOfdouble", propOrder = { + "high", + "low" +}) +public class RangeResultOfdouble { + + @XmlElement(name = "High") + protected Double high; + @XmlElement(name = "Low") + protected Double low; + + /** + * Gets the value of the high property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHigh() { + return high; + } + + /** + * Sets the value of the high property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHigh(Double value) { + this.high = value; + } + + /** + * Gets the value of the low property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLow() { + return low; + } + + /** + * Sets the value of the low property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLow(Double value) { + this.low = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RecommendationBase.java b/proxies/com/microsoft/bingads/v13/adinsight/RecommendationBase.java new file mode 100644 index 0000000000..787dee12ae --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RecommendationBase.java @@ -0,0 +1,490 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for RecommendationBase complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RecommendationBase", propOrder = { + "accountId", + "adGroupId", + "campaignId", + "currentClicks", + "currentConversions", + "currentCost", + "currentImpressions", + "dismissed", + "estimatedIncreaseInClicks", + "estimatedIncreaseInConversions", + "estimatedIncreaseInCost", + "estimatedIncreaseInImpressions", + "recommendationHash", + "recommendationId", + "recommendationType", + "type" +}) +@XmlSeeAlso({ + CampaignBudgetRecommendation.class, + KeywordRecommendation.class, + ResponsiveSearchAdRecommendation.class +}) +public class RecommendationBase { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdGroupId", nillable = true) + protected Long adGroupId; + @XmlElement(name = "CampaignId", nillable = true) + protected Long campaignId; + @XmlElement(name = "CurrentClicks") + protected Long currentClicks; + @XmlElement(name = "CurrentConversions") + protected Long currentConversions; + @XmlElement(name = "CurrentCost") + protected Double currentCost; + @XmlElement(name = "CurrentImpressions") + protected Long currentImpressions; + @XmlElement(name = "Dismissed") + protected Boolean dismissed; + @XmlElement(name = "EstimatedIncreaseInClicks") + protected Long estimatedIncreaseInClicks; + @XmlElement(name = "EstimatedIncreaseInConversions") + protected Long estimatedIncreaseInConversions; + @XmlElement(name = "EstimatedIncreaseInCost") + protected Double estimatedIncreaseInCost; + @XmlElement(name = "EstimatedIncreaseInImpressions") + protected Long estimatedIncreaseInImpressions; + @XmlElement(name = "RecommendationHash", nillable = true) + protected String recommendationHash; + @XmlElement(name = "RecommendationId", nillable = true) + protected String recommendationId; + @XmlElement(name = "RecommendationType", nillable = true) + protected String recommendationType; + @XmlElement(name = "Type") + @XmlSchemaType(name = "string") + protected RecommendationType type; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the adGroupId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAdGroupId() { + return adGroupId; + } + + /** + * Sets the value of the adGroupId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAdGroupId(Long value) { + this.adGroupId = value; + } + + /** + * Gets the value of the campaignId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCampaignId() { + return campaignId; + } + + /** + * Sets the value of the campaignId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCampaignId(Long value) { + this.campaignId = value; + } + + /** + * Gets the value of the currentClicks property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCurrentClicks() { + return currentClicks; + } + + /** + * Sets the value of the currentClicks property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCurrentClicks(Long value) { + this.currentClicks = value; + } + + /** + * Gets the value of the currentConversions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCurrentConversions() { + return currentConversions; + } + + /** + * Sets the value of the currentConversions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCurrentConversions(Long value) { + this.currentConversions = value; + } + + /** + * Gets the value of the currentCost property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCurrentCost() { + return currentCost; + } + + /** + * Sets the value of the currentCost property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCurrentCost(Double value) { + this.currentCost = value; + } + + /** + * Gets the value of the currentImpressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCurrentImpressions() { + return currentImpressions; + } + + /** + * Sets the value of the currentImpressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCurrentImpressions(Long value) { + this.currentImpressions = value; + } + + /** + * Gets the value of the dismissed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getDismissed() { + return dismissed; + } + + /** + * Sets the value of the dismissed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDismissed(Boolean value) { + this.dismissed = value; + } + + /** + * Gets the value of the estimatedIncreaseInClicks property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getEstimatedIncreaseInClicks() { + return estimatedIncreaseInClicks; + } + + /** + * Sets the value of the estimatedIncreaseInClicks property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setEstimatedIncreaseInClicks(Long value) { + this.estimatedIncreaseInClicks = value; + } + + /** + * Gets the value of the estimatedIncreaseInConversions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getEstimatedIncreaseInConversions() { + return estimatedIncreaseInConversions; + } + + /** + * Sets the value of the estimatedIncreaseInConversions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setEstimatedIncreaseInConversions(Long value) { + this.estimatedIncreaseInConversions = value; + } + + /** + * Gets the value of the estimatedIncreaseInCost property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedIncreaseInCost() { + return estimatedIncreaseInCost; + } + + /** + * Sets the value of the estimatedIncreaseInCost property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedIncreaseInCost(Double value) { + this.estimatedIncreaseInCost = value; + } + + /** + * Gets the value of the estimatedIncreaseInImpressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getEstimatedIncreaseInImpressions() { + return estimatedIncreaseInImpressions; + } + + /** + * Sets the value of the estimatedIncreaseInImpressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setEstimatedIncreaseInImpressions(Long value) { + this.estimatedIncreaseInImpressions = value; + } + + /** + * Gets the value of the recommendationHash property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationHash() { + return recommendationHash; + } + + /** + * Sets the value of the recommendationHash property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationHash(String value) { + this.recommendationHash = value; + } + + /** + * Gets the value of the recommendationId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationId() { + return recommendationId; + } + + /** + * Sets the value of the recommendationId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationId(String value) { + this.recommendationId = value; + } + + /** + * Gets the value of the recommendationType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecommendationType() { + return recommendationType; + } + + /** + * Sets the value of the recommendationType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecommendationType(String value) { + this.recommendationType = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link RecommendationType } + * + */ + public RecommendationType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link RecommendationType } + * + */ + public void setType(RecommendationType value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RecommendationType.java b/proxies/com/microsoft/bingads/v13/adinsight/RecommendationType.java new file mode 100644 index 0000000000..ead4fe7286 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RecommendationType.java @@ -0,0 +1,53 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for RecommendationType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "RecommendationType") +@XmlEnum +public enum RecommendationType { + + @XmlEnumValue("CampaignBudgetRecommendation") + CAMPAIGN_BUDGET_RECOMMENDATION("CampaignBudgetRecommendation"), + @XmlEnumValue("KeywordRecommendation") + KEYWORD_RECOMMENDATION("KeywordRecommendation"), + @XmlEnumValue("ResponsiveSearchAdRecommendation") + RESPONSIVE_SEARCH_AD_RECOMMENDATION("ResponsiveSearchAdRecommendation"); + private final String value; + + RecommendationType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static RecommendationType fromValue(String v) { + for (RecommendationType c: RecommendationType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ResponsiveSearchAdRecommendation.java b/proxies/com/microsoft/bingads/v13/adinsight/ResponsiveSearchAdRecommendation.java new file mode 100644 index 0000000000..efd35c16ef --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ResponsiveSearchAdRecommendation.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ResponsiveSearchAdRecommendation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ResponsiveSearchAdRecommendation", propOrder = { + "suggestedAd" +}) +public class ResponsiveSearchAdRecommendation + extends RecommendationBase +{ + + @XmlElement(name = "SuggestedAd", nillable = true) + protected SuggestedResponsiveSearchAd suggestedAd; + + /** + * Gets the value of the suggestedAd property. + * + * @return + * possible object is + * {@link SuggestedResponsiveSearchAd } + * + */ + public SuggestedResponsiveSearchAd getSuggestedAd() { + return suggestedAd; + } + + /** + * Sets the value of the suggestedAd property. + * + * @param value + * allowed object is + * {@link SuggestedResponsiveSearchAd } + * + */ + public void setSuggestedAd(SuggestedResponsiveSearchAd value) { + this.suggestedAd = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsRequest.java b/proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsRequest.java new file mode 100644 index 0000000000..40ce4df799 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "recommendationTypes", + "maxCount" +}) +@XmlRootElement(name = "RetrieveRecommendationsRequest") +public class RetrieveRecommendationsRequest { + + @XmlElement(name = "RecommendationTypes", nillable = true) + protected ArrayOfstring recommendationTypes; + @XmlElement(name = "MaxCount", nillable = true) + protected Integer maxCount; + + /** + * Gets the value of the recommendationTypes property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getRecommendationTypes() { + return recommendationTypes; + } + + /** + * Sets the value of the recommendationTypes property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setRecommendationTypes(ArrayOfstring value) { + this.recommendationTypes = value; + } + + /** + * Gets the value of the maxCount property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMaxCount() { + return maxCount; + } + + /** + * Sets the value of the maxCount property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMaxCount(Integer value) { + this.maxCount = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsResponse.java b/proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsResponse.java new file mode 100644 index 0000000000..86b7d00f80 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/RetrieveRecommendationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "recommendations" +}) +@XmlRootElement(name = "RetrieveRecommendationsResponse") +public class RetrieveRecommendationsResponse { + + @XmlElement(name = "Recommendations", nillable = true) + protected ArrayOfRecommendationBase recommendations; + + /** + * Gets the value of the recommendations property. + * + * @return + * possible object is + * {@link ArrayOfRecommendationBase } + * + */ + public ArrayOfRecommendationBase getRecommendations() { + return recommendations; + } + + /** + * Sets the value of the recommendations property. + * + * @param value + * allowed object is + * {@link ArrayOfRecommendationBase } + * + */ + public void setRecommendations(ArrayOfRecommendationBase value) { + this.recommendations = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/ScaleUnit.java b/proxies/com/microsoft/bingads/v13/adinsight/ScaleUnit.java new file mode 100644 index 0000000000..f6d90e4d4b --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/ScaleUnit.java @@ -0,0 +1,56 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ScaleUnit. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "ScaleUnit") +@XmlEnum +public enum ScaleUnit { + + @XmlEnumValue("Billion") + BILLION("Billion"), + @XmlEnumValue("Million") + MILLION("Million"), + @XmlEnumValue("Thousand") + THOUSAND("Thousand"), + @XmlEnumValue("None") + NONE("None"); + private final String value; + + ScaleUnit(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ScaleUnit fromValue(String v) { + for (ScaleUnit c: ScaleUnit.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/SelectionOfAgeEnum.java b/proxies/com/microsoft/bingads/v13/adinsight/SelectionOfAgeEnum.java new file mode 100644 index 0000000000..4e530597c8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/SelectionOfAgeEnum.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for SelectionOfAgeEnum complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SelectionOfAgeEnum", propOrder = { + "includes", + "excludes" +}) +public class SelectionOfAgeEnum { + + @XmlElement(name = "Includes", nillable = true) + protected ArrayOfAgeEnum includes; + @XmlElement(name = "Excludes", nillable = true) + protected ArrayOfAgeEnum excludes; + + /** + * Gets the value of the includes property. + * + * @return + * possible object is + * {@link ArrayOfAgeEnum } + * + */ + public ArrayOfAgeEnum getIncludes() { + return includes; + } + + /** + * Sets the value of the includes property. + * + * @param value + * allowed object is + * {@link ArrayOfAgeEnum } + * + */ + public void setIncludes(ArrayOfAgeEnum value) { + this.includes = value; + } + + /** + * Gets the value of the excludes property. + * + * @return + * possible object is + * {@link ArrayOfAgeEnum } + * + */ + public ArrayOfAgeEnum getExcludes() { + return excludes; + } + + /** + * Sets the value of the excludes property. + * + * @param value + * allowed object is + * {@link ArrayOfAgeEnum } + * + */ + public void setExcludes(ArrayOfAgeEnum value) { + this.excludes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/SelectionOfGenderEnum.java b/proxies/com/microsoft/bingads/v13/adinsight/SelectionOfGenderEnum.java new file mode 100644 index 0000000000..1cd3acf8ca --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/SelectionOfGenderEnum.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for SelectionOfGenderEnum complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SelectionOfGenderEnum", propOrder = { + "includes", + "excludes" +}) +public class SelectionOfGenderEnum { + + @XmlElement(name = "Includes", nillable = true) + protected ArrayOfGenderEnum includes; + @XmlElement(name = "Excludes", nillable = true) + protected ArrayOfGenderEnum excludes; + + /** + * Gets the value of the includes property. + * + * @return + * possible object is + * {@link ArrayOfGenderEnum } + * + */ + public ArrayOfGenderEnum getIncludes() { + return includes; + } + + /** + * Sets the value of the includes property. + * + * @param value + * allowed object is + * {@link ArrayOfGenderEnum } + * + */ + public void setIncludes(ArrayOfGenderEnum value) { + this.includes = value; + } + + /** + * Gets the value of the excludes property. + * + * @return + * possible object is + * {@link ArrayOfGenderEnum } + * + */ + public ArrayOfGenderEnum getExcludes() { + return excludes; + } + + /** + * Sets the value of the excludes property. + * + * @param value + * allowed object is + * {@link ArrayOfGenderEnum } + * + */ + public void setExcludes(ArrayOfGenderEnum value) { + this.excludes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/adinsight/SelectionOflong.java b/proxies/com/microsoft/bingads/v13/adinsight/SelectionOflong.java new file mode 100644 index 0000000000..834eca3b4e --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/adinsight/SelectionOflong.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.adinsight; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for SelectionOflong complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SelectionOflong", propOrder = { + "includes", + "excludes" +}) +public class SelectionOflong { + + @XmlElement(name = "Includes", nillable = true) + protected ArrayOflong includes; + @XmlElement(name = "Excludes", nillable = true) + protected ArrayOflong excludes; + + /** + * Gets the value of the includes property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getIncludes() { + return includes; + } + + /** + * Sets the value of the includes property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setIncludes(ArrayOflong value) { + this.includes = value; + } + + /** + * Gets the value of the excludes property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getExcludes() { + return excludes; + } + + /** + * Sets the value of the excludes property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setExcludes(ArrayOflong value) { + this.excludes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/bulk/AdApiFaultDetail.java b/proxies/com/microsoft/bingads/v13/bulk/AdApiFaultDetail.java index 9da00913f4..80a1f26074 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/AdApiFaultDetail.java +++ b/proxies/com/microsoft/bingads/v13/bulk/AdApiFaultDetail.java @@ -33,6 +33,9 @@ public class AdApiFaultDetail extends ApplicationFault { + public AdApiFaultDetail() { + this.type = "AdApiFaultDetail"; + } @XmlElement(name = "Errors", nillable = true) protected ArrayOfAdApiError errors; diff --git a/proxies/com/microsoft/bingads/v13/bulk/ApiFaultDetail.java b/proxies/com/microsoft/bingads/v13/bulk/ApiFaultDetail.java index 0968790c0a..c04d21e235 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ApiFaultDetail.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ApiFaultDetail.java @@ -35,6 +35,9 @@ public class ApiFaultDetail extends ApplicationFault { + public ApiFaultDetail() { + this.type = "ApiFaultDetail"; + } @XmlElement(name = "BatchErrors", nillable = true) protected ArrayOfBatchError batchErrors; diff --git a/proxies/com/microsoft/bingads/v13/bulk/ApplicationFault.java b/proxies/com/microsoft/bingads/v13/bulk/ApplicationFault.java index f5688a7c04..bd9586ea13 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ApplicationFault.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ApplicationFault.java @@ -29,6 +29,7 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ApplicationFault", namespace = "https://adapi.microsoft.com", propOrder = { + "type", "trackingId" }) @XmlSeeAlso({ @@ -37,6 +38,9 @@ }) public class ApplicationFault { + @XmlElement(name = "Type", nillable = true) + protected String type; + @XmlElement(name = "TrackingId", nillable = true) protected String trackingId; diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfAdApiError.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfAdApiError.java index d62cb47257..0c6aa5300a 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfAdApiError.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfAdApiError.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfAdApiError complex type. @@ -36,6 +36,15 @@ public class ArrayOfAdApiError { @XmlElement(name = "AdApiError", nillable = true) protected List adApiErrors; + public ArrayOfAdApiError() + { + this.adApiErrors = new ArrayList(); + } + @JsonCreator + public ArrayOfAdApiError(List adapierrors) + { + this.adApiErrors = adapierrors; + } /** * Gets the value of the adApiErrors property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfBatchError.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfBatchError.java index 1720cde51e..431f5d1804 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfBatchError.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfBatchError.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfBatchError complex type. @@ -36,6 +36,15 @@ public class ArrayOfBatchError { @XmlElement(name = "BatchError", nillable = true) protected List batchErrors; + public ArrayOfBatchError() + { + this.batchErrors = new ArrayList(); + } + @JsonCreator + public ArrayOfBatchError(List batcherrors) + { + this.batchErrors = batcherrors; + } /** * Gets the value of the batchErrors property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfCampaignScope.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfCampaignScope.java index 22f126b5ce..9c2ea9d40e 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfCampaignScope.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfCampaignScope.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfCampaignScope complex type. @@ -36,6 +36,15 @@ public class ArrayOfCampaignScope { @XmlElement(name = "CampaignScope", nillable = true) protected List campaignScopes; + public ArrayOfCampaignScope() + { + this.campaignScopes = new ArrayList(); + } + @JsonCreator + public ArrayOfCampaignScope(List campaignscopes) + { + this.campaignScopes = campaignscopes; + } /** * Gets the value of the campaignScopes property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfDownloadEntity.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfDownloadEntity.java index 2324be6959..7cbece8e69 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfDownloadEntity.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfDownloadEntity.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfDownloadEntity { @XmlElement(name = "DownloadEntity") @XmlSchemaType(name = "string") protected List downloadEntities; + public ArrayOfDownloadEntity() + { + this.downloadEntities = new ArrayList(); + } + @JsonCreator + public ArrayOfDownloadEntity(List downloadentitys) + { + this.downloadEntities = downloadentitys; + } /** * Gets the value of the downloadEntities property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValueOfstringstring.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValueOfstringstring.java index b633135130..f384d5eb89 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValueOfstringstring.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValueOfstringstring.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfKeyValueOfstringstring complex type. @@ -47,6 +47,15 @@ public class ArrayOfKeyValueOfstringstring { @XmlElement(name = "KeyValueOfstringstring") protected List keyValueOfstringstrings; + public ArrayOfKeyValueOfstringstring() + { + this.keyValueOfstringstrings = new ArrayList(); + } + @JsonCreator + public ArrayOfKeyValueOfstringstring(List keyvalueofstringstrings) + { + this.keyValueOfstringstrings = keyvalueofstringstrings; + } /** * Gets the value of the keyValueOfstringstrings property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValuePairOfstringstring.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValuePairOfstringstring.java index 26d61e3487..47fcad5f0c 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValuePairOfstringstring.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfKeyValuePairOfstringstring.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfKeyValuePairOfstringstring complex type. @@ -36,6 +36,15 @@ public class ArrayOfKeyValuePairOfstringstring { @XmlElement(name = "KeyValuePairOfstringstring") protected List keyValuePairOfstringstrings; + public ArrayOfKeyValuePairOfstringstring() + { + this.keyValuePairOfstringstrings = new ArrayList(); + } + @JsonCreator + public ArrayOfKeyValuePairOfstringstring(List keyvaluepairofstringstrings) + { + this.keyValuePairOfstringstrings = keyvaluepairofstringstrings; + } /** * Gets the value of the keyValuePairOfstringstrings property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfOperationError.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfOperationError.java index f3408c2b78..1ea64fb378 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfOperationError.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfOperationError.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfOperationError complex type. @@ -36,6 +36,15 @@ public class ArrayOfOperationError { @XmlElement(name = "OperationError", nillable = true) protected List operationErrors; + public ArrayOfOperationError() + { + this.operationErrors = new ArrayList(); + } + @JsonCreator + public ArrayOfOperationError(List operationerrors) + { + this.operationErrors = operationerrors; + } /** * Gets the value of the operationErrors property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOflong.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOflong.java index c8b11f9b25..af005c684a 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOflong.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOflong.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOflong complex type. @@ -36,6 +36,15 @@ public class ArrayOflong { @XmlElement(name = "long", type = Long.class) protected List longs; + public ArrayOflong() + { + this.longs = new ArrayList(); + } + @JsonCreator + public ArrayOflong(List longs) + { + this.longs = longs; + } /** * Gets the value of the longs property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfstring.java b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfstring.java index 8fd00b0968..6c88211e8e 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/ArrayOfstring.java +++ b/proxies/com/microsoft/bingads/v13/bulk/ArrayOfstring.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfstring complex type. @@ -36,6 +36,15 @@ public class ArrayOfstring { @XmlElement(name = "string", nillable = true) protected List strings; + public ArrayOfstring() + { + this.strings = new ArrayList(); + } + @JsonCreator + public ArrayOfstring(List strings) + { + this.strings = strings; + } /** * Gets the value of the strings property. diff --git a/proxies/com/microsoft/bingads/v13/bulk/BatchError.java b/proxies/com/microsoft/bingads/v13/bulk/BatchError.java index b756e8dcc9..ae3c63ea64 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/BatchError.java +++ b/proxies/com/microsoft/bingads/v13/bulk/BatchError.java @@ -256,7 +256,7 @@ public String getType() { * */ public void setType(String value) { - this.type = value; + } } diff --git a/proxies/com/microsoft/bingads/v13/bulk/DownloadEntity.java b/proxies/com/microsoft/bingads/v13/bulk/DownloadEntity.java index dd9315c1a9..de64801999 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/DownloadEntity.java +++ b/proxies/com/microsoft/bingads/v13/bulk/DownloadEntity.java @@ -170,6 +170,23 @@ * * * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * * * * } @@ -492,7 +509,41 @@ public enum DownloadEntity { @XmlEnumValue("AccountLeadFormAdExtensions") ACCOUNT_LEAD_FORM_AD_EXTENSIONS("AccountLeadFormAdExtensions"), @XmlEnumValue("CampaignLeadFormAdExtensions") - CAMPAIGN_LEAD_FORM_AD_EXTENSIONS("CampaignLeadFormAdExtensions"); + CAMPAIGN_LEAD_FORM_AD_EXTENSIONS("CampaignLeadFormAdExtensions"), + @XmlEnumValue("AccountNegativeKeywordList") + ACCOUNT_NEGATIVE_KEYWORD_LIST("AccountNegativeKeywordList"), + @XmlEnumValue("AccountNegativeKeywordListAssociation") + ACCOUNT_NEGATIVE_KEYWORD_LIST_ASSOCIATION("AccountNegativeKeywordListAssociation"), + @XmlEnumValue("AccountNegativeKeyword") + ACCOUNT_NEGATIVE_KEYWORD("AccountNegativeKeyword"), + @XmlEnumValue("ConversionGoal") + CONVERSION_GOAL("ConversionGoal"), + @XmlEnumValue("EventGoal") + EVENT_GOAL("EventGoal"), + @XmlEnumValue("AppInstallGoal") + APP_INSTALL_GOAL("AppInstallGoal"), + @XmlEnumValue("MultiStageGoal") + MULTI_STAGE_GOAL("MultiStageGoal"), + @XmlEnumValue("DurationGoal") + DURATION_GOAL("DurationGoal"), + @XmlEnumValue("OfflineConversionGoal") + OFFLINE_CONVERSION_GOAL("OfflineConversionGoal"), + @XmlEnumValue("UrlGoal") + URL_GOAL("UrlGoal"), + @XmlEnumValue("InStoreTransactionGoal") + IN_STORE_TRANSACTION_GOAL("InStoreTransactionGoal"), + @XmlEnumValue("PagesViewedPerVisitGoal") + PAGES_VIEWED_PER_VISIT_GOAL("PagesViewedPerVisitGoal"), + @XmlEnumValue("SmartGoal") + SMART_GOAL("SmartGoal"), + @XmlEnumValue("InStoreVisitGoal") + IN_STORE_VISIT_GOAL("InStoreVisitGoal"), + @XmlEnumValue("ProductGoal") + PRODUCT_GOAL("ProductGoal"), + @XmlEnumValue("SeasonalityAdjustments") + SEASONALITY_ADJUSTMENTS("SeasonalityAdjustments"), + @XmlEnumValue("DataExclusions") + DATA_EXCLUSIONS("DataExclusions"); private final String value; DownloadEntity(String v) { diff --git a/proxies/com/microsoft/bingads/v13/bulk/EditorialError.java b/proxies/com/microsoft/bingads/v13/bulk/EditorialError.java index a9644a966e..3fedc148bb 100644 --- a/proxies/com/microsoft/bingads/v13/bulk/EditorialError.java +++ b/proxies/com/microsoft/bingads/v13/bulk/EditorialError.java @@ -41,6 +41,9 @@ public class EditorialError extends BatchError { + public EditorialError() { + this.type = "EditorialError"; + } @XmlElement(name = "Appealable", nillable = true) protected Boolean appealable; diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/AccountPropertyName.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/AccountPropertyName.java index 9f465b7716..07231c1bda 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/AccountPropertyName.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/AccountPropertyName.java @@ -28,6 +28,7 @@ * * * + * * * * } @@ -66,7 +67,9 @@ public enum AccountPropertyName { @XmlEnumValue("EnableMMAUnderDSAAdgroups") ENABLE_MMA_UNDER_DSA_ADGROUPS("EnableMMAUnderDSAAdgroups"), @XmlEnumValue("OptOutFromMCM") - OPT_OUT_FROM_MCM("OptOutFromMCM"); + OPT_OUT_FROM_MCM("OptOutFromMCM"), + @XmlEnumValue("NetflixTCAccepted") + NETFLIX_TC_ACCEPTED("NetflixTCAccepted"); private final String value; AccountPropertyName(String v) { diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/AdGroupCriterionType.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/AdGroupCriterionType.java index 5b65d065f8..644b888595 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/AdGroupCriterionType.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/AdGroupCriterionType.java @@ -31,7 +31,8 @@ public enum AdGroupCriterionType { HOTEL_LENGTH_OF_STAY("HotelLengthOfStay"), HOTEL_DATE_SELECTION_TYPE("HotelDateSelectionType"), HOTEL_CHECK_IN_DATE("HotelCheckInDate"), - GENRE("Genre"); + GENRE("Genre"), + CUSTOMER_LIST("CustomerList"); private final String value; diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsRequest.java new file mode 100644 index 0000000000..c30e7e3380 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "dataExclusions" +}) +@XmlRootElement(name = "AddDataExclusionsRequest") +public class AddDataExclusionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "DataExclusions", nillable = true) + protected ArrayOfDataExclusion dataExclusions; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the dataExclusions property. + * + * @return + * possible object is + * {@link ArrayOfDataExclusion } + * + */ + public ArrayOfDataExclusion getDataExclusions() { + return dataExclusions; + } + + /** + * Sets the value of the dataExclusions property. + * + * @param value + * allowed object is + * {@link ArrayOfDataExclusion } + * + */ + public void setDataExclusions(ArrayOfDataExclusion value) { + this.dataExclusions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsResponse.java new file mode 100644 index 0000000000..1cc9c84a90 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddDataExclusionsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dataExclusionIds", + "partialErrors" +}) +@XmlRootElement(name = "AddDataExclusionsResponse") +public class AddDataExclusionsResponse { + + @XmlElement(name = "DataExclusionIds", nillable = true) + protected ArrayOfNullableOflong dataExclusionIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the dataExclusionIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getDataExclusionIds() { + return dataExclusionIds; + } + + /** + * Sets the value of the dataExclusionIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setDataExclusionIds(ArrayOfNullableOflong value) { + this.dataExclusionIds = value; + } + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsRequest.java new file mode 100644 index 0000000000..87c43097b0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "seasonalityAdjustments" +}) +@XmlRootElement(name = "AddSeasonalityAdjustmentsRequest") +public class AddSeasonalityAdjustmentsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "SeasonalityAdjustments", nillable = true) + protected ArrayOfSeasonalityAdjustment seasonalityAdjustments; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the seasonalityAdjustments property. + * + * @return + * possible object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public ArrayOfSeasonalityAdjustment getSeasonalityAdjustments() { + return seasonalityAdjustments; + } + + /** + * Sets the value of the seasonalityAdjustments property. + * + * @param value + * allowed object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public void setSeasonalityAdjustments(ArrayOfSeasonalityAdjustment value) { + this.seasonalityAdjustments = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsResponse.java new file mode 100644 index 0000000000..d27307343d --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/AddSeasonalityAdjustmentsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "seasonalityAdjustmentIds", + "partialErrors" +}) +@XmlRootElement(name = "AddSeasonalityAdjustmentsResponse") +public class AddSeasonalityAdjustmentsResponse { + + @XmlElement(name = "SeasonalityAdjustmentIds", nillable = true) + protected ArrayOfNullableOflong seasonalityAdjustmentIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the seasonalityAdjustmentIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getSeasonalityAdjustmentIds() { + return seasonalityAdjustmentIds; + } + + /** + * Sets the value of the seasonalityAdjustmentIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setSeasonalityAdjustmentIds(ArrayOfNullableOflong value) { + this.seasonalityAdjustmentIds = value; + } + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataRequest.java new file mode 100644 index 0000000000..ca3e776400 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "customerListUserData" +}) +@XmlRootElement(name = "ApplyCustomerListUserDataRequest") +public class ApplyCustomerListUserDataRequest { + + @XmlElement(name = "CustomerListUserData", nillable = true) + protected CustomerListUserData customerListUserData; + + /** + * Gets the value of the customerListUserData property. + * + * @return + * possible object is + * {@link CustomerListUserData } + * + */ + public CustomerListUserData getCustomerListUserData() { + return customerListUserData; + } + + /** + * Sets the value of the customerListUserData property. + * + * @param value + * allowed object is + * {@link CustomerListUserData } + * + */ + public void setCustomerListUserData(CustomerListUserData value) { + this.customerListUserData = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataResponse.java new file mode 100644 index 0000000000..3d1abfcb50 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ApplyCustomerListUserDataResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "ApplyCustomerListUserDataResponse") +public class ApplyCustomerListUserDataResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCampaignAssociation.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCampaignAssociation.java new file mode 100644 index 0000000000..553b401039 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCampaignAssociation.java @@ -0,0 +1,80 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; +import com.fasterxml.jackson.annotation.JsonCreator; + +/** + *

Java class for ArrayOfCampaignAssociation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCampaignAssociation", propOrder = { + "campaignAssociations" +}) +public class ArrayOfCampaignAssociation { + + @XmlElement(name = "CampaignAssociation", nillable = true) + protected List campaignAssociations; + public ArrayOfCampaignAssociation() + { + this.campaignAssociations = new ArrayList(); + } + @JsonCreator + public ArrayOfCampaignAssociation(List campaignassociations) + { + this.campaignAssociations = campaignassociations; + } + + /** + * Gets the value of the campaignAssociations property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the campaignAssociations property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCampaignAssociations().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CampaignAssociation } + * + * + * @return + * The value of the campaignAssociations property. + */ + public List getCampaignAssociations() { + if (campaignAssociations == null) { + campaignAssociations = new ArrayList<>(); + } + return this.campaignAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCustomerListItem.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfDataExclusion.java similarity index 51% rename from proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCustomerListItem.java rename to proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfDataExclusion.java index 71ee8b022f..c7deae46e5 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfCustomerListItem.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfDataExclusion.java @@ -10,16 +10,16 @@ import com.fasterxml.jackson.annotation.JsonCreator; /** - *

Java class for ArrayOfCustomerListItem complex type. + *

Java class for ArrayOfDataExclusion complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

{@code
- * 
+ * 
  *   
  *     
  *       
- *         
+ *         
  *       
  *     
  *   
@@ -29,52 +29,52 @@
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "ArrayOfCustomerListItem", propOrder = {
-    "customerListItems"
+@XmlType(name = "ArrayOfDataExclusion", propOrder = {
+    "dataExclusions"
 })
-public class ArrayOfCustomerListItem {
+public class ArrayOfDataExclusion {
 
-    @XmlElement(name = "CustomerListItem", nillable = true)
-    protected List customerListItems;
-    public ArrayOfCustomerListItem()
+    @XmlElement(name = "DataExclusion", nillable = true)
+    protected List dataExclusions;
+    public ArrayOfDataExclusion()
     {
-      this.customerListItems = new ArrayList();
+      this.dataExclusions = new ArrayList();
     }
     @JsonCreator
-    public ArrayOfCustomerListItem(List customerlistitems)
+    public ArrayOfDataExclusion(List dataexclusions)
     {
-      this.customerListItems = customerlistitems;
+      this.dataExclusions = dataexclusions;
     }
 
     /**
-     * Gets the value of the customerListItems property.
+     * Gets the value of the dataExclusions property.
      * 
      * 

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the customerListItems property. + * This is why there is not a {@code set} method for the dataExclusions property. * *

* For example, to add a new item, do as follows: *

-     *    getCustomerListItems().add(newItem);
+     *    getDataExclusions().add(newItem);
      * 
* * *

* Objects of the following type(s) are allowed in the list - * {@link CustomerListItem } + * {@link DataExclusion } * * * @return - * The value of the customerListItems property. + * The value of the dataExclusions property. */ - public List getCustomerListItems() { - if (customerListItems == null) { - customerListItems = new ArrayList<>(); + public List getDataExclusions() { + if (dataExclusions == null) { + dataExclusions = new ArrayList<>(); } - return this.customerListItems; + return this.dataExclusions; } } diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfSeasonalityAdjustment.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfSeasonalityAdjustment.java new file mode 100644 index 0000000000..6a879032be --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ArrayOfSeasonalityAdjustment.java @@ -0,0 +1,80 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; +import com.fasterxml.jackson.annotation.JsonCreator; + +/** + *

Java class for ArrayOfSeasonalityAdjustment complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSeasonalityAdjustment", propOrder = { + "seasonalityAdjustments" +}) +public class ArrayOfSeasonalityAdjustment { + + @XmlElement(name = "SeasonalityAdjustment", nillable = true) + protected List seasonalityAdjustments; + public ArrayOfSeasonalityAdjustment() + { + this.seasonalityAdjustments = new ArrayList(); + } + @JsonCreator + public ArrayOfSeasonalityAdjustment(List seasonalityadjustments) + { + this.seasonalityAdjustments = seasonalityadjustments; + } + + /** + * Gets the value of the seasonalityAdjustments property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the seasonalityAdjustments property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSeasonalityAdjustments().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link SeasonalityAdjustment } + * + * + * @return + * The value of the seasonalityAdjustments property. + */ + public List getSeasonalityAdjustments() { + if (seasonalityAdjustments == null) { + seasonalityAdjustments = new ArrayList<>(); + } + return this.seasonalityAdjustments; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/BrandItem.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/BrandItem.java new file mode 100644 index 0000000000..84591ef17d --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/BrandItem.java @@ -0,0 +1,67 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for BrandItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BrandItem", propOrder = { + "brandId" +}) +public class BrandItem + extends SharedListItem +{ + public BrandItem() { + this.type = "BrandItem"; + } + + @XmlElement(name = "BrandId") + protected Long brandId; + + /** + * Gets the value of the brandId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getBrandId() { + return brandId; + } + + /** + * Sets the value of the brandId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBrandId(Long value) { + this.brandId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/BrandList.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/BrandList.java new file mode 100644 index 0000000000..4f2995cff2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/BrandList.java @@ -0,0 +1,37 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for BrandList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BrandList") +public class BrandList + extends SharedList +{ + public BrandList() { + this.type = "BrandList"; + } + + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/Campaign.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/Campaign.java index b6e295bf2c..eed560033a 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/Campaign.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/Campaign.java @@ -24,6 +24,7 @@ * * * + * * * * @@ -56,6 +57,7 @@ "biddingScheme", "budgetType", "dailyBudget", + "dealIds", "experimentId", "finalUrlSuffix", "forwardCompatibilityMap", @@ -86,6 +88,8 @@ public class Campaign { protected BudgetLimitType budgetType; @XmlElement(name = "DailyBudget", nillable = true) protected Double dailyBudget; + @XmlElement(name = "DealIds", nillable = true) + protected ArrayOflong dealIds; @XmlElement(name = "ExperimentId", nillable = true) protected Long experimentId; @XmlElement(name = "FinalUrlSuffix", nillable = true) @@ -221,6 +225,30 @@ public void setDailyBudget(Double value) { this.dailyBudget = value; } + /** + * Gets the value of the dealIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getDealIds() { + return dealIds; + } + + /** + * Sets the value of the dealIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setDealIds(ArrayOflong value) { + this.dealIds = value; + } + /** * Gets the value of the experimentId property. * diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAdditionalField.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAdditionalField.java index a0fc7a8638..fd0213f9aa 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAdditionalField.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAdditionalField.java @@ -23,7 +23,9 @@ public enum CampaignAdditionalField { SHOPPING_SETTING_SHOPPABLE_ADS_ENABLED("ShoppingSettingShoppableAdsEnabled"), SHOPPING_SETTING_FEED_LABEL("ShoppingSettingFeedLabel"), CALL_TO_ACTION_SETTING("CallToActionSetting"), - PAGE_FEED_IN_PERFORMANCE_MAX_SETTINGS("PageFeedInPerformanceMaxSettings"); + PAGE_FEED_IN_PERFORMANCE_MAX_SETTINGS("PageFeedInPerformanceMaxSettings"), + DEAL_IDS("DealIds"), + AUTO_GENERATED_TEXT_AND_IMAGE_OPT_OUT_IN_PERFORMANCE_MAX_SETTINGS("AutoGeneratedTextAndImageOptOutInPerformanceMaxSettings"); private final String value; diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAssociation.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAssociation.java new file mode 100644 index 0000000000..67cbde396c --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignAssociation.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignAssociation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CampaignAssociation", propOrder = { + "campaignId" +}) +public class CampaignAssociation { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + + /** + * Gets the value of the campaignId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCampaignId() { + return campaignId; + } + + /** + * Sets the value of the campaignId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCampaignId(Long value) { + this.campaignId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignCriterionType.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignCriterionType.java index e317b8e534..fbec5b5a10 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignCriterionType.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/CampaignCriterionType.java @@ -25,7 +25,8 @@ public enum CampaignCriterionType { PRODUCT_AUDIENCE("ProductAudience"), SIMILAR_REMARKETING_LIST("SimilarRemarketingList"), STORE("Store"), - COMBINED_LIST("CombinedList"); + COMBINED_LIST("CombinedList"), + CUSTOMER_LIST("CustomerList"); private final String value; diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerList.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerList.java index 5ec7bc4b87..4877a3bedc 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerList.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerList.java @@ -4,8 +4,6 @@ import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; -import jakarta.xml.bind.annotation.XmlElement; -import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; @@ -19,8 +17,6 @@ * * * - * - * * * * @@ -30,10 +26,7 @@ * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CustomerList", propOrder = { - "actionType", - "customerListItems" -}) +@XmlType(name = "CustomerList") public class CustomerList extends Audience { @@ -41,58 +34,5 @@ public CustomerList() { this.type = Collections.singletonList(AudienceType.fromValue("CustomerList")); } - @XmlElement(name = "ActionType", nillable = true) - @XmlSchemaType(name = "string") - protected CustomerListActionType actionType; - @XmlElement(name = "CustomerListItems", nillable = true) - protected ArrayOfCustomerListItem customerListItems; - - /** - * Gets the value of the actionType property. - * - * @return - * possible object is - * {@link CustomerListActionType } - * - */ - public CustomerListActionType getActionType() { - return actionType; - } - - /** - * Sets the value of the actionType property. - * - * @param value - * allowed object is - * {@link CustomerListActionType } - * - */ - public void setActionType(CustomerListActionType value) { - this.actionType = value; - } - - /** - * Gets the value of the customerListItems property. - * - * @return - * possible object is - * {@link ArrayOfCustomerListItem } - * - */ - public ArrayOfCustomerListItem getCustomerListItems() { - return customerListItems; - } - - /** - * Sets the value of the customerListItems property. - * - * @param value - * allowed object is - * {@link ArrayOfCustomerListItem } - * - */ - public void setCustomerListItems(ArrayOfCustomerListItem value) { - this.customerListItems = value; - } } diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListItem.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListItem.java deleted file mode 100644 index 1a1b0a4a2b..0000000000 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListItem.java +++ /dev/null @@ -1,92 +0,0 @@ - -package com.microsoft.bingads.v13.campaignmanagement; - -import jakarta.xml.bind.annotation.XmlAccessType; -import jakarta.xml.bind.annotation.XmlAccessorType; -import jakarta.xml.bind.annotation.XmlElement; -import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; - - -/** - *

Java class for CustomerListItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

{@code
- * 
- *   
- *     
- *       
- *         
- *         
- *       
- *     
- *   
- * 
- * }
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CustomerListItem", propOrder = { - "customerListItemSubType", - "itemValue" -}) -public class CustomerListItem { - - @XmlElement(name = "CustomerListItemSubType") - @XmlSchemaType(name = "string") - protected CustomerListItemSubType customerListItemSubType; - @XmlElement(name = "ItemValue", nillable = true) - protected String itemValue; - - /** - * Gets the value of the customerListItemSubType property. - * - * @return - * possible object is - * {@link CustomerListItemSubType } - * - */ - public CustomerListItemSubType getCustomerListItemSubType() { - return customerListItemSubType; - } - - /** - * Sets the value of the customerListItemSubType property. - * - * @param value - * allowed object is - * {@link CustomerListItemSubType } - * - */ - public void setCustomerListItemSubType(CustomerListItemSubType value) { - this.customerListItemSubType = value; - } - - /** - * Gets the value of the itemValue property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getItemValue() { - return itemValue; - } - - /** - * Sets the value of the itemValue property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setItemValue(String value) { - this.itemValue = value; - } - -} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListUserData.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListUserData.java new file mode 100644 index 0000000000..eecc61458e --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/CustomerListUserData.java @@ -0,0 +1,141 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for CustomerListUserData complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CustomerListUserData", propOrder = { + "actionType", + "audienceId", + "customerListItemSubType", + "customerListItems" +}) +public class CustomerListUserData { + + @XmlElement(name = "ActionType", required = true) + @XmlSchemaType(name = "string") + protected CustomerListActionType actionType; + @XmlElement(name = "AudienceId") + protected long audienceId; + @XmlElement(name = "CustomerListItemSubType", required = true) + @XmlSchemaType(name = "string") + protected CustomerListItemSubType customerListItemSubType; + @XmlElement(name = "CustomerListItems", required = true, nillable = true) + protected ArrayOfstring customerListItems; + + /** + * Gets the value of the actionType property. + * + * @return + * possible object is + * {@link CustomerListActionType } + * + */ + public CustomerListActionType getActionType() { + return actionType; + } + + /** + * Sets the value of the actionType property. + * + * @param value + * allowed object is + * {@link CustomerListActionType } + * + */ + public void setActionType(CustomerListActionType value) { + this.actionType = value; + } + + /** + * Gets the value of the audienceId property. + * + */ + public long getAudienceId() { + return audienceId; + } + + /** + * Sets the value of the audienceId property. + * + */ + public void setAudienceId(long value) { + this.audienceId = value; + } + + /** + * Gets the value of the customerListItemSubType property. + * + * @return + * possible object is + * {@link CustomerListItemSubType } + * + */ + public CustomerListItemSubType getCustomerListItemSubType() { + return customerListItemSubType; + } + + /** + * Sets the value of the customerListItemSubType property. + * + * @param value + * allowed object is + * {@link CustomerListItemSubType } + * + */ + public void setCustomerListItemSubType(CustomerListItemSubType value) { + this.customerListItemSubType = value; + } + + /** + * Gets the value of the customerListItems property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getCustomerListItems() { + return customerListItems; + } + + /** + * Sets the value of the customerListItems property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setCustomerListItems(ArrayOfstring value) { + this.customerListItems = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/DataExclusion.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/DataExclusion.java new file mode 100644 index 0000000000..44b5badae0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/DataExclusion.java @@ -0,0 +1,268 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import java.util.Calendar; +import java.util.Collection; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for DataExclusion complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DataExclusion", propOrder = { + "campaignAssociations", + "campaignTypeFilter", + "description", + "deviceTypeFilter", + "endDate", + "id", + "name", + "startDate" +}) +public class DataExclusion { + + @XmlElement(name = "CampaignAssociations", nillable = true) + protected ArrayOfCampaignAssociation campaignAssociations; + @XmlElement(name = "CampaignTypeFilter", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter3 .class) + protected Collection campaignTypeFilter; + @XmlElement(name = "Description", nillable = true) + protected String description; + @XmlElement(name = "DeviceTypeFilter", nillable = true) + @XmlSchemaType(name = "string") + protected DeviceType deviceTypeFilter; + @XmlElement(name = "EndDate", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar endDate; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "Name", nillable = true) + protected String name; + @XmlElement(name = "StartDate", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar startDate; + + /** + * Gets the value of the campaignAssociations property. + * + * @return + * possible object is + * {@link ArrayOfCampaignAssociation } + * + */ + public ArrayOfCampaignAssociation getCampaignAssociations() { + return campaignAssociations; + } + + /** + * Sets the value of the campaignAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignAssociation } + * + */ + public void setCampaignAssociations(ArrayOfCampaignAssociation value) { + this.campaignAssociations = value; + } + + /** + * Gets the value of the campaignTypeFilter property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCampaignTypeFilter() { + return campaignTypeFilter; + } + + /** + * Sets the value of the campaignTypeFilter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCampaignTypeFilter(Collection value) { + this.campaignTypeFilter = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the deviceTypeFilter property. + * + * @return + * possible object is + * {@link DeviceType } + * + */ + public DeviceType getDeviceTypeFilter() { + return deviceTypeFilter; + } + + /** + * Sets the value of the deviceTypeFilter property. + * + * @param value + * allowed object is + * {@link DeviceType } + * + */ + public void setDeviceTypeFilter(DeviceType value) { + this.deviceTypeFilter = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndDate(Calendar value) { + this.endDate = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setId(Long value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartDate(Calendar value) { + this.startDate = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsRequest.java new file mode 100644 index 0000000000..84c5093216 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "dataExclusionIds" +}) +@XmlRootElement(name = "DeleteDataExclusionsRequest") +public class DeleteDataExclusionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "DataExclusionIds", nillable = true) + protected ArrayOflong dataExclusionIds; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the dataExclusionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getDataExclusionIds() { + return dataExclusionIds; + } + + /** + * Sets the value of the dataExclusionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setDataExclusionIds(ArrayOflong value) { + this.dataExclusionIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsResponse.java new file mode 100644 index 0000000000..08fe55bbc7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteDataExclusionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteDataExclusionsResponse") +public class DeleteDataExclusionsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsRequest.java new file mode 100644 index 0000000000..1e08acd31b --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "seasonalityAdjustmentIds" +}) +@XmlRootElement(name = "DeleteSeasonalityAdjustmentsRequest") +public class DeleteSeasonalityAdjustmentsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "SeasonalityAdjustmentIds", nillable = true) + protected ArrayOflong seasonalityAdjustmentIds; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the seasonalityAdjustmentIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getSeasonalityAdjustmentIds() { + return seasonalityAdjustmentIds; + } + + /** + * Sets the value of the seasonalityAdjustmentIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setSeasonalityAdjustmentIds(ArrayOflong value) { + this.seasonalityAdjustmentIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsResponse.java new file mode 100644 index 0000000000..c421a985bb --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeleteSeasonalityAdjustmentsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteSeasonalityAdjustmentsResponse") +public class DeleteSeasonalityAdjustmentsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/DeviceType.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeviceType.java new file mode 100644 index 0000000000..ef53aabbfe --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/DeviceType.java @@ -0,0 +1,59 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for DeviceType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

{@code
+ * 
+ *   
+ *     
+ *     
+ *     
+ *     
+ *     
+ *   
+ * 
+ * }
+ * + */ +@XmlType(name = "DeviceType") +@XmlEnum +public enum DeviceType { + + @XmlEnumValue("None") + NONE("None"), + @XmlEnumValue("Computers") + COMPUTERS("Computers"), + @XmlEnumValue("Smartphones") + SMARTPHONES("Smartphones"), + @XmlEnumValue("Tablets") + TABLETS("Tablets"), + @XmlEnumValue("All") + ALL("All"); + private final String value; + + DeviceType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DeviceType fromValue(String v) { + for (DeviceType c: DeviceType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdRequest.java new file mode 100644 index 0000000000..478cd8e4f6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId" +}) +@XmlRootElement(name = "GetDataExclusionsByAccountIdRequest") +public class GetDataExclusionsByAccountIdRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdResponse.java new file mode 100644 index 0000000000..faeeffaacc --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByAccountIdResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dataExclusions", + "partialErrors" +}) +@XmlRootElement(name = "GetDataExclusionsByAccountIdResponse") +public class GetDataExclusionsByAccountIdResponse { + + @XmlElement(name = "DataExclusions", nillable = true) + protected ArrayOfDataExclusion dataExclusions; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the dataExclusions property. + * + * @return + * possible object is + * {@link ArrayOfDataExclusion } + * + */ + public ArrayOfDataExclusion getDataExclusions() { + return dataExclusions; + } + + /** + * Sets the value of the dataExclusions property. + * + * @param value + * allowed object is + * {@link ArrayOfDataExclusion } + * + */ + public void setDataExclusions(ArrayOfDataExclusion value) { + this.dataExclusions = value; + } + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsRequest.java new file mode 100644 index 0000000000..be3062c4b3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "dataExclusionIds" +}) +@XmlRootElement(name = "GetDataExclusionsByIdsRequest") +public class GetDataExclusionsByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "DataExclusionIds", nillable = true) + protected ArrayOflong dataExclusionIds; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the dataExclusionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getDataExclusionIds() { + return dataExclusionIds; + } + + /** + * Sets the value of the dataExclusionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setDataExclusionIds(ArrayOflong value) { + this.dataExclusionIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsResponse.java new file mode 100644 index 0000000000..a36a646f2f --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetDataExclusionsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dataExclusions", + "partialErrors" +}) +@XmlRootElement(name = "GetDataExclusionsByIdsResponse") +public class GetDataExclusionsByIdsResponse { + + @XmlElement(name = "DataExclusions", nillable = true) + protected ArrayOfDataExclusion dataExclusions; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the dataExclusions property. + * + * @return + * possible object is + * {@link ArrayOfDataExclusion } + * + */ + public ArrayOfDataExclusion getDataExclusions() { + return dataExclusions; + } + + /** + * Sets the value of the dataExclusions property. + * + * @param value + * allowed object is + * {@link ArrayOfDataExclusion } + * + */ + public void setDataExclusions(ArrayOfDataExclusion value) { + this.dataExclusions = value; + } + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdRequest.java new file mode 100644 index 0000000000..0174ca087b --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId" +}) +@XmlRootElement(name = "GetSeasonalityAdjustmentsByAccountIdRequest") +public class GetSeasonalityAdjustmentsByAccountIdRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdResponse.java new file mode 100644 index 0000000000..be1aaf5d9c --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByAccountIdResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "seasonalityAdjustments", + "partialErrors" +}) +@XmlRootElement(name = "GetSeasonalityAdjustmentsByAccountIdResponse") +public class GetSeasonalityAdjustmentsByAccountIdResponse { + + @XmlElement(name = "SeasonalityAdjustments", nillable = true) + protected ArrayOfSeasonalityAdjustment seasonalityAdjustments; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the seasonalityAdjustments property. + * + * @return + * possible object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public ArrayOfSeasonalityAdjustment getSeasonalityAdjustments() { + return seasonalityAdjustments; + } + + /** + * Sets the value of the seasonalityAdjustments property. + * + * @param value + * allowed object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public void setSeasonalityAdjustments(ArrayOfSeasonalityAdjustment value) { + this.seasonalityAdjustments = value; + } + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsRequest.java new file mode 100644 index 0000000000..91e310c132 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "seasonalityAdjustmentIds" +}) +@XmlRootElement(name = "GetSeasonalityAdjustmentsByIdsRequest") +public class GetSeasonalityAdjustmentsByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "SeasonalityAdjustmentIds", nillable = true) + protected ArrayOflong seasonalityAdjustmentIds; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the seasonalityAdjustmentIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getSeasonalityAdjustmentIds() { + return seasonalityAdjustmentIds; + } + + /** + * Sets the value of the seasonalityAdjustmentIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setSeasonalityAdjustmentIds(ArrayOflong value) { + this.seasonalityAdjustmentIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsResponse.java new file mode 100644 index 0000000000..9a7d86665f --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GetSeasonalityAdjustmentsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "seasonalityAdjustments", + "partialErrors" +}) +@XmlRootElement(name = "GetSeasonalityAdjustmentsByIdsResponse") +public class GetSeasonalityAdjustmentsByIdsResponse { + + @XmlElement(name = "SeasonalityAdjustments", nillable = true) + protected ArrayOfSeasonalityAdjustment seasonalityAdjustments; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the seasonalityAdjustments property. + * + * @return + * possible object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public ArrayOfSeasonalityAdjustment getSeasonalityAdjustments() { + return seasonalityAdjustments; + } + + /** + * Sets the value of the seasonalityAdjustments property. + * + * @param value + * allowed object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public void setSeasonalityAdjustments(ArrayOfSeasonalityAdjustment value) { + this.seasonalityAdjustments = value; + } + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/GoogleImportOption.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/GoogleImportOption.java index b5215c486d..706350c574 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/GoogleImportOption.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/GoogleImportOption.java @@ -27,6 +27,7 @@ * * * + * * * * @@ -43,6 +44,7 @@ * * * + * * * * @@ -75,6 +77,8 @@ * * * + * + * * * * @@ -94,6 +98,7 @@ * * * + * * * * @@ -132,6 +137,7 @@ "deleteRemovedEntities", "enableAutoCurrencyConversion", "enableParentLocationMapping", + "newAccountNegativeKeywords", "newActiveAdsForExistingAdGroups", "newActiveCampaignsAndChildEntities", "newAdCustomizerFeeds", @@ -148,6 +154,7 @@ "newKeywordUrls", "newKeywordsForExistingAdGroups", "newLabels", + "newLeadFormAdExtensions", "newLocationAdExtensions", "newLocationTargets", "newLogoAdExtensions", @@ -180,6 +187,8 @@ "suffixForCampaignNames", "suffixForTrackingTemplates", "suffixForUrls", + "updateAccountNegativeKeywords", + "updateAdCustomizerAttributes", "updateAdCustomizerFeeds", "updateAdGroupNetwork", "updateAdSchedules", @@ -199,6 +208,7 @@ "updateImageAdExtensions", "updateKeywordUrls", "updateLabels", + "updateLeadFormAdExtensions", "updateLocationAdExtensions", "updateLocationTargets", "updateLogoAdExtensions", @@ -245,6 +255,8 @@ public GoogleImportOption() { protected Boolean enableAutoCurrencyConversion; @XmlElement(name = "EnableParentLocationMapping", nillable = true) protected Boolean enableParentLocationMapping; + @XmlElement(name = "NewAccountNegativeKeywords", nillable = true) + protected Boolean newAccountNegativeKeywords; @XmlElement(name = "NewActiveAdsForExistingAdGroups", nillable = true) protected Boolean newActiveAdsForExistingAdGroups; @XmlElement(name = "NewActiveCampaignsAndChildEntities", nillable = true) @@ -277,6 +289,8 @@ public GoogleImportOption() { protected Boolean newKeywordsForExistingAdGroups; @XmlElement(name = "NewLabels", nillable = true) protected Boolean newLabels; + @XmlElement(name = "NewLeadFormAdExtensions", nillable = true) + protected Boolean newLeadFormAdExtensions; @XmlElement(name = "NewLocationAdExtensions", nillable = true) protected Boolean newLocationAdExtensions; @XmlElement(name = "NewLocationTargets", nillable = true) @@ -341,6 +355,10 @@ public GoogleImportOption() { protected String suffixForTrackingTemplates; @XmlElement(name = "SuffixForUrls", nillable = true) protected String suffixForUrls; + @XmlElement(name = "UpdateAccountNegativeKeywords", nillable = true) + protected Boolean updateAccountNegativeKeywords; + @XmlElement(name = "UpdateAdCustomizerAttributes", nillable = true) + protected Boolean updateAdCustomizerAttributes; @XmlElement(name = "UpdateAdCustomizerFeeds", nillable = true) protected Boolean updateAdCustomizerFeeds; @XmlElement(name = "UpdateAdGroupNetwork", nillable = true) @@ -379,6 +397,8 @@ public GoogleImportOption() { protected Boolean updateKeywordUrls; @XmlElement(name = "UpdateLabels", nillable = true) protected Boolean updateLabels; + @XmlElement(name = "UpdateLeadFormAdExtensions", nillable = true) + protected Boolean updateLeadFormAdExtensions; @XmlElement(name = "UpdateLocationAdExtensions", nillable = true) protected Boolean updateLocationAdExtensions; @XmlElement(name = "UpdateLocationTargets", nillable = true) @@ -656,6 +676,30 @@ public void setEnableParentLocationMapping(Boolean value) { this.enableParentLocationMapping = value; } + /** + * Gets the value of the newAccountNegativeKeywords property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getNewAccountNegativeKeywords() { + return newAccountNegativeKeywords; + } + + /** + * Sets the value of the newAccountNegativeKeywords property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNewAccountNegativeKeywords(Boolean value) { + this.newAccountNegativeKeywords = value; + } + /** * Gets the value of the newActiveAdsForExistingAdGroups property. * @@ -1040,6 +1084,30 @@ public void setNewLabels(Boolean value) { this.newLabels = value; } + /** + * Gets the value of the newLeadFormAdExtensions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getNewLeadFormAdExtensions() { + return newLeadFormAdExtensions; + } + + /** + * Sets the value of the newLeadFormAdExtensions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNewLeadFormAdExtensions(Boolean value) { + this.newLeadFormAdExtensions = value; + } + /** * Gets the value of the newLocationAdExtensions property. * @@ -1808,6 +1876,54 @@ public void setSuffixForUrls(String value) { this.suffixForUrls = value; } + /** + * Gets the value of the updateAccountNegativeKeywords property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getUpdateAccountNegativeKeywords() { + return updateAccountNegativeKeywords; + } + + /** + * Sets the value of the updateAccountNegativeKeywords property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUpdateAccountNegativeKeywords(Boolean value) { + this.updateAccountNegativeKeywords = value; + } + + /** + * Gets the value of the updateAdCustomizerAttributes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getUpdateAdCustomizerAttributes() { + return updateAdCustomizerAttributes; + } + + /** + * Sets the value of the updateAdCustomizerAttributes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUpdateAdCustomizerAttributes(Boolean value) { + this.updateAdCustomizerAttributes = value; + } + /** * Gets the value of the updateAdCustomizerFeeds property. * @@ -2264,6 +2380,30 @@ public void setUpdateLabels(Boolean value) { this.updateLabels = value; } + /** + * Gets the value of the updateLeadFormAdExtensions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getUpdateLeadFormAdExtensions() { + return updateLeadFormAdExtensions; + } + + /** + * Sets the value of the updateLeadFormAdExtensions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUpdateLeadFormAdExtensions(Boolean value) { + this.updateLeadFormAdExtensions = value; + } + /** * Gets the value of the updateLocationAdExtensions property. * diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ICampaignManagementService.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ICampaignManagementService.java index 906a87b2b1..75331a10c2 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/ICampaignManagementService.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ICampaignManagementService.java @@ -4372,6 +4372,47 @@ public ApplyCustomerListItemsResponse applyCustomerListItems( throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "ApplyCustomerListUserData", action = "ApplyCustomerListUserData") + public Response applyCustomerListUserDataAsync( + @WebParam(name = "ApplyCustomerListUserDataRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + ApplyCustomerListUserDataRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "ApplyCustomerListUserData", action = "ApplyCustomerListUserData") + public Future applyCustomerListUserDataAsync( + @WebParam(name = "ApplyCustomerListUserDataRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + ApplyCustomerListUserDataRequest parameters, + @WebParam(name = "ApplyCustomerListUserDataResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.ApplyCustomerListUserDataResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "ApplyCustomerListUserData", action = "ApplyCustomerListUserData") + @WebResult(name = "ApplyCustomerListUserDataResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public ApplyCustomerListUserDataResponse applyCustomerListUserData( + @WebParam(name = "ApplyCustomerListUserDataRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + ApplyCustomerListUserDataRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + /** * * @param parameters @@ -5889,4 +5930,414 @@ public DeleteCampaignConversionGoalsResponse deleteCampaignConversionGoals( throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "AddDataExclusions", action = "AddDataExclusions") + public Response addDataExclusionsAsync( + @WebParam(name = "AddDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + AddDataExclusionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddDataExclusions", action = "AddDataExclusions") + public Future addDataExclusionsAsync( + @WebParam(name = "AddDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + AddDataExclusionsRequest parameters, + @WebParam(name = "AddDataExclusionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.AddDataExclusionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddDataExclusions", action = "AddDataExclusions") + @WebResult(name = "AddDataExclusionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public AddDataExclusionsResponse addDataExclusions( + @WebParam(name = "AddDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + AddDataExclusionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "UpdateDataExclusions", action = "UpdateDataExclusions") + public Response updateDataExclusionsAsync( + @WebParam(name = "UpdateDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + UpdateDataExclusionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateDataExclusions", action = "UpdateDataExclusions") + public Future updateDataExclusionsAsync( + @WebParam(name = "UpdateDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + UpdateDataExclusionsRequest parameters, + @WebParam(name = "UpdateDataExclusionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.UpdateDataExclusionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateDataExclusions", action = "UpdateDataExclusions") + @WebResult(name = "UpdateDataExclusionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public UpdateDataExclusionsResponse updateDataExclusions( + @WebParam(name = "UpdateDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + UpdateDataExclusionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "DeleteDataExclusions", action = "DeleteDataExclusions") + public Response deleteDataExclusionsAsync( + @WebParam(name = "DeleteDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + DeleteDataExclusionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteDataExclusions", action = "DeleteDataExclusions") + public Future deleteDataExclusionsAsync( + @WebParam(name = "DeleteDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + DeleteDataExclusionsRequest parameters, + @WebParam(name = "DeleteDataExclusionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.DeleteDataExclusionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteDataExclusions", action = "DeleteDataExclusions") + @WebResult(name = "DeleteDataExclusionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public DeleteDataExclusionsResponse deleteDataExclusions( + @WebParam(name = "DeleteDataExclusionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + DeleteDataExclusionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "GetDataExclusionsByIds", action = "GetDataExclusionsByIds") + public Response getDataExclusionsByIdsAsync( + @WebParam(name = "GetDataExclusionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetDataExclusionsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetDataExclusionsByIds", action = "GetDataExclusionsByIds") + public Future getDataExclusionsByIdsAsync( + @WebParam(name = "GetDataExclusionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetDataExclusionsByIdsRequest parameters, + @WebParam(name = "GetDataExclusionsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.GetDataExclusionsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetDataExclusionsByIds", action = "GetDataExclusionsByIds") + @WebResult(name = "GetDataExclusionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public GetDataExclusionsByIdsResponse getDataExclusionsByIds( + @WebParam(name = "GetDataExclusionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetDataExclusionsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "GetDataExclusionsByAccountId", action = "GetDataExclusionsByAccountId") + public Response getDataExclusionsByAccountIdAsync( + @WebParam(name = "GetDataExclusionsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetDataExclusionsByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetDataExclusionsByAccountId", action = "GetDataExclusionsByAccountId") + public Future getDataExclusionsByAccountIdAsync( + @WebParam(name = "GetDataExclusionsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetDataExclusionsByAccountIdRequest parameters, + @WebParam(name = "GetDataExclusionsByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.GetDataExclusionsByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetDataExclusionsByAccountId", action = "GetDataExclusionsByAccountId") + @WebResult(name = "GetDataExclusionsByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public GetDataExclusionsByAccountIdResponse getDataExclusionsByAccountId( + @WebParam(name = "GetDataExclusionsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetDataExclusionsByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "AddSeasonalityAdjustments", action = "AddSeasonalityAdjustments") + public Response addSeasonalityAdjustmentsAsync( + @WebParam(name = "AddSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + AddSeasonalityAdjustmentsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddSeasonalityAdjustments", action = "AddSeasonalityAdjustments") + public Future addSeasonalityAdjustmentsAsync( + @WebParam(name = "AddSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + AddSeasonalityAdjustmentsRequest parameters, + @WebParam(name = "AddSeasonalityAdjustmentsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.AddSeasonalityAdjustmentsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddSeasonalityAdjustments", action = "AddSeasonalityAdjustments") + @WebResult(name = "AddSeasonalityAdjustmentsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public AddSeasonalityAdjustmentsResponse addSeasonalityAdjustments( + @WebParam(name = "AddSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + AddSeasonalityAdjustmentsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "UpdateSeasonalityAdjustments", action = "UpdateSeasonalityAdjustments") + public Response updateSeasonalityAdjustmentsAsync( + @WebParam(name = "UpdateSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + UpdateSeasonalityAdjustmentsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateSeasonalityAdjustments", action = "UpdateSeasonalityAdjustments") + public Future updateSeasonalityAdjustmentsAsync( + @WebParam(name = "UpdateSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + UpdateSeasonalityAdjustmentsRequest parameters, + @WebParam(name = "UpdateSeasonalityAdjustmentsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.UpdateSeasonalityAdjustmentsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateSeasonalityAdjustments", action = "UpdateSeasonalityAdjustments") + @WebResult(name = "UpdateSeasonalityAdjustmentsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public UpdateSeasonalityAdjustmentsResponse updateSeasonalityAdjustments( + @WebParam(name = "UpdateSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + UpdateSeasonalityAdjustmentsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "DeleteSeasonalityAdjustments", action = "DeleteSeasonalityAdjustments") + public Response deleteSeasonalityAdjustmentsAsync( + @WebParam(name = "DeleteSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + DeleteSeasonalityAdjustmentsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteSeasonalityAdjustments", action = "DeleteSeasonalityAdjustments") + public Future deleteSeasonalityAdjustmentsAsync( + @WebParam(name = "DeleteSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + DeleteSeasonalityAdjustmentsRequest parameters, + @WebParam(name = "DeleteSeasonalityAdjustmentsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.DeleteSeasonalityAdjustmentsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteSeasonalityAdjustments", action = "DeleteSeasonalityAdjustments") + @WebResult(name = "DeleteSeasonalityAdjustmentsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public DeleteSeasonalityAdjustmentsResponse deleteSeasonalityAdjustments( + @WebParam(name = "DeleteSeasonalityAdjustmentsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + DeleteSeasonalityAdjustmentsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "GetSeasonalityAdjustmentsByIds", action = "GetSeasonalityAdjustmentsByIds") + public Response getSeasonalityAdjustmentsByIdsAsync( + @WebParam(name = "GetSeasonalityAdjustmentsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetSeasonalityAdjustmentsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSeasonalityAdjustmentsByIds", action = "GetSeasonalityAdjustmentsByIds") + public Future getSeasonalityAdjustmentsByIdsAsync( + @WebParam(name = "GetSeasonalityAdjustmentsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetSeasonalityAdjustmentsByIdsRequest parameters, + @WebParam(name = "GetSeasonalityAdjustmentsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.GetSeasonalityAdjustmentsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSeasonalityAdjustmentsByIds", action = "GetSeasonalityAdjustmentsByIds") + @WebResult(name = "GetSeasonalityAdjustmentsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public GetSeasonalityAdjustmentsByIdsResponse getSeasonalityAdjustmentsByIds( + @WebParam(name = "GetSeasonalityAdjustmentsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetSeasonalityAdjustmentsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "GetSeasonalityAdjustmentsByAccountId", action = "GetSeasonalityAdjustmentsByAccountId") + public Response getSeasonalityAdjustmentsByAccountIdAsync( + @WebParam(name = "GetSeasonalityAdjustmentsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetSeasonalityAdjustmentsByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSeasonalityAdjustmentsByAccountId", action = "GetSeasonalityAdjustmentsByAccountId") + public Future getSeasonalityAdjustmentsByAccountIdAsync( + @WebParam(name = "GetSeasonalityAdjustmentsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetSeasonalityAdjustmentsByAccountIdRequest parameters, + @WebParam(name = "GetSeasonalityAdjustmentsByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.campaignmanagement.GetSeasonalityAdjustmentsByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSeasonalityAdjustmentsByAccountId", action = "GetSeasonalityAdjustmentsByAccountId") + @WebResult(name = "GetSeasonalityAdjustmentsByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + public GetSeasonalityAdjustmentsByAccountIdResponse getSeasonalityAdjustmentsByAccountId( + @WebParam(name = "GetSeasonalityAdjustmentsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v13", partName = "parameters") + GetSeasonalityAdjustmentsByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + } diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ImportAdditionalField.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ImportAdditionalField.java index e991112df5..7f5818251d 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/ImportAdditionalField.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ImportAdditionalField.java @@ -18,7 +18,12 @@ public enum ImportAdditionalField { UPDATE_AD_URLS("UpdateAdUrls"), NEW_LOGO_AD_EXTENSIONS("NewLogoAdExtensions"), UPDATE_LOGO_AD_EXTENSIONS("UpdateLogoAdExtensions"), - UPDATE_SITELINK_URLS("UpdateSitelinkUrls"); + UPDATE_SITELINK_URLS("UpdateSitelinkUrls"), + NEW_LEAD_FORM_AD_EXTENSIONS("NewLeadFormAdExtensions"), + UPDATE_LEAD_FORM_AD_EXTENSIONS("UpdateLeadFormAdExtensions"), + NEW_ACCOUNT_NEGATIVE_KEYWORDS("NewAccountNegativeKeywords"), + UPDATE_ACCOUNT_NEGATIVE_KEYWORDS("UpdateAccountNegativeKeywords"), + UPDATE_AD_CUSTOMIZER_ATTRIBUTES("UpdateAdCustomizerAttributes"); private final String value; diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/ObjectFactory.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/ObjectFactory.java index bd6657af29..58933cb519 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/ObjectFactory.java @@ -294,6 +294,7 @@ public class ObjectFactory { private static final QName _NegativeKeyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "NegativeKeyword"); private static final QName _SharedListItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "SharedListItem"); private static final QName _NegativeSite_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "NegativeSite"); + private static final QName _BrandItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "BrandItem"); private static final QName _ArrayOfIdCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfIdCollection"); private static final QName _IdCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "IdCollection"); private static final QName _ArrayOfSharedEntity_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfSharedEntity"); @@ -302,6 +303,7 @@ public class ObjectFactory { private static final QName _NegativeKeywordList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "NegativeKeywordList"); private static final QName _PlacementExclusionList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "PlacementExclusionList"); private static final QName _AccountNegativeKeywordList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "AccountNegativeKeywordList"); + private static final QName _BrandList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "BrandList"); private static final QName _EntityScope_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "EntityScope"); private static final QName _ArrayOfSharedListItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfSharedListItem"); private static final QName _ArrayOfSharedEntityAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfSharedEntityAssociation"); @@ -372,11 +374,10 @@ public class ObjectFactory { private static final QName _CombinationRule_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CombinationRule"); private static final QName _LogicalOperator_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "LogicalOperator"); private static final QName _CustomerList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CustomerList"); + private static final QName _AudienceAdditionalField_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "AudienceAdditionalField"); + private static final QName _CustomerListUserData_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CustomerListUserData"); private static final QName _CustomerListActionType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CustomerListActionType"); - private static final QName _ArrayOfCustomerListItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfCustomerListItem"); - private static final QName _CustomerListItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CustomerListItem"); private static final QName _CustomerListItemSubType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CustomerListItemSubType"); - private static final QName _AudienceAdditionalField_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "AudienceAdditionalField"); private static final QName _ArrayOfUetTag_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfUetTag"); private static final QName _UetTag_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "UetTag"); private static final QName _UetTagTrackingStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "UetTagTrackingStatus"); @@ -435,6 +436,13 @@ public class ObjectFactory { private static final QName _Video_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "Video"); private static final QName _ArrayOfCampaignConversionGoal_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfCampaignConversionGoal"); private static final QName _CampaignConversionGoal_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CampaignConversionGoal"); + private static final QName _ArrayOfDataExclusion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfDataExclusion"); + private static final QName _DataExclusion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "DataExclusion"); + private static final QName _ArrayOfCampaignAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfCampaignAssociation"); + private static final QName _CampaignAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "CampaignAssociation"); + private static final QName _DeviceType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "DeviceType"); + private static final QName _ArrayOfSeasonalityAdjustment_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "ArrayOfSeasonalityAdjustment"); + private static final QName _SeasonalityAdjustment_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v13", "SeasonalityAdjustment"); private static final QName _ArrayOfstring_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOfstring"); private static final QName _ArrayOflong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOflong"); private static final QName _ArrayOfKeyValueOfstringstring_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOfKeyValueOfstringstring"); @@ -3737,6 +3745,16 @@ public NegativeSite createNegativeSite() { return new NegativeSite(); } + /** + * Create an instance of {@link BrandItem } + * + * @return + * the new instance of {@link BrandItem } + */ + public BrandItem createBrandItem() { + return new BrandItem(); + } + /** * Create an instance of {@link AddNegativeKeywordsToEntitiesResponse } * @@ -3887,6 +3905,16 @@ public AccountNegativeKeywordList createAccountNegativeKeywordList() { return new AccountNegativeKeywordList(); } + /** + * Create an instance of {@link BrandList } + * + * @return + * the new instance of {@link BrandList } + */ + public BrandList createBrandList() { + return new BrandList(); + } + /** * Create an instance of {@link GetSharedEntitiesRequest } * @@ -5287,26 +5315,6 @@ public CustomerList createCustomerList() { return new CustomerList(); } - /** - * Create an instance of {@link ArrayOfCustomerListItem } - * - * @return - * the new instance of {@link ArrayOfCustomerListItem } - */ - public ArrayOfCustomerListItem createArrayOfCustomerListItem() { - return new ArrayOfCustomerListItem(); - } - - /** - * Create an instance of {@link CustomerListItem } - * - * @return - * the new instance of {@link CustomerListItem } - */ - public CustomerListItem createCustomerListItem() { - return new CustomerListItem(); - } - /** * Create an instance of {@link AddAudiencesResponse } * @@ -5397,6 +5405,36 @@ public ApplyCustomerListItemsResponse createApplyCustomerListItemsResponse() { return new ApplyCustomerListItemsResponse(); } + /** + * Create an instance of {@link ApplyCustomerListUserDataRequest } + * + * @return + * the new instance of {@link ApplyCustomerListUserDataRequest } + */ + public ApplyCustomerListUserDataRequest createApplyCustomerListUserDataRequest() { + return new ApplyCustomerListUserDataRequest(); + } + + /** + * Create an instance of {@link CustomerListUserData } + * + * @return + * the new instance of {@link CustomerListUserData } + */ + public CustomerListUserData createCustomerListUserData() { + return new CustomerListUserData(); + } + + /** + * Create an instance of {@link ApplyCustomerListUserDataResponse } + * + * @return + * the new instance of {@link ApplyCustomerListUserDataResponse } + */ + public ApplyCustomerListUserDataResponse createApplyCustomerListUserDataResponse() { + return new ApplyCustomerListUserDataResponse(); + } + /** * Create an instance of {@link GetUetTagsByIdsRequest } * @@ -6597,6 +6635,266 @@ public DeleteCampaignConversionGoalsResponse createDeleteCampaignConversionGoals return new DeleteCampaignConversionGoalsResponse(); } + /** + * Create an instance of {@link AddDataExclusionsRequest } + * + * @return + * the new instance of {@link AddDataExclusionsRequest } + */ + public AddDataExclusionsRequest createAddDataExclusionsRequest() { + return new AddDataExclusionsRequest(); + } + + /** + * Create an instance of {@link ArrayOfDataExclusion } + * + * @return + * the new instance of {@link ArrayOfDataExclusion } + */ + public ArrayOfDataExclusion createArrayOfDataExclusion() { + return new ArrayOfDataExclusion(); + } + + /** + * Create an instance of {@link DataExclusion } + * + * @return + * the new instance of {@link DataExclusion } + */ + public DataExclusion createDataExclusion() { + return new DataExclusion(); + } + + /** + * Create an instance of {@link ArrayOfCampaignAssociation } + * + * @return + * the new instance of {@link ArrayOfCampaignAssociation } + */ + public ArrayOfCampaignAssociation createArrayOfCampaignAssociation() { + return new ArrayOfCampaignAssociation(); + } + + /** + * Create an instance of {@link CampaignAssociation } + * + * @return + * the new instance of {@link CampaignAssociation } + */ + public CampaignAssociation createCampaignAssociation() { + return new CampaignAssociation(); + } + + /** + * Create an instance of {@link AddDataExclusionsResponse } + * + * @return + * the new instance of {@link AddDataExclusionsResponse } + */ + public AddDataExclusionsResponse createAddDataExclusionsResponse() { + return new AddDataExclusionsResponse(); + } + + /** + * Create an instance of {@link UpdateDataExclusionsRequest } + * + * @return + * the new instance of {@link UpdateDataExclusionsRequest } + */ + public UpdateDataExclusionsRequest createUpdateDataExclusionsRequest() { + return new UpdateDataExclusionsRequest(); + } + + /** + * Create an instance of {@link UpdateDataExclusionsResponse } + * + * @return + * the new instance of {@link UpdateDataExclusionsResponse } + */ + public UpdateDataExclusionsResponse createUpdateDataExclusionsResponse() { + return new UpdateDataExclusionsResponse(); + } + + /** + * Create an instance of {@link DeleteDataExclusionsRequest } + * + * @return + * the new instance of {@link DeleteDataExclusionsRequest } + */ + public DeleteDataExclusionsRequest createDeleteDataExclusionsRequest() { + return new DeleteDataExclusionsRequest(); + } + + /** + * Create an instance of {@link DeleteDataExclusionsResponse } + * + * @return + * the new instance of {@link DeleteDataExclusionsResponse } + */ + public DeleteDataExclusionsResponse createDeleteDataExclusionsResponse() { + return new DeleteDataExclusionsResponse(); + } + + /** + * Create an instance of {@link GetDataExclusionsByIdsRequest } + * + * @return + * the new instance of {@link GetDataExclusionsByIdsRequest } + */ + public GetDataExclusionsByIdsRequest createGetDataExclusionsByIdsRequest() { + return new GetDataExclusionsByIdsRequest(); + } + + /** + * Create an instance of {@link GetDataExclusionsByIdsResponse } + * + * @return + * the new instance of {@link GetDataExclusionsByIdsResponse } + */ + public GetDataExclusionsByIdsResponse createGetDataExclusionsByIdsResponse() { + return new GetDataExclusionsByIdsResponse(); + } + + /** + * Create an instance of {@link GetDataExclusionsByAccountIdRequest } + * + * @return + * the new instance of {@link GetDataExclusionsByAccountIdRequest } + */ + public GetDataExclusionsByAccountIdRequest createGetDataExclusionsByAccountIdRequest() { + return new GetDataExclusionsByAccountIdRequest(); + } + + /** + * Create an instance of {@link GetDataExclusionsByAccountIdResponse } + * + * @return + * the new instance of {@link GetDataExclusionsByAccountIdResponse } + */ + public GetDataExclusionsByAccountIdResponse createGetDataExclusionsByAccountIdResponse() { + return new GetDataExclusionsByAccountIdResponse(); + } + + /** + * Create an instance of {@link AddSeasonalityAdjustmentsRequest } + * + * @return + * the new instance of {@link AddSeasonalityAdjustmentsRequest } + */ + public AddSeasonalityAdjustmentsRequest createAddSeasonalityAdjustmentsRequest() { + return new AddSeasonalityAdjustmentsRequest(); + } + + /** + * Create an instance of {@link ArrayOfSeasonalityAdjustment } + * + * @return + * the new instance of {@link ArrayOfSeasonalityAdjustment } + */ + public ArrayOfSeasonalityAdjustment createArrayOfSeasonalityAdjustment() { + return new ArrayOfSeasonalityAdjustment(); + } + + /** + * Create an instance of {@link SeasonalityAdjustment } + * + * @return + * the new instance of {@link SeasonalityAdjustment } + */ + public SeasonalityAdjustment createSeasonalityAdjustment() { + return new SeasonalityAdjustment(); + } + + /** + * Create an instance of {@link AddSeasonalityAdjustmentsResponse } + * + * @return + * the new instance of {@link AddSeasonalityAdjustmentsResponse } + */ + public AddSeasonalityAdjustmentsResponse createAddSeasonalityAdjustmentsResponse() { + return new AddSeasonalityAdjustmentsResponse(); + } + + /** + * Create an instance of {@link UpdateSeasonalityAdjustmentsRequest } + * + * @return + * the new instance of {@link UpdateSeasonalityAdjustmentsRequest } + */ + public UpdateSeasonalityAdjustmentsRequest createUpdateSeasonalityAdjustmentsRequest() { + return new UpdateSeasonalityAdjustmentsRequest(); + } + + /** + * Create an instance of {@link UpdateSeasonalityAdjustmentsResponse } + * + * @return + * the new instance of {@link UpdateSeasonalityAdjustmentsResponse } + */ + public UpdateSeasonalityAdjustmentsResponse createUpdateSeasonalityAdjustmentsResponse() { + return new UpdateSeasonalityAdjustmentsResponse(); + } + + /** + * Create an instance of {@link DeleteSeasonalityAdjustmentsRequest } + * + * @return + * the new instance of {@link DeleteSeasonalityAdjustmentsRequest } + */ + public DeleteSeasonalityAdjustmentsRequest createDeleteSeasonalityAdjustmentsRequest() { + return new DeleteSeasonalityAdjustmentsRequest(); + } + + /** + * Create an instance of {@link DeleteSeasonalityAdjustmentsResponse } + * + * @return + * the new instance of {@link DeleteSeasonalityAdjustmentsResponse } + */ + public DeleteSeasonalityAdjustmentsResponse createDeleteSeasonalityAdjustmentsResponse() { + return new DeleteSeasonalityAdjustmentsResponse(); + } + + /** + * Create an instance of {@link GetSeasonalityAdjustmentsByIdsRequest } + * + * @return + * the new instance of {@link GetSeasonalityAdjustmentsByIdsRequest } + */ + public GetSeasonalityAdjustmentsByIdsRequest createGetSeasonalityAdjustmentsByIdsRequest() { + return new GetSeasonalityAdjustmentsByIdsRequest(); + } + + /** + * Create an instance of {@link GetSeasonalityAdjustmentsByIdsResponse } + * + * @return + * the new instance of {@link GetSeasonalityAdjustmentsByIdsResponse } + */ + public GetSeasonalityAdjustmentsByIdsResponse createGetSeasonalityAdjustmentsByIdsResponse() { + return new GetSeasonalityAdjustmentsByIdsResponse(); + } + + /** + * Create an instance of {@link GetSeasonalityAdjustmentsByAccountIdRequest } + * + * @return + * the new instance of {@link GetSeasonalityAdjustmentsByAccountIdRequest } + */ + public GetSeasonalityAdjustmentsByAccountIdRequest createGetSeasonalityAdjustmentsByAccountIdRequest() { + return new GetSeasonalityAdjustmentsByAccountIdRequest(); + } + + /** + * Create an instance of {@link GetSeasonalityAdjustmentsByAccountIdResponse } + * + * @return + * the new instance of {@link GetSeasonalityAdjustmentsByAccountIdResponse } + */ + public GetSeasonalityAdjustmentsByAccountIdResponse createGetSeasonalityAdjustmentsByAccountIdResponse() { + return new GetSeasonalityAdjustmentsByAccountIdResponse(); + } + /** * Create an instance of {@link ArrayOfKeyValuePairOfstringstring } * @@ -10188,6 +10486,19 @@ public JAXBElement createNegativeSite(NegativeSite value) { return new JAXBElement<>(_NegativeSite_QNAME, NegativeSite.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BrandItem }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link BrandItem }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "BrandItem") + public JAXBElement createBrandItem(BrandItem value) { + return new JAXBElement<>(_BrandItem_QNAME, BrandItem.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfIdCollection }{@code >} * @@ -10292,6 +10603,19 @@ public JAXBElement createAccountNegativeKeywordList( return new JAXBElement<>(_AccountNegativeKeywordList_QNAME, AccountNegativeKeywordList.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BrandList }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link BrandList }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "BrandList") + public JAXBElement createBrandList(BrandList value) { + return new JAXBElement<>(_BrandList_QNAME, BrandList.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link EntityScope }{@code >} * @@ -11205,42 +11529,43 @@ public JAXBElement createCustomerList(CustomerList value) { } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CustomerListActionType }{@code >} + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AudienceAdditionalField }{@code >}{@code >} * * @param value * Java instance representing xml element's value. * @return - * the new instance of {@link JAXBElement }{@code <}{@link CustomerListActionType }{@code >} + * the new instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AudienceAdditionalField }{@code >}{@code >} */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "CustomerListActionType") - public JAXBElement createCustomerListActionType(CustomerListActionType value) { - return new JAXBElement<>(_CustomerListActionType_QNAME, CustomerListActionType.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "AudienceAdditionalField") + @XmlJavaTypeAdapter(Adapter17 .class) + public JAXBElement> createAudienceAdditionalField(Collection value) { + return new JAXBElement<>(_AudienceAdditionalField_QNAME, ((Class) Collection.class), null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCustomerListItem }{@code >} + * Create an instance of {@link JAXBElement }{@code <}{@link CustomerListUserData }{@code >} * * @param value * Java instance representing xml element's value. * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfCustomerListItem }{@code >} + * the new instance of {@link JAXBElement }{@code <}{@link CustomerListUserData }{@code >} */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "ArrayOfCustomerListItem") - public JAXBElement createArrayOfCustomerListItem(ArrayOfCustomerListItem value) { - return new JAXBElement<>(_ArrayOfCustomerListItem_QNAME, ArrayOfCustomerListItem.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "CustomerListUserData") + public JAXBElement createCustomerListUserData(CustomerListUserData value) { + return new JAXBElement<>(_CustomerListUserData_QNAME, CustomerListUserData.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link CustomerListItem }{@code >} + * Create an instance of {@link JAXBElement }{@code <}{@link CustomerListActionType }{@code >} * * @param value * Java instance representing xml element's value. * @return - * the new instance of {@link JAXBElement }{@code <}{@link CustomerListItem }{@code >} + * the new instance of {@link JAXBElement }{@code <}{@link CustomerListActionType }{@code >} */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "CustomerListItem") - public JAXBElement createCustomerListItem(CustomerListItem value) { - return new JAXBElement<>(_CustomerListItem_QNAME, CustomerListItem.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "CustomerListActionType") + public JAXBElement createCustomerListActionType(CustomerListActionType value) { + return new JAXBElement<>(_CustomerListActionType_QNAME, CustomerListActionType.class, null, value); } /** @@ -11256,20 +11581,6 @@ public JAXBElement createCustomerListItemSubType(Custom return new JAXBElement<>(_CustomerListItemSubType_QNAME, CustomerListItemSubType.class, null, value); } - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AudienceAdditionalField }{@code >}{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AudienceAdditionalField }{@code >}{@code >} - */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "AudienceAdditionalField") - @XmlJavaTypeAdapter(Adapter17 .class) - public JAXBElement> createAudienceAdditionalField(Collection value) { - return new JAXBElement<>(_AudienceAdditionalField_QNAME, ((Class) Collection.class), null, value); - } - /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfUetTag }{@code >} * @@ -12027,6 +12338,97 @@ public JAXBElement createCampaignConversionGoal(Campaign return new JAXBElement<>(_CampaignConversionGoal_QNAME, CampaignConversionGoal.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfDataExclusion }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfDataExclusion }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "ArrayOfDataExclusion") + public JAXBElement createArrayOfDataExclusion(ArrayOfDataExclusion value) { + return new JAXBElement<>(_ArrayOfDataExclusion_QNAME, ArrayOfDataExclusion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DataExclusion }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link DataExclusion }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "DataExclusion") + public JAXBElement createDataExclusion(DataExclusion value) { + return new JAXBElement<>(_DataExclusion_QNAME, DataExclusion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignAssociation }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignAssociation }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "ArrayOfCampaignAssociation") + public JAXBElement createArrayOfCampaignAssociation(ArrayOfCampaignAssociation value) { + return new JAXBElement<>(_ArrayOfCampaignAssociation_QNAME, ArrayOfCampaignAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignAssociation }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link CampaignAssociation }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "CampaignAssociation") + public JAXBElement createCampaignAssociation(CampaignAssociation value) { + return new JAXBElement<>(_CampaignAssociation_QNAME, CampaignAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DeviceType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link DeviceType }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "DeviceType") + public JAXBElement createDeviceType(DeviceType value) { + return new JAXBElement<>(_DeviceType_QNAME, DeviceType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSeasonalityAdjustment }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfSeasonalityAdjustment }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "ArrayOfSeasonalityAdjustment") + public JAXBElement createArrayOfSeasonalityAdjustment(ArrayOfSeasonalityAdjustment value) { + return new JAXBElement<>(_ArrayOfSeasonalityAdjustment_QNAME, ArrayOfSeasonalityAdjustment.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SeasonalityAdjustment }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link SeasonalityAdjustment }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v13", name = "SeasonalityAdjustment") + public JAXBElement createSeasonalityAdjustment(SeasonalityAdjustment value) { + return new JAXBElement<>(_SeasonalityAdjustment_QNAME, SeasonalityAdjustment.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfstring }{@code >} * diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/PerformanceMaxSetting.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/PerformanceMaxSetting.java index d1a589a260..e9f7986675 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/PerformanceMaxSetting.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/PerformanceMaxSetting.java @@ -17,6 +17,8 @@ * * * + * + * * * * @@ -29,6 +31,8 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PerformanceMaxSetting", propOrder = { + "autoGeneratedImageOptOut", + "autoGeneratedTextOptOut", "finalUrlExpansionOptOut", "pageFeedIds" }) @@ -39,11 +43,63 @@ public PerformanceMaxSetting() { this.type = "PerformanceMaxSetting"; } + @XmlElement(name = "AutoGeneratedImageOptOut", nillable = true) + protected Boolean autoGeneratedImageOptOut; + @XmlElement(name = "AutoGeneratedTextOptOut", nillable = true) + protected Boolean autoGeneratedTextOptOut; @XmlElement(name = "FinalUrlExpansionOptOut") protected Boolean finalUrlExpansionOptOut; @XmlElement(name = "PageFeedIds", nillable = true) protected ArrayOflong pageFeedIds; + /** + * Gets the value of the autoGeneratedImageOptOut property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getAutoGeneratedImageOptOut() { + return autoGeneratedImageOptOut; + } + + /** + * Sets the value of the autoGeneratedImageOptOut property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoGeneratedImageOptOut(Boolean value) { + this.autoGeneratedImageOptOut = value; + } + + /** + * Gets the value of the autoGeneratedTextOptOut property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getAutoGeneratedTextOptOut() { + return autoGeneratedTextOptOut; + } + + /** + * Sets the value of the autoGeneratedTextOptOut property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoGeneratedTextOptOut(Boolean value) { + this.autoGeneratedTextOptOut = value; + } + /** * Gets the value of the finalUrlExpansionOptOut property. * diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/SeasonalityAdjustment.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/SeasonalityAdjustment.java new file mode 100644 index 0000000000..e07b6f8d30 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/SeasonalityAdjustment.java @@ -0,0 +1,296 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import java.util.Calendar; +import java.util.Collection; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for SeasonalityAdjustment complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SeasonalityAdjustment", propOrder = { + "adjustmentPercentage", + "campaignAssociations", + "campaignTypeFilter", + "description", + "deviceTypeFilter", + "endDate", + "id", + "name", + "startDate" +}) +public class SeasonalityAdjustment { + + @XmlElement(name = "AdjustmentPercentage", nillable = true) + protected Double adjustmentPercentage; + @XmlElement(name = "CampaignAssociations", nillable = true) + protected ArrayOfCampaignAssociation campaignAssociations; + @XmlElement(name = "CampaignTypeFilter", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter3 .class) + protected Collection campaignTypeFilter; + @XmlElement(name = "Description", nillable = true) + protected String description; + @XmlElement(name = "DeviceTypeFilter", nillable = true) + @XmlSchemaType(name = "string") + protected DeviceType deviceTypeFilter; + @XmlElement(name = "EndDate", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar endDate; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "Name", nillable = true) + protected String name; + @XmlElement(name = "StartDate", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar startDate; + + /** + * Gets the value of the adjustmentPercentage property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAdjustmentPercentage() { + return adjustmentPercentage; + } + + /** + * Sets the value of the adjustmentPercentage property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAdjustmentPercentage(Double value) { + this.adjustmentPercentage = value; + } + + /** + * Gets the value of the campaignAssociations property. + * + * @return + * possible object is + * {@link ArrayOfCampaignAssociation } + * + */ + public ArrayOfCampaignAssociation getCampaignAssociations() { + return campaignAssociations; + } + + /** + * Sets the value of the campaignAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignAssociation } + * + */ + public void setCampaignAssociations(ArrayOfCampaignAssociation value) { + this.campaignAssociations = value; + } + + /** + * Gets the value of the campaignTypeFilter property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCampaignTypeFilter() { + return campaignTypeFilter; + } + + /** + * Sets the value of the campaignTypeFilter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCampaignTypeFilter(Collection value) { + this.campaignTypeFilter = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the deviceTypeFilter property. + * + * @return + * possible object is + * {@link DeviceType } + * + */ + public DeviceType getDeviceTypeFilter() { + return deviceTypeFilter; + } + + /** + * Sets the value of the deviceTypeFilter property. + * + * @param value + * allowed object is + * {@link DeviceType } + * + */ + public void setDeviceTypeFilter(DeviceType value) { + this.deviceTypeFilter = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndDate(Calendar value) { + this.endDate = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setId(Long value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartDate(Calendar value) { + this.startDate = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedList.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedList.java index fa78954da4..5298cf41c0 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedList.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedList.java @@ -34,7 +34,8 @@ @XmlSeeAlso({ NegativeKeywordList.class, PlacementExclusionList.class, - AccountNegativeKeywordList.class + AccountNegativeKeywordList.class, + BrandList.class }) public class SharedList extends SharedEntity diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedListItem.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedListItem.java index fca2fbe40d..87495f8526 100644 --- a/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedListItem.java +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/SharedListItem.java @@ -35,7 +35,8 @@ }) @XmlSeeAlso({ NegativeKeyword.class, - NegativeSite.class + NegativeSite.class, + BrandItem.class }) public class SharedListItem { diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsRequest.java new file mode 100644 index 0000000000..0cc8defe6f --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "dataExclusions" +}) +@XmlRootElement(name = "UpdateDataExclusionsRequest") +public class UpdateDataExclusionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "DataExclusions", nillable = true) + protected ArrayOfDataExclusion dataExclusions; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the dataExclusions property. + * + * @return + * possible object is + * {@link ArrayOfDataExclusion } + * + */ + public ArrayOfDataExclusion getDataExclusions() { + return dataExclusions; + } + + /** + * Sets the value of the dataExclusions property. + * + * @param value + * allowed object is + * {@link ArrayOfDataExclusion } + * + */ + public void setDataExclusions(ArrayOfDataExclusion value) { + this.dataExclusions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsResponse.java new file mode 100644 index 0000000000..8d13c8a660 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateDataExclusionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateDataExclusionsResponse") +public class UpdateDataExclusionsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsRequest.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsRequest.java new file mode 100644 index 0000000000..9df44decb6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "seasonalityAdjustments" +}) +@XmlRootElement(name = "UpdateSeasonalityAdjustmentsRequest") +public class UpdateSeasonalityAdjustmentsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "SeasonalityAdjustments", nillable = true) + protected ArrayOfSeasonalityAdjustment seasonalityAdjustments; + + /** + * Gets the value of the accountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAccountId(Long value) { + this.accountId = value; + } + + /** + * Gets the value of the seasonalityAdjustments property. + * + * @return + * possible object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public ArrayOfSeasonalityAdjustment getSeasonalityAdjustments() { + return seasonalityAdjustments; + } + + /** + * Sets the value of the seasonalityAdjustments property. + * + * @param value + * allowed object is + * {@link ArrayOfSeasonalityAdjustment } + * + */ + public void setSeasonalityAdjustments(ArrayOfSeasonalityAdjustment value) { + this.seasonalityAdjustments = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsResponse.java b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsResponse.java new file mode 100644 index 0000000000..5a3bb385fd --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/campaignmanagement/UpdateSeasonalityAdjustmentsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v13.campaignmanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateSeasonalityAdjustmentsResponse") +public class UpdateSeasonalityAdjustmentsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the partialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getPartialErrors() { + return partialErrors; + } + + /** + * Sets the value of the partialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setPartialErrors(ArrayOfBatchError value) { + this.partialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalField.java b/proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalField.java new file mode 100644 index 0000000000..d00da20a07 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalField.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.v13.customerbilling; + +/** + * Enum class for AccountAdditionalField. + */ +public enum AccountAdditionalField { + + TAX_CERTIFICATE("TaxCertificate"), + ACCOUNT_MODE("AccountMode"), + COUPON_CLAIM_INFO("CouponClaimInfo"); + + private final String value; + + AccountAdditionalField(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AccountAdditionalField fromValue(String v) { + for (AccountAdditionalField c : AccountAdditionalField.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } +} \ No newline at end of file diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalFieldConverter.java b/proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalFieldConverter.java new file mode 100644 index 0000000000..dbe291d820 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customerbilling/AccountAdditionalFieldConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v13.customerbilling; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class AccountAdditionalFieldConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(AccountAdditionalField.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (AccountAdditionalField entity : enums) { + result += (entity.value() + " "); + } + + result = result.substring(0, result.length() - 1); + + return result; + } +} \ No newline at end of file diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/Adapter2.java b/proxies/com/microsoft/bingads/v13/customerbilling/Adapter2.java new file mode 100644 index 0000000000..2828665297 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customerbilling/Adapter2.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v13.customerbilling; + +import java.util.Collection; +import jakarta.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter2 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v13.customerbilling.InsertionOrderAdditionalFieldConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v13.customerbilling.InsertionOrderAdditionalFieldConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/Adapter3.java b/proxies/com/microsoft/bingads/v13/customerbilling/Adapter3.java new file mode 100644 index 0000000000..1a63dd012a --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customerbilling/Adapter3.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v13.customerbilling; + +import java.util.Collection; +import jakarta.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter3 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v13.customerbilling.AccountAdditionalFieldConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v13.customerbilling.AccountAdditionalFieldConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrder.java b/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrder.java index b111376dee..0472e81c32 100644 --- a/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrder.java +++ b/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrder.java @@ -43,6 +43,8 @@ * * * + * + * * * *
@@ -75,7 +77,9 @@ "budgetSpentPercent", "seriesName", "isInSeries", - "seriesFrequencyType" + "seriesFrequencyType", + "isUnlimited", + "isEndless" }) public class InsertionOrder { @@ -132,6 +136,10 @@ public class InsertionOrder { protected Boolean isInSeries; @XmlElement(name = "SeriesFrequencyType", nillable = true) protected String seriesFrequencyType; + @XmlElement(name = "IsUnlimited", nillable = true) + protected Boolean isUnlimited; + @XmlElement(name = "IsEndless", nillable = true) + protected Boolean isEndless; /** * Gets the value of the accountId property. @@ -685,4 +693,52 @@ public void setSeriesFrequencyType(String value) { this.seriesFrequencyType = value; } + /** + * Gets the value of the isUnlimited property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsUnlimited() { + return isUnlimited; + } + + /** + * Sets the value of the isUnlimited property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsUnlimited(Boolean value) { + this.isUnlimited = value; + } + + /** + * Gets the value of the isEndless property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsEndless() { + return isEndless; + } + + /** + * Sets the value of the isEndless property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsEndless(Boolean value) { + this.isEndless = value; + } + } diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalField.java b/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalField.java new file mode 100644 index 0000000000..23fc72dea5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalField.java @@ -0,0 +1,29 @@ +package com.microsoft.bingads.v13.customerbilling; + +/** + * Enum class for InsertionOrderAdditionalField. + */ +public enum InsertionOrderAdditionalField { + + NONE("None"), + UNLIMITED_AND_ENDLESS_FLAGS("UnlimitedAndEndlessFlags"); + + private final String value; + + InsertionOrderAdditionalField(String v) { + value = v; + } + + public String value() { + return value; + } + + public static InsertionOrderAdditionalField fromValue(String v) { + for (InsertionOrderAdditionalField c : InsertionOrderAdditionalField.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } +} \ No newline at end of file diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalFieldConverter.java b/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalFieldConverter.java new file mode 100644 index 0000000000..0875af0968 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customerbilling/InsertionOrderAdditionalFieldConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v13.customerbilling; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class InsertionOrderAdditionalFieldConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(InsertionOrderAdditionalField.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (InsertionOrderAdditionalField entity : enums) { + result += (entity.value() + " "); + } + + result = result.substring(0, result.length() - 1); + + return result; + } +} \ No newline at end of file diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/ObjectFactory.java b/proxies/com/microsoft/bingads/v13/customerbilling/ObjectFactory.java index 8a4a9b01b9..4153f6706f 100644 --- a/proxies/com/microsoft/bingads/v13/customerbilling/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/v13/customerbilling/ObjectFactory.java @@ -3,6 +3,7 @@ import java.math.BigDecimal; import java.util.Calendar; +import java.util.Collection; import javax.xml.namespace.QName; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlElementDecl; @@ -54,7 +55,9 @@ public class ObjectFactory { private static final QName _OrderByField_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "OrderByField"); private static final QName _SortOrder_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "SortOrder"); private static final QName _Paging_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "Paging"); + private static final QName _InsertionOrderAdditionalField_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "InsertionOrderAdditionalField"); private static final QName _ArrayOfInsertionOrder_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "ArrayOfInsertionOrder"); + private static final QName _AccountAdditionalField_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "AccountAdditionalField"); private static final QName _ArrayOfCoupon_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "ArrayOfCoupon"); private static final QName _Coupon_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "Coupon"); private static final QName _CouponRedemption_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "CouponRedemption"); @@ -1164,6 +1167,20 @@ public JAXBElement createPaging(Paging value) { return new JAXBElement<>(_Paging_QNAME, Paging.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link InsertionOrderAdditionalField }{@code >}{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link InsertionOrderAdditionalField }{@code >}{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Customer/v13/Entities", name = "InsertionOrderAdditionalField") + @XmlJavaTypeAdapter(Adapter2 .class) + public JAXBElement> createInsertionOrderAdditionalField(Collection value) { + return new JAXBElement<>(_InsertionOrderAdditionalField_QNAME, ((Class) Collection.class), null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfInsertionOrder }{@code >} * @@ -1177,6 +1194,20 @@ public JAXBElement createArrayOfInsertionOrder(ArrayOfIns return new JAXBElement<>(_ArrayOfInsertionOrder_QNAME, ArrayOfInsertionOrder.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AccountAdditionalField }{@code >}{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AccountAdditionalField }{@code >}{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Customer/v13/Entities", name = "AccountAdditionalField") + @XmlJavaTypeAdapter(Adapter3 .class) + public JAXBElement> createAccountAdditionalField(Collection value) { + return new JAXBElement<>(_AccountAdditionalField_QNAME, ((Class) Collection.class), null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCoupon }{@code >} * diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/SearchCouponsRequest.java b/proxies/com/microsoft/bingads/v13/customerbilling/SearchCouponsRequest.java index c3a81561d9..45f22b9a4d 100644 --- a/proxies/com/microsoft/bingads/v13/customerbilling/SearchCouponsRequest.java +++ b/proxies/com/microsoft/bingads/v13/customerbilling/SearchCouponsRequest.java @@ -1,11 +1,13 @@ package com.microsoft.bingads.v13.customerbilling; +import java.util.Collection; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** @@ -21,6 +23,7 @@ * * * + * * * * @@ -33,7 +36,8 @@ @XmlType(name = "", propOrder = { "predicates", "ordering", - "pageInfo" + "pageInfo", + "returnAdditionalFields" }) @XmlRootElement(name = "SearchCouponsRequest") public class SearchCouponsRequest { @@ -44,6 +48,9 @@ public class SearchCouponsRequest { protected ArrayOfOrderBy ordering; @XmlElement(name = "PageInfo", nillable = true) protected Paging pageInfo; + @XmlElement(name = "ReturnAdditionalFields", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter3 .class) + protected Collection returnAdditionalFields; /** * Gets the value of the predicates property. @@ -117,4 +124,28 @@ public void setPageInfo(Paging value) { this.pageInfo = value; } + /** + * Gets the value of the returnAdditionalFields property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getReturnAdditionalFields() { + return returnAdditionalFields; + } + + /** + * Sets the value of the returnAdditionalFields property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReturnAdditionalFields(Collection value) { + this.returnAdditionalFields = value; + } + } diff --git a/proxies/com/microsoft/bingads/v13/customerbilling/SearchInsertionOrdersRequest.java b/proxies/com/microsoft/bingads/v13/customerbilling/SearchInsertionOrdersRequest.java index b35a33a9ae..0829a170fe 100644 --- a/proxies/com/microsoft/bingads/v13/customerbilling/SearchInsertionOrdersRequest.java +++ b/proxies/com/microsoft/bingads/v13/customerbilling/SearchInsertionOrdersRequest.java @@ -1,11 +1,13 @@ package com.microsoft.bingads.v13.customerbilling; +import java.util.Collection; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** @@ -21,6 +23,7 @@ * * * + * * * * @@ -33,7 +36,8 @@ @XmlType(name = "", propOrder = { "predicates", "ordering", - "pageInfo" + "pageInfo", + "returnAdditionalFields" }) @XmlRootElement(name = "SearchInsertionOrdersRequest") public class SearchInsertionOrdersRequest { @@ -44,6 +48,9 @@ public class SearchInsertionOrdersRequest { protected ArrayOfOrderBy ordering; @XmlElement(name = "PageInfo", nillable = true) protected Paging pageInfo; + @XmlElement(name = "ReturnAdditionalFields", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter2 .class) + protected Collection returnAdditionalFields; /** * Gets the value of the predicates property. @@ -117,4 +124,28 @@ public void setPageInfo(Paging value) { this.pageInfo = value; } + /** + * Gets the value of the returnAdditionalFields property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getReturnAdditionalFields() { + return returnAdditionalFields; + } + + /** + * Sets the value of the returnAdditionalFields property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReturnAdditionalFields(Collection value) { + this.returnAdditionalFields = value; + } + } diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/AccountAdditionalField.java b/proxies/com/microsoft/bingads/v13/customermanagement/AccountAdditionalField.java index fcf5e16818..b1ee21f762 100644 --- a/proxies/com/microsoft/bingads/v13/customermanagement/AccountAdditionalField.java +++ b/proxies/com/microsoft/bingads/v13/customermanagement/AccountAdditionalField.java @@ -6,7 +6,8 @@ public enum AccountAdditionalField { TAX_CERTIFICATE("TaxCertificate"), - ACCOUNT_MODE("AccountMode"); + ACCOUNT_MODE("AccountMode"), + COUPON_CLAIM_INFO("CouponClaimInfo"); private final String value; diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/ArrayOfKeyValueEntityOflongint.java b/proxies/com/microsoft/bingads/v13/customermanagement/ArrayOfKeyValueEntityOflongint.java new file mode 100644 index 0000000000..f7f84e9893 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customermanagement/ArrayOfKeyValueEntityOflongint.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v13.customermanagement; + +import java.util.ArrayList; +import java.util.List; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeyValueEntityOflongint complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeyValueEntityOflongint", namespace = "https://bingads.microsoft.com/Customer/v13/Entities", propOrder = { + "keyValueEntityOflongints" +}) +public class ArrayOfKeyValueEntityOflongint { + + @XmlElement(name = "KeyValueEntityOflongint", nillable = true) + protected List keyValueEntityOflongints; + + /** + * Gets the value of the keyValueEntityOflongints property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the Jakarta XML Binding object. + * This is why there is not a {@code set} method for the keyValueEntityOflongints property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getKeyValueEntityOflongints().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link KeyValueEntityOflongint } + * + * + * @return + * The value of the keyValueEntityOflongints property. + */ + public List getKeyValueEntityOflongints() { + if (keyValueEntityOflongints == null) { + keyValueEntityOflongints = new ArrayList<>(); + } + return this.keyValueEntityOflongints; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsRequest.java b/proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsRequest.java new file mode 100644 index 0000000000..5a5e360fcb --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v13.customermanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "userId", + "notificationTypePairs" +}) +@XmlRootElement(name = "DismissNotificationsRequest") +public class DismissNotificationsRequest { + + @XmlElement(name = "UserId", nillable = true) + protected Integer userId; + @XmlElement(name = "NotificationTypePairs", nillable = true) + protected ArrayOfKeyValueEntityOflongint notificationTypePairs; + + /** + * Gets the value of the userId property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUserId() { + return userId; + } + + /** + * Sets the value of the userId property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUserId(Integer value) { + this.userId = value; + } + + /** + * Gets the value of the notificationTypePairs property. + * + * @return + * possible object is + * {@link ArrayOfKeyValueEntityOflongint } + * + */ + public ArrayOfKeyValueEntityOflongint getNotificationTypePairs() { + return notificationTypePairs; + } + + /** + * Sets the value of the notificationTypePairs property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValueEntityOflongint } + * + */ + public void setNotificationTypePairs(ArrayOfKeyValueEntityOflongint value) { + this.notificationTypePairs = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsResponse.java b/proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsResponse.java new file mode 100644 index 0000000000..66a3cf6be4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customermanagement/DismissNotificationsResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v13.customermanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DismissNotificationsResponse") +public class DismissNotificationsResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/ICustomerManagementService.java b/proxies/com/microsoft/bingads/v13/customermanagement/ICustomerManagementService.java index 7da0e8f636..b8833e55f0 100644 --- a/proxies/com/microsoft/bingads/v13/customermanagement/ICustomerManagementService.java +++ b/proxies/com/microsoft/bingads/v13/customermanagement/ICustomerManagementService.java @@ -1584,4 +1584,45 @@ public GetNotificationsResponse getNotifications( throws AdApiFaultDetail_Exception, ApiFault_Exception ; + /** + * + * @param parameters + * @return + * returns jakarta.xml.ws.Response + */ + @WebMethod(operationName = "DismissNotifications", action = "DismissNotifications") + public Response dismissNotificationsAsync( + @WebParam(name = "DismissNotificationsRequest", targetNamespace = "https://bingads.microsoft.com/Customer/v13", partName = "parameters") + DismissNotificationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DismissNotifications", action = "DismissNotifications") + public Future dismissNotificationsAsync( + @WebParam(name = "DismissNotificationsRequest", targetNamespace = "https://bingads.microsoft.com/Customer/v13", partName = "parameters") + DismissNotificationsRequest parameters, + @WebParam(name = "DismissNotificationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v13.customermanagement.DismissNotificationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFault_Exception + */ + @WebMethod(operationName = "DismissNotifications", action = "DismissNotifications") + @WebResult(name = "DismissNotificationsResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v13", partName = "parameters") + public DismissNotificationsResponse dismissNotifications( + @WebParam(name = "DismissNotificationsRequest", targetNamespace = "https://bingads.microsoft.com/Customer/v13", partName = "parameters") + DismissNotificationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFault_Exception + ; + } diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/KeyValueEntityOflongint.java b/proxies/com/microsoft/bingads/v13/customermanagement/KeyValueEntityOflongint.java new file mode 100644 index 0000000000..4d298e7757 --- /dev/null +++ b/proxies/com/microsoft/bingads/v13/customermanagement/KeyValueEntityOflongint.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v13.customermanagement; + +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeyValueEntityOflongint complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

{@code
+ * 
+ *   
+ *     
+ *       
+ *         
+ *         
+ *       
+ *     
+ *   
+ * 
+ * }
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyValueEntityOflongint", namespace = "https://bingads.microsoft.com/Customer/v13/Entities", propOrder = { + "key", + "value" +}) +public class KeyValueEntityOflongint { + + @XmlElement(name = "Key") + protected Long key; + @XmlElement(name = "Value") + protected Integer value; + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setKey(Long value) { + this.key = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setValue(Integer value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v13/customermanagement/ObjectFactory.java b/proxies/com/microsoft/bingads/v13/customermanagement/ObjectFactory.java index 5b72bfaa63..6256786af9 100644 --- a/proxies/com/microsoft/bingads/v13/customermanagement/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/v13/customermanagement/ObjectFactory.java @@ -92,6 +92,8 @@ public class ObjectFactory { private static final QName _Notification_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "Notification"); private static final QName _ArrayOfKeyValueEntityOfstringstring_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "ArrayOfKeyValueEntityOfstringstring"); private static final QName _KeyValueEntityOfstringstring_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "KeyValueEntityOfstringstring"); + private static final QName _ArrayOfKeyValueEntityOflongint_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "ArrayOfKeyValueEntityOflongint"); + private static final QName _KeyValueEntityOflongint_QNAME = new QName("https://bingads.microsoft.com/Customer/v13/Entities", "KeyValueEntityOflongint"); private static final QName _ArrayOfKeyValuePairOfstringstring_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "ArrayOfKeyValuePairOfstringstring"); private static final QName _KeyValuePairOfstringstring_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "KeyValuePairOfstringstring"); private static final QName _ArrayOfKeyValuePairOfstringbase64Binary_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "ArrayOfKeyValuePairOfstringbase64Binary"); @@ -1296,6 +1298,36 @@ public ArrayOfNotification createArrayOfNotification() { return new ArrayOfNotification(); } + /** + * Create an instance of {@link DismissNotificationsRequest } + * + * @return + * the new instance of {@link DismissNotificationsRequest } + */ + public DismissNotificationsRequest createDismissNotificationsRequest() { + return new DismissNotificationsRequest(); + } + + /** + * Create an instance of {@link ArrayOfKeyValueEntityOflongint } + * + * @return + * the new instance of {@link ArrayOfKeyValueEntityOflongint } + */ + public ArrayOfKeyValueEntityOflongint createArrayOfKeyValueEntityOflongint() { + return new ArrayOfKeyValueEntityOflongint(); + } + + /** + * Create an instance of {@link DismissNotificationsResponse } + * + * @return + * the new instance of {@link DismissNotificationsResponse } + */ + public DismissNotificationsResponse createDismissNotificationsResponse() { + return new DismissNotificationsResponse(); + } + /** * Create an instance of {@link AccountInfo } * @@ -1446,6 +1478,16 @@ public KeyValueEntityOfstringstring createKeyValueEntityOfstringstring() { return new KeyValueEntityOfstringstring(); } + /** + * Create an instance of {@link KeyValueEntityOflongint } + * + * @return + * the new instance of {@link KeyValueEntityOflongint } + */ + public KeyValueEntityOflongint createKeyValueEntityOflongint() { + return new KeyValueEntityOflongint(); + } + /** * Create an instance of {@link ArrayOfKeyValuePairOfstringstring } * @@ -2399,6 +2441,32 @@ public JAXBElement createKeyValueEntityOfstringstr return new JAXBElement<>(_KeyValueEntityOfstringstring_QNAME, KeyValueEntityOfstringstring.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeyValueEntityOflongint }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ArrayOfKeyValueEntityOflongint }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Customer/v13/Entities", name = "ArrayOfKeyValueEntityOflongint") + public JAXBElement createArrayOfKeyValueEntityOflongint(ArrayOfKeyValueEntityOflongint value) { + return new JAXBElement<>(_ArrayOfKeyValueEntityOflongint_QNAME, ArrayOfKeyValueEntityOflongint.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeyValueEntityOflongint }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link KeyValueEntityOflongint }{@code >} + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Customer/v13/Entities", name = "KeyValueEntityOflongint") + public JAXBElement createKeyValueEntityOflongint(KeyValueEntityOflongint value) { + return new JAXBElement<>(_KeyValueEntityOflongint_QNAME, KeyValueEntityOflongint.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeyValuePairOfstringstring }{@code >} * diff --git a/proxies/com/microsoft/bingads/v13/reporting/AccountPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AccountPerformanceReportRequest.java index 4380fc2ace..924bbd2f99 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AccountPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AccountPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class AccountPerformanceReportRequest extends ReportRequest { + public AccountPerformanceReportRequest() { + this.type = "AccountPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdApiFaultDetail.java b/proxies/com/microsoft/bingads/v13/reporting/AdApiFaultDetail.java index 76988dc8c8..99ff26527c 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdApiFaultDetail.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdApiFaultDetail.java @@ -33,6 +33,9 @@ public class AdApiFaultDetail extends ApplicationFault { + public AdApiFaultDetail() { + this.type = "AdApiFaultDetail"; + } @XmlElement(name = "Errors", nillable = true) protected ArrayOfAdApiError errors; diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdDynamicTextPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AdDynamicTextPerformanceReportRequest.java index 0884490c29..28294b6bc1 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdDynamicTextPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdDynamicTextPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class AdDynamicTextPerformanceReportRequest extends ReportRequest { + public AdDynamicTextPerformanceReportRequest() { + this.type = "AdDynamicTextPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByAdReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByAdReportRequest.java index 3fb264a310..309dcb4089 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByAdReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByAdReportRequest.java @@ -42,6 +42,9 @@ public class AdExtensionByAdReportRequest extends ReportRequest { + public AdExtensionByAdReportRequest() { + this.type = "AdExtensionByAdReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByKeywordReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByKeywordReportRequest.java index 18d941855e..a6cbbf53bc 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByKeywordReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdExtensionByKeywordReportRequest.java @@ -42,6 +42,9 @@ public class AdExtensionByKeywordReportRequest extends ReportRequest { + public AdExtensionByKeywordReportRequest() { + this.type = "AdExtensionByKeywordReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdExtensionDetailReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AdExtensionDetailReportRequest.java index 91955e6414..9c20e2c8d2 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdExtensionDetailReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdExtensionDetailReportRequest.java @@ -42,6 +42,9 @@ public class AdExtensionDetailReportRequest extends ReportRequest { + public AdExtensionDetailReportRequest() { + this.type = "AdExtensionDetailReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdGroupPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AdGroupPerformanceReportRequest.java index 262eff668c..453ec8d9df 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdGroupPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdGroupPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class AdGroupPerformanceReportRequest extends ReportRequest { + public AdGroupPerformanceReportRequest() { + this.type = "AdGroupPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AdPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AdPerformanceReportRequest.java index f95957f5a8..7463a0a469 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AdPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AdPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class AdPerformanceReportRequest extends ReportRequest { + public AdPerformanceReportRequest() { + this.type = "AdPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/AgeGenderAudienceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AgeGenderAudienceReportRequest.java index 1dbd6727f2..cf57a72333 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AgeGenderAudienceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AgeGenderAudienceReportRequest.java @@ -42,6 +42,9 @@ public class AgeGenderAudienceReportRequest extends ReportRequest { + public AgeGenderAudienceReportRequest() { + this.type = "AgeGenderAudienceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ApiFaultDetail.java b/proxies/com/microsoft/bingads/v13/reporting/ApiFaultDetail.java index 78b14ec64e..765124f322 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ApiFaultDetail.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ApiFaultDetail.java @@ -35,6 +35,9 @@ public class ApiFaultDetail extends ApplicationFault { + public ApiFaultDetail() { + this.type = "ApiFaultDetail"; + } @XmlElement(name = "BatchErrors", nillable = true) protected ArrayOfBatchError batchErrors; diff --git a/proxies/com/microsoft/bingads/v13/reporting/ApplicationFault.java b/proxies/com/microsoft/bingads/v13/reporting/ApplicationFault.java index f6e969b85a..cab3dd7477 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ApplicationFault.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ApplicationFault.java @@ -29,6 +29,7 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ApplicationFault", namespace = "https://adapi.microsoft.com", propOrder = { + "type", "trackingId" }) @XmlSeeAlso({ @@ -37,6 +38,9 @@ }) public class ApplicationFault { + @XmlElement(name = "Type", nillable = true) + protected String type; + @XmlElement(name = "TrackingId", nillable = true) protected String trackingId; diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAccountPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAccountPerformanceReportColumn.java index 18a68bdb08..9601586d8a 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAccountPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAccountPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAccountPerformanceReportColumn { @XmlElement(name = "AccountPerformanceReportColumn") @XmlSchemaType(name = "string") protected List accountPerformanceReportColumns; + public ArrayOfAccountPerformanceReportColumn() + { + this.accountPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAccountPerformanceReportColumn(List accountperformancereportcolumns) + { + this.accountPerformanceReportColumns = accountperformancereportcolumns; + } /** * Gets the value of the accountPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdApiError.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdApiError.java index c18b959efa..cc0d88f8be 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdApiError.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdApiError.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfAdApiError complex type. @@ -36,6 +36,15 @@ public class ArrayOfAdApiError { @XmlElement(name = "AdApiError", nillable = true) protected List adApiErrors; + public ArrayOfAdApiError() + { + this.adApiErrors = new ArrayList(); + } + @JsonCreator + public ArrayOfAdApiError(List adapierrors) + { + this.adApiErrors = adapierrors; + } /** * Gets the value of the adApiErrors property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdDynamicTextPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdDynamicTextPerformanceReportColumn.java index 318e7f957c..125caed2cc 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdDynamicTextPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdDynamicTextPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAdDynamicTextPerformanceReportColumn { @XmlElement(name = "AdDynamicTextPerformanceReportColumn") @XmlSchemaType(name = "string") protected List adDynamicTextPerformanceReportColumns; + public ArrayOfAdDynamicTextPerformanceReportColumn() + { + this.adDynamicTextPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAdDynamicTextPerformanceReportColumn(List addynamictextperformancereportcolumns) + { + this.adDynamicTextPerformanceReportColumns = addynamictextperformancereportcolumns; + } /** * Gets the value of the adDynamicTextPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByAdReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByAdReportColumn.java index b554b84730..c673741f47 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByAdReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByAdReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAdExtensionByAdReportColumn { @XmlElement(name = "AdExtensionByAdReportColumn") @XmlSchemaType(name = "string") protected List adExtensionByAdReportColumns; + public ArrayOfAdExtensionByAdReportColumn() + { + this.adExtensionByAdReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAdExtensionByAdReportColumn(List adextensionbyadreportcolumns) + { + this.adExtensionByAdReportColumns = adextensionbyadreportcolumns; + } /** * Gets the value of the adExtensionByAdReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByKeywordReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByKeywordReportColumn.java index 9eab18d4a6..d7fbc0533e 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByKeywordReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionByKeywordReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAdExtensionByKeywordReportColumn { @XmlElement(name = "AdExtensionByKeywordReportColumn") @XmlSchemaType(name = "string") protected List adExtensionByKeywordReportColumns; + public ArrayOfAdExtensionByKeywordReportColumn() + { + this.adExtensionByKeywordReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAdExtensionByKeywordReportColumn(List adextensionbykeywordreportcolumns) + { + this.adExtensionByKeywordReportColumns = adextensionbykeywordreportcolumns; + } /** * Gets the value of the adExtensionByKeywordReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionDetailReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionDetailReportColumn.java index 80835f1161..65ae86b039 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionDetailReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdExtensionDetailReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAdExtensionDetailReportColumn { @XmlElement(name = "AdExtensionDetailReportColumn") @XmlSchemaType(name = "string") protected List adExtensionDetailReportColumns; + public ArrayOfAdExtensionDetailReportColumn() + { + this.adExtensionDetailReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAdExtensionDetailReportColumn(List adextensiondetailreportcolumns) + { + this.adExtensionDetailReportColumns = adextensiondetailreportcolumns; + } /** * Gets the value of the adExtensionDetailReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupPerformanceReportColumn.java index 20a8028798..7211e42f9d 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAdGroupPerformanceReportColumn { @XmlElement(name = "AdGroupPerformanceReportColumn") @XmlSchemaType(name = "string") protected List adGroupPerformanceReportColumns; + public ArrayOfAdGroupPerformanceReportColumn() + { + this.adGroupPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAdGroupPerformanceReportColumn(List adgroupperformancereportcolumns) + { + this.adGroupPerformanceReportColumns = adgroupperformancereportcolumns; + } /** * Gets the value of the adGroupPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupReportScope.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupReportScope.java index f8c1619086..505be2d1bf 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupReportScope.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdGroupReportScope.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfAdGroupReportScope complex type. @@ -36,6 +36,15 @@ public class ArrayOfAdGroupReportScope { @XmlElement(name = "AdGroupReportScope", nillable = true) protected List adGroupReportScopes; + public ArrayOfAdGroupReportScope() + { + this.adGroupReportScopes = new ArrayList(); + } + @JsonCreator + public ArrayOfAdGroupReportScope(List adgroupreportscopes) + { + this.adGroupReportScopes = adgroupreportscopes; + } /** * Gets the value of the adGroupReportScopes property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdPerformanceReportColumn.java index 087bbe3498..115e429984 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAdPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAdPerformanceReportColumn { @XmlElement(name = "AdPerformanceReportColumn") @XmlSchemaType(name = "string") protected List adPerformanceReportColumns; + public ArrayOfAdPerformanceReportColumn() + { + this.adPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAdPerformanceReportColumn(List adperformancereportcolumns) + { + this.adPerformanceReportColumns = adperformancereportcolumns; + } /** * Gets the value of the adPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAgeGenderAudienceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAgeGenderAudienceReportColumn.java index df3042280e..177ac38349 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAgeGenderAudienceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAgeGenderAudienceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAgeGenderAudienceReportColumn { @XmlElement(name = "AgeGenderAudienceReportColumn") @XmlSchemaType(name = "string") protected List ageGenderAudienceReportColumns; + public ArrayOfAgeGenderAudienceReportColumn() + { + this.ageGenderAudienceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAgeGenderAudienceReportColumn(List agegenderaudiencereportcolumns) + { + this.ageGenderAudienceReportColumns = agegenderaudiencereportcolumns; + } /** * Gets the value of the ageGenderAudienceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAudiencePerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAudiencePerformanceReportColumn.java index 82685e873c..72d7c3b5d7 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAudiencePerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfAudiencePerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfAudiencePerformanceReportColumn { @XmlElement(name = "AudiencePerformanceReportColumn") @XmlSchemaType(name = "string") protected List audiencePerformanceReportColumns; + public ArrayOfAudiencePerformanceReportColumn() + { + this.audiencePerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfAudiencePerformanceReportColumn(List audienceperformancereportcolumns) + { + this.audiencePerformanceReportColumns = audienceperformancereportcolumns; + } /** * Gets the value of the audiencePerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBatchError.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBatchError.java index 745e592dc5..4bb5946f5c 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBatchError.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBatchError.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfBatchError complex type. @@ -36,6 +36,15 @@ public class ArrayOfBatchError { @XmlElement(name = "BatchError", nillable = true) protected List batchErrors; + public ArrayOfBatchError() + { + this.batchErrors = new ArrayList(); + } + @JsonCreator + public ArrayOfBatchError(List batcherrors) + { + this.batchErrors = batcherrors; + } /** * Gets the value of the batchErrors property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBudgetSummaryReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBudgetSummaryReportColumn.java index 0b4fe6a861..d0cd85c50f 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBudgetSummaryReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfBudgetSummaryReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfBudgetSummaryReportColumn { @XmlElement(name = "BudgetSummaryReportColumn") @XmlSchemaType(name = "string") protected List budgetSummaryReportColumns; + public ArrayOfBudgetSummaryReportColumn() + { + this.budgetSummaryReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfBudgetSummaryReportColumn(List budgetsummaryreportcolumns) + { + this.budgetSummaryReportColumns = budgetsummaryreportcolumns; + } /** * Gets the value of the budgetSummaryReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCallDetailReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCallDetailReportColumn.java index 07ee36f29f..2801c2bafd 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCallDetailReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCallDetailReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfCallDetailReportColumn { @XmlElement(name = "CallDetailReportColumn") @XmlSchemaType(name = "string") protected List callDetailReportColumns; + public ArrayOfCallDetailReportColumn() + { + this.callDetailReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfCallDetailReportColumn(List calldetailreportcolumns) + { + this.callDetailReportColumns = calldetailreportcolumns; + } /** * Gets the value of the callDetailReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignPerformanceReportColumn.java index af8e47ed4b..c1b298d764 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfCampaignPerformanceReportColumn { @XmlElement(name = "CampaignPerformanceReportColumn") @XmlSchemaType(name = "string") protected List campaignPerformanceReportColumns; + public ArrayOfCampaignPerformanceReportColumn() + { + this.campaignPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfCampaignPerformanceReportColumn(List campaignperformancereportcolumns) + { + this.campaignPerformanceReportColumns = campaignperformancereportcolumns; + } /** * Gets the value of the campaignPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignReportScope.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignReportScope.java index 9b8617ce63..bc446cda59 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignReportScope.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfCampaignReportScope.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfCampaignReportScope complex type. @@ -36,6 +36,15 @@ public class ArrayOfCampaignReportScope { @XmlElement(name = "CampaignReportScope", nillable = true) protected List campaignReportScopes; + public ArrayOfCampaignReportScope() + { + this.campaignReportScopes = new ArrayList(); + } + @JsonCreator + public ArrayOfCampaignReportScope(List campaignreportscopes) + { + this.campaignReportScopes = campaignreportscopes; + } /** * Gets the value of the campaignReportScopes property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfConversionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfConversionPerformanceReportColumn.java index 9f3376bd80..6e9e2bc0b3 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfConversionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfConversionPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfConversionPerformanceReportColumn { @XmlElement(name = "ConversionPerformanceReportColumn") @XmlSchemaType(name = "string") protected List conversionPerformanceReportColumns; + public ArrayOfConversionPerformanceReportColumn() + { + this.conversionPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfConversionPerformanceReportColumn(List conversionperformancereportcolumns) + { + this.conversionPerformanceReportColumns = conversionperformancereportcolumns; + } /** * Gets the value of the conversionPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSAAutoTargetPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSAAutoTargetPerformanceReportColumn.java index 61885ec67b..209f3898d9 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSAAutoTargetPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSAAutoTargetPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfDSAAutoTargetPerformanceReportColumn { @XmlElement(name = "DSAAutoTargetPerformanceReportColumn") @XmlSchemaType(name = "string") protected List dsaAutoTargetPerformanceReportColumns; + public ArrayOfDSAAutoTargetPerformanceReportColumn() + { + this.dsaAutoTargetPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfDSAAutoTargetPerformanceReportColumn(List dsaautotargetperformancereportcolumns) + { + this.dsaAutoTargetPerformanceReportColumns = dsaautotargetperformancereportcolumns; + } /** * Gets the value of the dsaAutoTargetPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSACategoryPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSACategoryPerformanceReportColumn.java index 33dfe8d4f8..12933e5408 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSACategoryPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSACategoryPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfDSACategoryPerformanceReportColumn { @XmlElement(name = "DSACategoryPerformanceReportColumn") @XmlSchemaType(name = "string") protected List dsaCategoryPerformanceReportColumns; + public ArrayOfDSACategoryPerformanceReportColumn() + { + this.dsaCategoryPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfDSACategoryPerformanceReportColumn(List dsacategoryperformancereportcolumns) + { + this.dsaCategoryPerformanceReportColumns = dsacategoryperformancereportcolumns; + } /** * Gets the value of the dsaCategoryPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSASearchQueryPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSASearchQueryPerformanceReportColumn.java index 6ab437b161..e510dcb199 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSASearchQueryPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDSASearchQueryPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfDSASearchQueryPerformanceReportColumn { @XmlElement(name = "DSASearchQueryPerformanceReportColumn") @XmlSchemaType(name = "string") protected List dsaSearchQueryPerformanceReportColumns; + public ArrayOfDSASearchQueryPerformanceReportColumn() + { + this.dsaSearchQueryPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfDSASearchQueryPerformanceReportColumn(List dsasearchqueryperformancereportcolumns) + { + this.dsaSearchQueryPerformanceReportColumns = dsasearchqueryperformancereportcolumns; + } /** * Gets the value of the dsaSearchQueryPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDestinationUrlPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDestinationUrlPerformanceReportColumn.java index f2a2b96e1e..38e461d1df 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDestinationUrlPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfDestinationUrlPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfDestinationUrlPerformanceReportColumn { @XmlElement(name = "DestinationUrlPerformanceReportColumn") @XmlSchemaType(name = "string") protected List destinationUrlPerformanceReportColumns; + public ArrayOfDestinationUrlPerformanceReportColumn() + { + this.destinationUrlPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfDestinationUrlPerformanceReportColumn(List destinationurlperformancereportcolumns) + { + this.destinationUrlPerformanceReportColumns = destinationurlperformancereportcolumns; + } /** * Gets the value of the destinationUrlPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGeographicPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGeographicPerformanceReportColumn.java index 9d8aa711cc..2b0ab71e7b 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGeographicPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGeographicPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfGeographicPerformanceReportColumn { @XmlElement(name = "GeographicPerformanceReportColumn") @XmlSchemaType(name = "string") protected List geographicPerformanceReportColumns; + public ArrayOfGeographicPerformanceReportColumn() + { + this.geographicPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfGeographicPerformanceReportColumn(List geographicperformancereportcolumns) + { + this.geographicPerformanceReportColumns = geographicperformancereportcolumns; + } /** * Gets the value of the geographicPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGoalsAndFunnelsReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGoalsAndFunnelsReportColumn.java index 0deaaa26fb..951078d9bc 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGoalsAndFunnelsReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfGoalsAndFunnelsReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfGoalsAndFunnelsReportColumn { @XmlElement(name = "GoalsAndFunnelsReportColumn") @XmlSchemaType(name = "string") protected List goalsAndFunnelsReportColumns; + public ArrayOfGoalsAndFunnelsReportColumn() + { + this.goalsAndFunnelsReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfGoalsAndFunnelsReportColumn(List goalsandfunnelsreportcolumns) + { + this.goalsAndFunnelsReportColumns = goalsandfunnelsreportcolumns; + } /** * Gets the value of the goalsAndFunnelsReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelDimensionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelDimensionPerformanceReportColumn.java index 59f8272b9a..ae57f45cf7 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelDimensionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelDimensionPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfHotelDimensionPerformanceReportColumn { @XmlElement(name = "HotelDimensionPerformanceReportColumn") @XmlSchemaType(name = "string") protected List hotelDimensionPerformanceReportColumns; + public ArrayOfHotelDimensionPerformanceReportColumn() + { + this.hotelDimensionPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfHotelDimensionPerformanceReportColumn(List hoteldimensionperformancereportcolumns) + { + this.hotelDimensionPerformanceReportColumns = hoteldimensionperformancereportcolumns; + } /** * Gets the value of the hotelDimensionPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelGroupPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelGroupPerformanceReportColumn.java index 194376e84a..113febe380 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelGroupPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfHotelGroupPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfHotelGroupPerformanceReportColumn { @XmlElement(name = "HotelGroupPerformanceReportColumn") @XmlSchemaType(name = "string") protected List hotelGroupPerformanceReportColumns; + public ArrayOfHotelGroupPerformanceReportColumn() + { + this.hotelGroupPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfHotelGroupPerformanceReportColumn(List hotelgroupperformancereportcolumns) + { + this.hotelGroupPerformanceReportColumns = hotelgroupperformancereportcolumns; + } /** * Gets the value of the hotelGroupPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportColumn.java index 30d33ec468..6e5e47646c 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfKeywordPerformanceReportColumn { @XmlElement(name = "KeywordPerformanceReportColumn") @XmlSchemaType(name = "string") protected List keywordPerformanceReportColumns; + public ArrayOfKeywordPerformanceReportColumn() + { + this.keywordPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfKeywordPerformanceReportColumn(List keywordperformancereportcolumns) + { + this.keywordPerformanceReportColumns = keywordperformancereportcolumns; + } /** * Gets the value of the keywordPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportSort.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportSort.java index 7907259e08..a828f6ec2a 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportSort.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfKeywordPerformanceReportSort.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfKeywordPerformanceReportSort complex type. @@ -36,6 +36,15 @@ public class ArrayOfKeywordPerformanceReportSort { @XmlElement(name = "KeywordPerformanceReportSort", nillable = true) protected List keywordPerformanceReportSorts; + public ArrayOfKeywordPerformanceReportSort() + { + this.keywordPerformanceReportSorts = new ArrayList(); + } + @JsonCreator + public ArrayOfKeywordPerformanceReportSort(List keywordperformancereportsorts) + { + this.keywordPerformanceReportSorts = keywordperformancereportsorts; + } /** * Gets the value of the keywordPerformanceReportSorts property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfNegativeKeywordConflictReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfNegativeKeywordConflictReportColumn.java index 4606a2484c..87a26f6981 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfNegativeKeywordConflictReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfNegativeKeywordConflictReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfNegativeKeywordConflictReportColumn { @XmlElement(name = "NegativeKeywordConflictReportColumn") @XmlSchemaType(name = "string") protected List negativeKeywordConflictReportColumns; + public ArrayOfNegativeKeywordConflictReportColumn() + { + this.negativeKeywordConflictReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfNegativeKeywordConflictReportColumn(List negativekeywordconflictreportcolumns) + { + this.negativeKeywordConflictReportColumns = negativekeywordconflictreportcolumns; + } /** * Gets the value of the negativeKeywordConflictReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfOperationError.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfOperationError.java index aa38db3307..e5c99f71e8 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfOperationError.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfOperationError.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfOperationError complex type. @@ -36,6 +36,15 @@ public class ArrayOfOperationError { @XmlElement(name = "OperationError", nillable = true) protected List operationErrors; + public ArrayOfOperationError() + { + this.operationErrors = new ArrayList(); + } + @JsonCreator + public ArrayOfOperationError(List operationerrors) + { + this.operationErrors = operationerrors; + } /** * Gets the value of the operationErrors property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductDimensionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductDimensionPerformanceReportColumn.java index f9e635a020..38f425b235 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductDimensionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductDimensionPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProductDimensionPerformanceReportColumn { @XmlElement(name = "ProductDimensionPerformanceReportColumn") @XmlSchemaType(name = "string") protected List productDimensionPerformanceReportColumns; + public ArrayOfProductDimensionPerformanceReportColumn() + { + this.productDimensionPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProductDimensionPerformanceReportColumn(List productdimensionperformancereportcolumns) + { + this.productDimensionPerformanceReportColumns = productdimensionperformancereportcolumns; + } /** * Gets the value of the productDimensionPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductMatchCountReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductMatchCountReportColumn.java index 2557c4a5ae..60d44ae2ae 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductMatchCountReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductMatchCountReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProductMatchCountReportColumn { @XmlElement(name = "ProductMatchCountReportColumn") @XmlSchemaType(name = "string") protected List productMatchCountReportColumns; + public ArrayOfProductMatchCountReportColumn() + { + this.productMatchCountReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProductMatchCountReportColumn(List productmatchcountreportcolumns) + { + this.productMatchCountReportColumns = productmatchcountreportcolumns; + } /** * Gets the value of the productMatchCountReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductNegativeKeywordConflictReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductNegativeKeywordConflictReportColumn.java index e04ef37ee3..4840925b2a 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductNegativeKeywordConflictReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductNegativeKeywordConflictReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProductNegativeKeywordConflictReportColumn { @XmlElement(name = "ProductNegativeKeywordConflictReportColumn") @XmlSchemaType(name = "string") protected List productNegativeKeywordConflictReportColumns; + public ArrayOfProductNegativeKeywordConflictReportColumn() + { + this.productNegativeKeywordConflictReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProductNegativeKeywordConflictReportColumn(List productnegativekeywordconflictreportcolumns) + { + this.productNegativeKeywordConflictReportColumns = productnegativekeywordconflictreportcolumns; + } /** * Gets the value of the productNegativeKeywordConflictReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionPerformanceReportColumn.java index 9adc30190e..87f2b30d9d 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProductPartitionPerformanceReportColumn { @XmlElement(name = "ProductPartitionPerformanceReportColumn") @XmlSchemaType(name = "string") protected List productPartitionPerformanceReportColumns; + public ArrayOfProductPartitionPerformanceReportColumn() + { + this.productPartitionPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProductPartitionPerformanceReportColumn(List productpartitionperformancereportcolumns) + { + this.productPartitionPerformanceReportColumns = productpartitionperformancereportcolumns; + } /** * Gets the value of the productPartitionPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionUnitPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionUnitPerformanceReportColumn.java index b8e43a38e7..b8c7a09568 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionUnitPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductPartitionUnitPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProductPartitionUnitPerformanceReportColumn { @XmlElement(name = "ProductPartitionUnitPerformanceReportColumn") @XmlSchemaType(name = "string") protected List productPartitionUnitPerformanceReportColumns; + public ArrayOfProductPartitionUnitPerformanceReportColumn() + { + this.productPartitionUnitPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProductPartitionUnitPerformanceReportColumn(List productpartitionunitperformancereportcolumns) + { + this.productPartitionUnitPerformanceReportColumns = productpartitionunitperformancereportcolumns; + } /** * Gets the value of the productPartitionUnitPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductSearchQueryPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductSearchQueryPerformanceReportColumn.java index 5336b84b8b..cf5bc0f600 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductSearchQueryPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProductSearchQueryPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProductSearchQueryPerformanceReportColumn { @XmlElement(name = "ProductSearchQueryPerformanceReportColumn") @XmlSchemaType(name = "string") protected List productSearchQueryPerformanceReportColumns; + public ArrayOfProductSearchQueryPerformanceReportColumn() + { + this.productSearchQueryPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProductSearchQueryPerformanceReportColumn(List productsearchqueryperformancereportcolumns) + { + this.productSearchQueryPerformanceReportColumns = productsearchqueryperformancereportcolumns; + } /** * Gets the value of the productSearchQueryPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProfessionalDemographicsAudienceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProfessionalDemographicsAudienceReportColumn.java index 13384b4947..ac9ecca68a 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProfessionalDemographicsAudienceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfProfessionalDemographicsAudienceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfProfessionalDemographicsAudienceReportColumn { @XmlElement(name = "ProfessionalDemographicsAudienceReportColumn") @XmlSchemaType(name = "string") protected List professionalDemographicsAudienceReportColumns; + public ArrayOfProfessionalDemographicsAudienceReportColumn() + { + this.professionalDemographicsAudienceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfProfessionalDemographicsAudienceReportColumn(List professionaldemographicsaudiencereportcolumns) + { + this.professionalDemographicsAudienceReportColumns = professionaldemographicsaudiencereportcolumns; + } /** * Gets the value of the professionalDemographicsAudienceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfPublisherUsagePerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfPublisherUsagePerformanceReportColumn.java index 05c9cac76e..2b31429fb2 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfPublisherUsagePerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfPublisherUsagePerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfPublisherUsagePerformanceReportColumn { @XmlElement(name = "PublisherUsagePerformanceReportColumn") @XmlSchemaType(name = "string") protected List publisherUsagePerformanceReportColumns; + public ArrayOfPublisherUsagePerformanceReportColumn() + { + this.publisherUsagePerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfPublisherUsagePerformanceReportColumn(List publisherusageperformancereportcolumns) + { + this.publisherUsagePerformanceReportColumns = publisherusageperformancereportcolumns; + } /** * Gets the value of the publisherUsagePerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchCampaignChangeHistoryReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchCampaignChangeHistoryReportColumn.java index 70d845a467..ebbe6ee9b0 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchCampaignChangeHistoryReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchCampaignChangeHistoryReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfSearchCampaignChangeHistoryReportColumn { @XmlElement(name = "SearchCampaignChangeHistoryReportColumn") @XmlSchemaType(name = "string") protected List searchCampaignChangeHistoryReportColumns; + public ArrayOfSearchCampaignChangeHistoryReportColumn() + { + this.searchCampaignChangeHistoryReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfSearchCampaignChangeHistoryReportColumn(List searchcampaignchangehistoryreportcolumns) + { + this.searchCampaignChangeHistoryReportColumns = searchcampaignchangehistoryreportcolumns; + } /** * Gets the value of the searchCampaignChangeHistoryReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchQueryPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchQueryPerformanceReportColumn.java index 6eeb1217b4..5e503edb5d 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchQueryPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfSearchQueryPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfSearchQueryPerformanceReportColumn { @XmlElement(name = "SearchQueryPerformanceReportColumn") @XmlSchemaType(name = "string") protected List searchQueryPerformanceReportColumns; + public ArrayOfSearchQueryPerformanceReportColumn() + { + this.searchQueryPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfSearchQueryPerformanceReportColumn(List searchqueryperformancereportcolumns) + { + this.searchQueryPerformanceReportColumns = searchqueryperformancereportcolumns; + } /** * Gets the value of the searchQueryPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfShareOfVoiceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfShareOfVoiceReportColumn.java index ec1d4726e2..08838aa252 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfShareOfVoiceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfShareOfVoiceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfShareOfVoiceReportColumn { @XmlElement(name = "ShareOfVoiceReportColumn") @XmlSchemaType(name = "string") protected List shareOfVoiceReportColumns; + public ArrayOfShareOfVoiceReportColumn() + { + this.shareOfVoiceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfShareOfVoiceReportColumn(List shareofvoicereportcolumns) + { + this.shareOfVoiceReportColumns = shareofvoicereportcolumns; + } /** * Gets the value of the shareOfVoiceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfUserLocationPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfUserLocationPerformanceReportColumn.java index 8c31ad8193..375ec85103 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfUserLocationPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfUserLocationPerformanceReportColumn.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; -import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType;import com.fasterxml.jackson.annotation.JsonCreator; /** @@ -38,6 +38,15 @@ public class ArrayOfUserLocationPerformanceReportColumn { @XmlElement(name = "UserLocationPerformanceReportColumn") @XmlSchemaType(name = "string") protected List userLocationPerformanceReportColumns; + public ArrayOfUserLocationPerformanceReportColumn() + { + this.userLocationPerformanceReportColumns = new ArrayList(); + } + @JsonCreator + public ArrayOfUserLocationPerformanceReportColumn(List userlocationperformancereportcolumns) + { + this.userLocationPerformanceReportColumns = userlocationperformancereportcolumns; + } /** * Gets the value of the userLocationPerformanceReportColumns property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfint.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfint.java index 2c7aa86589..58bcf8130c 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfint.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfint.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfint complex type. @@ -36,6 +36,15 @@ public class ArrayOfint { @XmlElement(name = "int", type = Integer.class) protected List ints; + public ArrayOfint() + { + this.ints = new ArrayList(); + } + @JsonCreator + public ArrayOfint(List ints) + { + this.ints = ints; + } /** * Gets the value of the ints property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOflong.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOflong.java index e68b7eb380..751ae97ba8 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOflong.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOflong.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOflong complex type. @@ -36,6 +36,15 @@ public class ArrayOflong { @XmlElement(name = "long", type = Long.class) protected List longs; + public ArrayOflong() + { + this.longs = new ArrayList(); + } + @JsonCreator + public ArrayOflong(List longs) + { + this.longs = longs; + } /** * Gets the value of the longs property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfstring.java b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfstring.java index 0f012d29c8..8119175903 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ArrayOfstring.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ArrayOfstring.java @@ -7,7 +7,7 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import com.fasterxml.jackson.annotation.JsonCreator; /** *

Java class for ArrayOfstring complex type. @@ -36,6 +36,15 @@ public class ArrayOfstring { @XmlElement(name = "string", nillable = true) protected List strings; + public ArrayOfstring() + { + this.strings = new ArrayList(); + } + @JsonCreator + public ArrayOfstring(List strings) + { + this.strings = strings; + } /** * Gets the value of the strings property. diff --git a/proxies/com/microsoft/bingads/v13/reporting/AudiencePerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/AudiencePerformanceReportRequest.java index 02d403a63f..e3da523866 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/AudiencePerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/AudiencePerformanceReportRequest.java @@ -42,6 +42,9 @@ public class AudiencePerformanceReportRequest extends ReportRequest { + public AudiencePerformanceReportRequest() { + this.type = "AudiencePerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/BudgetSummaryReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/BudgetSummaryReportRequest.java index d7a6e1a437..64e4ab0c15 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/BudgetSummaryReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/BudgetSummaryReportRequest.java @@ -37,6 +37,9 @@ public class BudgetSummaryReportRequest extends ReportRequest { + public BudgetSummaryReportRequest() { + this.type = "BudgetSummaryReportRequest"; + } @XmlElement(name = "Columns", required = true, nillable = true) protected ArrayOfBudgetSummaryReportColumn columns; diff --git a/proxies/com/microsoft/bingads/v13/reporting/CallDetailReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/CallDetailReportRequest.java index 0f94a528b4..721298ce3a 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/CallDetailReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/CallDetailReportRequest.java @@ -42,6 +42,9 @@ public class CallDetailReportRequest extends ReportRequest { + public CallDetailReportRequest() { + this.type = "CallDetailReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/CampaignPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/CampaignPerformanceReportRequest.java index d00fcf0f87..db65e4556e 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/CampaignPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/CampaignPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class CampaignPerformanceReportRequest extends ReportRequest { + public CampaignPerformanceReportRequest() { + this.type = "CampaignPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ConversionPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ConversionPerformanceReportRequest.java index 0089e7938e..61e310d0bf 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ConversionPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ConversionPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class ConversionPerformanceReportRequest extends ReportRequest { + public ConversionPerformanceReportRequest() { + this.type = "ConversionPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/DSAAutoTargetPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/DSAAutoTargetPerformanceReportRequest.java index f7f16bc5ab..95874e7324 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/DSAAutoTargetPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/DSAAutoTargetPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class DSAAutoTargetPerformanceReportRequest extends ReportRequest { + public DSAAutoTargetPerformanceReportRequest() { + this.type = "DSAAutoTargetPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/DSACategoryPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/DSACategoryPerformanceReportRequest.java index 95f5aa36f0..4b6308562a 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/DSACategoryPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/DSACategoryPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class DSACategoryPerformanceReportRequest extends ReportRequest { + public DSACategoryPerformanceReportRequest() { + this.type = "DSACategoryPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/DSASearchQueryPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/DSASearchQueryPerformanceReportRequest.java index f6ca237584..23794218de 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/DSASearchQueryPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/DSASearchQueryPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class DSASearchQueryPerformanceReportRequest extends ReportRequest { + public DSASearchQueryPerformanceReportRequest() { + this.type = "DSASearchQueryPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/DestinationUrlPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/DestinationUrlPerformanceReportRequest.java index 0d9b29a0ab..a825e672db 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/DestinationUrlPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/DestinationUrlPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class DestinationUrlPerformanceReportRequest extends ReportRequest { + public DestinationUrlPerformanceReportRequest() { + this.type = "DestinationUrlPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/GeographicPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/GeographicPerformanceReportRequest.java index 0303c8d2d3..fcf6be5686 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/GeographicPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/GeographicPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class GeographicPerformanceReportRequest extends ReportRequest { + public GeographicPerformanceReportRequest() { + this.type = "GeographicPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/GoalsAndFunnelsReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/GoalsAndFunnelsReportRequest.java index a16e966f84..66b3a5043d 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/GoalsAndFunnelsReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/GoalsAndFunnelsReportRequest.java @@ -42,6 +42,9 @@ public class GoalsAndFunnelsReportRequest extends ReportRequest { + public GoalsAndFunnelsReportRequest() { + this.type = "GoalsAndFunnelsReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportColumn.java index a839e0434e..9ffd15ae54 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportColumn.java @@ -78,6 +78,7 @@ * * * + * * * * }

@@ -216,7 +217,9 @@ public enum HotelDimensionPerformanceReportColumn { @XmlEnumValue("UserCountry") USER_COUNTRY("UserCountry"), @XmlEnumValue("ClickShare") - CLICK_SHARE("ClickShare"); + CLICK_SHARE("ClickShare"), + @XmlEnumValue("MissedImpressionsInsufficientBid") + MISSED_IMPRESSIONS_INSUFFICIENT_BID("MissedImpressionsInsufficientBid"); private final String value; HotelDimensionPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportRequest.java index 6b74b68d40..23ef99a264 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/HotelDimensionPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class HotelDimensionPerformanceReportRequest extends ReportRequest { + public HotelDimensionPerformanceReportRequest() { + this.type = "HotelDimensionPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportColumn.java index df806352d2..a63d228d91 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportColumn.java @@ -61,6 +61,7 @@ * * * + * * * * } @@ -165,7 +166,9 @@ public enum HotelGroupPerformanceReportColumn { @XmlEnumValue("MissedImpressionsOther") MISSED_IMPRESSIONS_OTHER("MissedImpressionsOther"), @XmlEnumValue("ClickShare") - CLICK_SHARE("ClickShare"); + CLICK_SHARE("ClickShare"), + @XmlEnumValue("MissedImpressionsInsufficientBid") + MISSED_IMPRESSIONS_INSUFFICIENT_BID("MissedImpressionsInsufficientBid"); private final String value; HotelGroupPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportRequest.java index 08c325a09b..6c55b91ffb 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/HotelGroupPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class HotelGroupPerformanceReportRequest extends ReportRequest { + public HotelGroupPerformanceReportRequest() { + this.type = "HotelGroupPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/KeywordPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/KeywordPerformanceReportRequest.java index c8e0666741..a1362471f2 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/KeywordPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/KeywordPerformanceReportRequest.java @@ -46,6 +46,9 @@ public class KeywordPerformanceReportRequest extends ReportRequest { + public KeywordPerformanceReportRequest() { + this.type = "KeywordPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/NegativeKeywordConflictReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/NegativeKeywordConflictReportRequest.java index 1e0804619c..1b34adab0b 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/NegativeKeywordConflictReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/NegativeKeywordConflictReportRequest.java @@ -37,6 +37,9 @@ public class NegativeKeywordConflictReportRequest extends ReportRequest { + public NegativeKeywordConflictReportRequest() { + this.type = "NegativeKeywordConflictReportRequest"; + } @XmlElement(name = "Columns", required = true, nillable = true) protected ArrayOfNegativeKeywordConflictReportColumn columns; diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportColumn.java index 7f5e455e79..ae0f77e9eb 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportColumn.java @@ -113,6 +113,7 @@ * * * + * * * * } @@ -319,7 +320,9 @@ public enum ProductDimensionPerformanceReportColumn { @XmlEnumValue("AssetGroupName") ASSET_GROUP_NAME("AssetGroupName"), @XmlEnumValue("AssetGroupStatus") - ASSET_GROUP_STATUS("AssetGroupStatus"); + ASSET_GROUP_STATUS("AssetGroupStatus"), + @XmlEnumValue("CollectionId") + COLLECTION_ID("CollectionId"); private final String value; ProductDimensionPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportRequest.java index 1bd8306308..24f2229ed7 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductDimensionPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class ProductDimensionPerformanceReportRequest extends ReportRequest { + public ProductDimensionPerformanceReportRequest() { + this.type = "ProductDimensionPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductMatchCountReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProductMatchCountReportRequest.java index 373155326f..b27474f896 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductMatchCountReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductMatchCountReportRequest.java @@ -40,6 +40,9 @@ public class ProductMatchCountReportRequest extends ReportRequest { + public ProductMatchCountReportRequest() { + this.type = "ProductMatchCountReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductNegativeKeywordConflictReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProductNegativeKeywordConflictReportRequest.java index d842b7d2c3..beda2bcfc3 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductNegativeKeywordConflictReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductNegativeKeywordConflictReportRequest.java @@ -37,6 +37,9 @@ public class ProductNegativeKeywordConflictReportRequest extends ReportRequest { + public ProductNegativeKeywordConflictReportRequest() { + this.type = "ProductNegativeKeywordConflictReportRequest"; + } @XmlElement(name = "Columns", required = true, nillable = true) protected ArrayOfProductNegativeKeywordConflictReportColumn columns; diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionPerformanceReportRequest.java index 170ed54aa2..15cf8c3940 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class ProductPartitionPerformanceReportRequest extends ReportRequest { + public ProductPartitionPerformanceReportRequest() { + this.type = "ProductPartitionPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionUnitPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionUnitPerformanceReportRequest.java index 6c8d1b0c1c..a61ec883f6 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionUnitPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductPartitionUnitPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class ProductPartitionUnitPerformanceReportRequest extends ReportRequest { + public ProductPartitionUnitPerformanceReportRequest() { + this.type = "ProductPartitionUnitPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProductSearchQueryPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProductSearchQueryPerformanceReportRequest.java index 483fc16225..ec8f689e4d 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProductSearchQueryPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProductSearchQueryPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class ProductSearchQueryPerformanceReportRequest extends ReportRequest { + public ProductSearchQueryPerformanceReportRequest() { + this.type = "ProductSearchQueryPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ProfessionalDemographicsAudienceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ProfessionalDemographicsAudienceReportRequest.java index e17c05f374..66c44e447d 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ProfessionalDemographicsAudienceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ProfessionalDemographicsAudienceReportRequest.java @@ -42,6 +42,9 @@ public class ProfessionalDemographicsAudienceReportRequest extends ReportRequest { + public ProfessionalDemographicsAudienceReportRequest() { + this.type = "ProfessionalDemographicsAudienceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/PublisherUsagePerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/PublisherUsagePerformanceReportRequest.java index 5fcc0aa93a..2ef744e55e 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/PublisherUsagePerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/PublisherUsagePerformanceReportRequest.java @@ -42,6 +42,9 @@ public class PublisherUsagePerformanceReportRequest extends ReportRequest { + public PublisherUsagePerformanceReportRequest() { + this.type = "PublisherUsagePerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ReportRequest.java index 90beab00aa..84c9ca4c43 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ReportRequest.java @@ -36,6 +36,7 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ReportRequest", propOrder = { + "type", "excludeColumnHeaders", "excludeReportFooter", "excludeReportHeader", @@ -83,6 +84,9 @@ }) public class ReportRequest { + @XmlElement(name = "Type", nillable = true) + protected String type; + @XmlElement(name = "ExcludeColumnHeaders", nillable = true) protected Boolean excludeColumnHeaders; @XmlElement(name = "ExcludeReportFooter", nillable = true) diff --git a/proxies/com/microsoft/bingads/v13/reporting/SearchCampaignChangeHistoryReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/SearchCampaignChangeHistoryReportRequest.java index 2b4a7a734e..383a57e180 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/SearchCampaignChangeHistoryReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/SearchCampaignChangeHistoryReportRequest.java @@ -39,6 +39,9 @@ public class SearchCampaignChangeHistoryReportRequest extends ReportRequest { + public SearchCampaignChangeHistoryReportRequest() { + this.type = "SearchCampaignChangeHistoryReportRequest"; + } @XmlElement(name = "Columns", required = true, nillable = true) protected ArrayOfSearchCampaignChangeHistoryReportColumn columns; diff --git a/proxies/com/microsoft/bingads/v13/reporting/SearchQueryPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/SearchQueryPerformanceReportRequest.java index bac6bd2f67..a2fca0e559 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/SearchQueryPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/SearchQueryPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class SearchQueryPerformanceReportRequest extends ReportRequest { + public SearchQueryPerformanceReportRequest() { + this.type = "SearchQueryPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/ShareOfVoiceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/ShareOfVoiceReportRequest.java index 25f9a2713f..18a57ad102 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/ShareOfVoiceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/ShareOfVoiceReportRequest.java @@ -42,6 +42,9 @@ public class ShareOfVoiceReportRequest extends ReportRequest { + public ShareOfVoiceReportRequest() { + this.type = "ShareOfVoiceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/proxies/com/microsoft/bingads/v13/reporting/UserLocationPerformanceReportRequest.java b/proxies/com/microsoft/bingads/v13/reporting/UserLocationPerformanceReportRequest.java index 092dce854b..eaeed8c1a4 100644 --- a/proxies/com/microsoft/bingads/v13/reporting/UserLocationPerformanceReportRequest.java +++ b/proxies/com/microsoft/bingads/v13/reporting/UserLocationPerformanceReportRequest.java @@ -42,6 +42,9 @@ public class UserLocationPerformanceReportRequest extends ReportRequest { + public UserLocationPerformanceReportRequest() { + this.type = "UserLocationPerformanceReportRequest"; + } @XmlElement(name = "Aggregation", required = true) @XmlSchemaType(name = "string") diff --git a/src/main/java/com/microsoft/bingads/RestfulServiceFactory.java b/src/main/java/com/microsoft/bingads/RestfulServiceFactory.java index 38aa7600e2..423942d167 100644 --- a/src/main/java/com/microsoft/bingads/RestfulServiceFactory.java +++ b/src/main/java/com/microsoft/bingads/RestfulServiceFactory.java @@ -3,6 +3,8 @@ import com.microsoft.bingads.ApiEnvironment; import com.microsoft.bingads.AuthorizationData; import com.microsoft.bingads.internal.restful.CampaignManagementRestfulServiceClient; +import com.microsoft.bingads.internal.restful.ReportingRestfulServiceClient; +import com.microsoft.bingads.internal.restful.BulkRestfulServiceClient; import com.microsoft.bingads.internal.restful.RestfulServiceClient; public class RestfulServiceFactory { @@ -11,7 +13,12 @@ public static RestfulServiceClient createServiceClient(AuthorizationData authori switch (serviceInterface.getSimpleName()) { case "ICampaignManagementService": return new CampaignManagementRestfulServiceClient(authorizationData, environment, serviceInterface); + case "IBulkService": + return new BulkRestfulServiceClient(authorizationData, environment, serviceInterface); + case "IReportingService": + return new ReportingRestfulServiceClient(authorizationData, environment, serviceInterface); } + return null; } diff --git a/src/main/java/com/microsoft/bingads/ServiceClient.java b/src/main/java/com/microsoft/bingads/ServiceClient.java index fb49abdcc1..ddc7abc16b 100644 --- a/src/main/java/com/microsoft/bingads/ServiceClient.java +++ b/src/main/java/com/microsoft/bingads/ServiceClient.java @@ -7,8 +7,9 @@ import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; -import java.util.ArrayList; +import java.util.Arrays; import jakarta.jws.WebService; +import jakarta.xml.ws.BindingProvider; import jakarta.xml.ws.Service; import jakarta.xml.ws.handler.Handler; import jakarta.xml.ws.handler.HandlerResolver; @@ -21,6 +22,7 @@ import com.microsoft.bingads.internal.ServiceFactoryFactory; import com.microsoft.bingads.internal.ServiceUtils; import com.microsoft.bingads.internal.restful.RestfulServiceClient; +import com.microsoft.bingads.v13.adinsight.IAdInsightService; import com.microsoft.bingads.v13.bulk.IBulkService; import com.microsoft.bingads.v13.campaignmanagement.ICampaignManagementService; import com.microsoft.bingads.v13.customerbilling.ICustomerBillingService; @@ -69,6 +71,29 @@ public AuthorizationData getAuthorizationData() { return authorizationData; } + private static HashMap, Boolean> EnableRestApiDefault = new HashMap, Boolean>() {{ + put(ICampaignManagementService.class, false); + put(IBulkService.class, false); + put(IReportingService.class, false); + put(ICustomerManagementService.class, false); + put(ICustomerBillingService.class, false); + put(IAdInsightService.class, false); + }}; + + public static void setRestApiEnabledDefault(Class serviceClass, boolean restApiEnabled) { + EnableRestApiDefault.replace(serviceClass, restApiEnabled); + } + + public static boolean getRestApiEnabledDefault(Class serviceClass) { + Boolean restApiEnabled = EnableRestApiDefault.get(serviceClass); + + if (restApiEnabled == null) { + return false; + } + + return restApiEnabled; + } + /** * Initializes a new instance of this class with the specified authorization data. * @@ -76,11 +101,11 @@ public AuthorizationData getAuthorizationData() { * @param serviceInterface the Bing Ads service interface that should be called */ public ServiceClient(AuthorizationData authorizationData, Class serviceInterface) { - this(authorizationData, null, serviceInterface, false); + this(authorizationData, null, serviceInterface, getRestApiEnabledDefault(serviceInterface)); } public ServiceClient(AuthorizationData authorizationData, ApiEnvironment environment, Class serviceInterface) { - this(authorizationData, environment, serviceInterface, false); + this(authorizationData, environment, serviceInterface, getRestApiEnabledDefault(serviceInterface)); } /** @@ -113,6 +138,13 @@ public ServiceClient(AuthorizationData authorizationData, ApiEnvironment environ serviceFactory = ServiceFactoryFactory.createServiceFactory(); service = serviceFactory.createService(serviceInterface, environment); + + service.setHandlerResolver(new HandlerResolver() { + @Override + public List getHandlerChain(PortInfo portInfo) { + return Arrays.asList(HeaderHandler.getInstance(), MessageHandler.getInstance()); + } + }); if (enableRestApi) { restService = RestfulServiceFactory.createServiceClient(authorizationData, environment, serviceInterface); @@ -127,10 +159,6 @@ public ServiceClient(AuthorizationData authorizationData, ApiEnvironment environ public T getService() { authorizationData.validate(); - WebService webServiceAnnotation = serviceInterface.getAnnotation(WebService.class); - - final String ns = webServiceAnnotation.targetNamespace(); - final Map headers = new HashMap(); headers.put("CustomerAccountId", Long.toString(authorizationData.getAccountId())); @@ -148,17 +176,9 @@ public void addHeader(String name, String value) { } }); - service.setHandlerResolver(new HandlerResolver() { - @Override - public List getHandlerChain(PortInfo portInfo) { - List handlerList = new ArrayList(); - handlerList.add(new HeaderHandler(ns, headers)); - handlerList.add(MessageHandler.getInstance()); - return handlerList; - } - }); - T port = serviceFactory.createProxyFromService(service, environment, serviceInterface); + + ((BindingProvider) port).getRequestContext().put(ServiceUtils.REQUEST_HEADERS_KEY, headers); if (restService == null) { return port; @@ -189,8 +209,7 @@ private void refreshOAuthTokensIfNeeded() { if (authorizationData.getAuthentication() instanceof OAuthWithAuthorizationCode) { OAuthWithAuthorizationCode auth = (OAuthWithAuthorizationCode) authorizationData.getAuthentication(); - auth.refreshTokensIfNeeded(false); + auth.refreshTokensIfNeeded(false); } } - } diff --git a/src/main/java/com/microsoft/bingads/internal/HeaderHandler.java b/src/main/java/com/microsoft/bingads/internal/HeaderHandler.java index 7223922523..e853ec05ad 100644 --- a/src/main/java/com/microsoft/bingads/internal/HeaderHandler.java +++ b/src/main/java/com/microsoft/bingads/internal/HeaderHandler.java @@ -10,32 +10,24 @@ import com.microsoft.bingads.InternalException; -import java.util.Collections; import java.util.Map; import java.util.Set; - /** * Created by Esti Fisher on 11/10/2015. */ public class HeaderHandler implements SOAPHandler { + private static HeaderHandler instance = new HeaderHandler(); - private final Map headers; - - private final String namespaceURI; - - public HeaderHandler(String namespaceURI, Map headers) { - this.headers = headers; - this.namespaceURI = namespaceURI; + public static HeaderHandler getInstance() { + return instance; } @Override public boolean handleMessage(SOAPMessageContext context) { try { - Boolean outbound = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); if (outbound) { - SOAPMessage message = context.getMessage(); SOAPHeader header = message.getSOAPHeader(); SOAPEnvelope envelope = message.getSOAPPart().getEnvelope(); @@ -43,6 +35,10 @@ public boolean handleMessage(SOAPMessageContext context) { header = envelope.addHeader(); } + Map headers = (Map)context.get(ServiceUtils.REQUEST_HEADERS_KEY); + + String namespaceURI = ((QName)context.get(MessageContext.WSDL_INTERFACE)).getNamespaceURI(); + for (Map.Entry entry : headers.entrySet()) { header.addHeaderElement(new QName(namespaceURI, entry.getKey())).addTextNode(entry.getValue()); } @@ -54,13 +50,11 @@ public boolean handleMessage(SOAPMessageContext context) { context.setScope(ServiceUtils.TRACKING_KEY, MessageContext.Scope.APPLICATION); } } - } catch (Exception e) { throw new InternalException(e); } return true; - } private String getSpecificHeaderValue(SOAPHeader header, String localName) { diff --git a/src/main/java/com/microsoft/bingads/internal/OAuthWithAuthorizationCode.java b/src/main/java/com/microsoft/bingads/internal/OAuthWithAuthorizationCode.java index 59ee847828..0978839c78 100644 --- a/src/main/java/com/microsoft/bingads/internal/OAuthWithAuthorizationCode.java +++ b/src/main/java/com/microsoft/bingads/internal/OAuthWithAuthorizationCode.java @@ -63,9 +63,9 @@ protected OAuthWithAuthorizationCode(String clientId, String clientSecret, URL r this(clientId, clientSecret, redirectionUri, env, oAuthScope); if(oauthTokens == null || oauthTokens.getRefreshToken() == null) { throw new NullPointerException("OAuth tokens must not be null"); - } - - oAuthTokens = new OAuthTokens(null, 0, oauthTokens.getRefreshToken()); + } + + oAuthTokens = new OAuthTokens(oauthTokens.getAccessToken(), oauthTokens.getAccessTokenExpiresInSeconds(), oauthTokens.getRefreshToken()); } protected OAuthWithAuthorizationCode(String clientId, String clientSecret, URL redirectionUri, ApiEnvironment env, OAuthScope oAuthScope) { @@ -201,4 +201,4 @@ public void setNewTokensListener(NewOAuthTokensReceivedListener newTokensListene } -} +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java b/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java index ba8c63532b..f9669afbe4 100644 --- a/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java +++ b/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java @@ -32,7 +32,7 @@ public class ServiceFactoryImpl implements ServiceFactory { - private static final String VERSION = "13.0.18"; + private static final String VERSION = "13.0.19"; private static final int DEFAULT_WS_CREATE_TIMEOUT_IN_SECOND = 60; diff --git a/src/main/java/com/microsoft/bingads/internal/ServiceUtils.java b/src/main/java/com/microsoft/bingads/internal/ServiceUtils.java index 6897daf554..1f3b892f5e 100644 --- a/src/main/java/com/microsoft/bingads/internal/ServiceUtils.java +++ b/src/main/java/com/microsoft/bingads/internal/ServiceUtils.java @@ -25,12 +25,13 @@ public class ServiceUtils { public static String TRACKING_KEY = "com.microsoft.bingads.trackingId"; + public static String REQUEST_HEADERS_KEY = "com.microsoft.bingads.requestHeaders"; + public static String TRACKING_HEADER_NAME = "TrackingId"; public static String GetTrackingId(Response response) { Map context = response.getContext(); - - return context.get(TRACKING_KEY).toString(); + return context != null ? context.get(TRACKING_KEY).toString() : ""; } public static String getPropertyFile() { diff --git a/src/main/java/com/microsoft/bingads/internal/restful/BulkRestfulServiceClient.java b/src/main/java/com/microsoft/bingads/internal/restful/BulkRestfulServiceClient.java new file mode 100644 index 0000000000..7e72981513 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/BulkRestfulServiceClient.java @@ -0,0 +1,117 @@ +package com.microsoft.bingads.internal.restful; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; + +import jakarta.xml.ws.AsyncHandler; +import jakarta.xml.ws.Response; + +import com.microsoft.bingads.ApiEnvironment; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.v13.bulk.*; + +public class BulkRestfulServiceClient extends RestfulServiceClient { + + public BulkRestfulServiceClient(AuthorizationData authData, ApiEnvironment env, Class serviceInterface) { + super(authData, env, serviceInterface); + } + + + public DownloadCampaignsByAccountIdsResponse downloadCampaignsByAccountIds(DownloadCampaignsByAccountIdsRequest request) + throws Exception { + return sendRequest(request, "/Campaigns/DownloadByAccountIds", HttpPost, DownloadCampaignsByAccountIdsResponse.class); + } + + public Response downloadCampaignsByAccountIdsAsync(DownloadCampaignsByAccountIdsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/Campaigns/DownloadByAccountIds", HttpPost, DownloadCampaignsByAccountIdsResponse.class); + } + + public Future downloadCampaignsByAccountIdsAsync(DownloadCampaignsByAccountIdsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/Campaigns/DownloadByAccountIds", HttpPost, DownloadCampaignsByAccountIdsResponse.class, asyncHandler); + } + + + public DownloadCampaignsByCampaignIdsResponse downloadCampaignsByCampaignIds(DownloadCampaignsByCampaignIdsRequest request) + throws Exception { + return sendRequest(request, "/Campaigns/DownloadByCampaignIds", HttpPost, DownloadCampaignsByCampaignIdsResponse.class); + } + + public Response downloadCampaignsByCampaignIdsAsync(DownloadCampaignsByCampaignIdsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/Campaigns/DownloadByCampaignIds", HttpPost, DownloadCampaignsByCampaignIdsResponse.class); + } + + public Future downloadCampaignsByCampaignIdsAsync(DownloadCampaignsByCampaignIdsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/Campaigns/DownloadByCampaignIds", HttpPost, DownloadCampaignsByCampaignIdsResponse.class, asyncHandler); + } + + + public GetBulkDownloadStatusResponse getBulkDownloadStatus(GetBulkDownloadStatusRequest request) + throws Exception { + return sendRequest(request, "/BulkDownloadStatus/Query", HttpPost, GetBulkDownloadStatusResponse.class); + } + + public Response getBulkDownloadStatusAsync(GetBulkDownloadStatusRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/BulkDownloadStatus/Query", HttpPost, GetBulkDownloadStatusResponse.class); + } + + public Future getBulkDownloadStatusAsync(GetBulkDownloadStatusRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/BulkDownloadStatus/Query", HttpPost, GetBulkDownloadStatusResponse.class, asyncHandler); + } + + + public GetBulkUploadUrlResponse getBulkUploadUrl(GetBulkUploadUrlRequest request) + throws Exception { + return sendRequest(request, "/BulkUploadUrl/Query", HttpPost, GetBulkUploadUrlResponse.class); + } + + public Response getBulkUploadUrlAsync(GetBulkUploadUrlRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/BulkUploadUrl/Query", HttpPost, GetBulkUploadUrlResponse.class); + } + + public Future getBulkUploadUrlAsync(GetBulkUploadUrlRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/BulkUploadUrl/Query", HttpPost, GetBulkUploadUrlResponse.class, asyncHandler); + } + + + public GetBulkUploadStatusResponse getBulkUploadStatus(GetBulkUploadStatusRequest request) + throws Exception { + return sendRequest(request, "/BulkUploadStatus/Query", HttpPost, GetBulkUploadStatusResponse.class); + } + + public Response getBulkUploadStatusAsync(GetBulkUploadStatusRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/BulkUploadStatus/Query", HttpPost, GetBulkUploadStatusResponse.class); + } + + public Future getBulkUploadStatusAsync(GetBulkUploadStatusRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/BulkUploadStatus/Query", HttpPost, GetBulkUploadStatusResponse.class, asyncHandler); + } + + + public UploadEntityRecordsResponse uploadEntityRecords(UploadEntityRecordsRequest request) + throws Exception { + return sendRequest(request, "/EntityRecords/Upload", HttpPost, UploadEntityRecordsResponse.class); + } + + public Response uploadEntityRecordsAsync(UploadEntityRecordsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/EntityRecords/Upload", HttpPost, UploadEntityRecordsResponse.class); + } + + public Future uploadEntityRecordsAsync(UploadEntityRecordsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/EntityRecords/Upload", HttpPost, UploadEntityRecordsResponse.class, asyncHandler); + } + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/CampaignManagementRestfulServiceClient.java b/src/main/java/com/microsoft/bingads/internal/restful/CampaignManagementRestfulServiceClient.java index d51d192edc..162cbe883d 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/CampaignManagementRestfulServiceClient.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/CampaignManagementRestfulServiceClient.java @@ -117,17 +117,17 @@ public Future getNegativeSitesByCampaignIdsAsync(GetNegativeSitesByCampaignId public SetNegativeSitesToCampaignsResponse setNegativeSitesToCampaigns(SetNegativeSitesToCampaignsRequest request) throws Exception { - return sendRequest(request, "/NegativeSitesSetToCampaigns", HttpPost, SetNegativeSitesToCampaignsResponse.class); + return sendRequest(request, "/NegativeSites/SetToCampaigns", HttpPost, SetNegativeSitesToCampaignsResponse.class); } public Response setNegativeSitesToCampaignsAsync(SetNegativeSitesToCampaignsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeSitesSetToCampaigns", HttpPost, SetNegativeSitesToCampaignsResponse.class); + return sendRequestAsync(request, "/NegativeSites/SetToCampaigns", HttpPost, SetNegativeSitesToCampaignsResponse.class); } public Future setNegativeSitesToCampaignsAsync(SetNegativeSitesToCampaignsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeSitesSetToCampaigns", HttpPost, SetNegativeSitesToCampaignsResponse.class, asyncHandler); + return sendRequestAsync(request, "/NegativeSites/SetToCampaigns", HttpPost, SetNegativeSitesToCampaignsResponse.class, asyncHandler); } @@ -261,17 +261,17 @@ public Future getNegativeSitesByAdGroupIdsAsync(GetNegativeSitesByAdGroupIdsR public SetNegativeSitesToAdGroupsResponse setNegativeSitesToAdGroups(SetNegativeSitesToAdGroupsRequest request) throws Exception { - return sendRequest(request, "/NegativeSitesSetToAdGroups", HttpPost, SetNegativeSitesToAdGroupsResponse.class); + return sendRequest(request, "/NegativeSites/SetToAdGroups", HttpPost, SetNegativeSitesToAdGroupsResponse.class); } public Response setNegativeSitesToAdGroupsAsync(SetNegativeSitesToAdGroupsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeSitesSetToAdGroups", HttpPost, SetNegativeSitesToAdGroupsResponse.class); + return sendRequestAsync(request, "/NegativeSites/SetToAdGroups", HttpPost, SetNegativeSitesToAdGroupsResponse.class); } public Future setNegativeSitesToAdGroupsAsync(SetNegativeSitesToAdGroupsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeSitesSetToAdGroups", HttpPost, SetNegativeSitesToAdGroupsResponse.class, asyncHandler); + return sendRequestAsync(request, "/NegativeSites/SetToAdGroups", HttpPost, SetNegativeSitesToAdGroupsResponse.class, asyncHandler); } @@ -485,17 +485,17 @@ public Future updateKeywordsAsync(UpdateKeywordsRequest request, AsyncHandler public AppealEditorialRejectionsResponse appealEditorialRejections(AppealEditorialRejectionsRequest request) throws Exception { - return sendRequest(request, "/EditorialRejectionsAppeal", HttpPost, AppealEditorialRejectionsResponse.class); + return sendRequest(request, "/EditorialRejections/Appeal", HttpPost, AppealEditorialRejectionsResponse.class); } public Response appealEditorialRejectionsAsync(AppealEditorialRejectionsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/EditorialRejectionsAppeal", HttpPost, AppealEditorialRejectionsResponse.class); + return sendRequestAsync(request, "/EditorialRejections/Appeal", HttpPost, AppealEditorialRejectionsResponse.class); } public Future appealEditorialRejectionsAsync(AppealEditorialRejectionsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/EditorialRejectionsAppeal", HttpPost, AppealEditorialRejectionsResponse.class, asyncHandler); + return sendRequestAsync(request, "/EditorialRejections/Appeal", HttpPost, AppealEditorialRejectionsResponse.class, asyncHandler); } @@ -533,17 +533,17 @@ public Future getAccountMigrationStatusesAsync(GetAccountMigrationStatusesReq public SetAccountPropertiesResponse setAccountProperties(SetAccountPropertiesRequest request) throws Exception { - return sendRequest(request, "/AccountPropertiesSet", HttpPost, SetAccountPropertiesResponse.class); + return sendRequest(request, "/AccountProperties/Set", HttpPost, SetAccountPropertiesResponse.class); } public Response setAccountPropertiesAsync(SetAccountPropertiesRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AccountPropertiesSet", HttpPost, SetAccountPropertiesResponse.class); + return sendRequestAsync(request, "/AccountProperties/Set", HttpPost, SetAccountPropertiesResponse.class); } public Future setAccountPropertiesAsync(SetAccountPropertiesRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AccountPropertiesSet", HttpPost, SetAccountPropertiesResponse.class, asyncHandler); + return sendRequestAsync(request, "/AccountProperties/Set", HttpPost, SetAccountPropertiesResponse.class, asyncHandler); } @@ -645,17 +645,17 @@ public Future getAdExtensionsEditorialReasonsAsync(GetAdExtensionsEditorialRe public SetAdExtensionsAssociationsResponse setAdExtensionsAssociations(SetAdExtensionsAssociationsRequest request) throws Exception { - return sendRequest(request, "/AdExtensionsAssociationsSet", HttpPost, SetAdExtensionsAssociationsResponse.class); + return sendRequest(request, "/AdExtensionsAssociations/Set", HttpPost, SetAdExtensionsAssociationsResponse.class); } public Response setAdExtensionsAssociationsAsync(SetAdExtensionsAssociationsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AdExtensionsAssociationsSet", HttpPost, SetAdExtensionsAssociationsResponse.class); + return sendRequestAsync(request, "/AdExtensionsAssociations/Set", HttpPost, SetAdExtensionsAssociationsResponse.class); } public Future setAdExtensionsAssociationsAsync(SetAdExtensionsAssociationsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AdExtensionsAssociationsSet", HttpPost, SetAdExtensionsAssociationsResponse.class, asyncHandler); + return sendRequestAsync(request, "/AdExtensionsAssociations/Set", HttpPost, SetAdExtensionsAssociationsResponse.class, asyncHandler); } @@ -853,49 +853,49 @@ public Future deleteAdGroupCriterionsAsync(DeleteAdGroupCriterionsRequest req public ApplyProductPartitionActionsResponse applyProductPartitionActions(ApplyProductPartitionActionsRequest request) throws Exception { - return sendRequest(request, "/ProductPartitionActionsApply", HttpPost, ApplyProductPartitionActionsResponse.class); + return sendRequest(request, "/ProductPartitionActions/Apply", HttpPost, ApplyProductPartitionActionsResponse.class); } public Response applyProductPartitionActionsAsync(ApplyProductPartitionActionsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/ProductPartitionActionsApply", HttpPost, ApplyProductPartitionActionsResponse.class); + return sendRequestAsync(request, "/ProductPartitionActions/Apply", HttpPost, ApplyProductPartitionActionsResponse.class); } public Future applyProductPartitionActionsAsync(ApplyProductPartitionActionsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/ProductPartitionActionsApply", HttpPost, ApplyProductPartitionActionsResponse.class, asyncHandler); + return sendRequestAsync(request, "/ProductPartitionActions/Apply", HttpPost, ApplyProductPartitionActionsResponse.class, asyncHandler); } public ApplyHotelGroupActionsResponse applyHotelGroupActions(ApplyHotelGroupActionsRequest request) throws Exception { - return sendRequest(request, "/HotelGroupActionsApply", HttpPost, ApplyHotelGroupActionsResponse.class); + return sendRequest(request, "/HotelGroupActions/Apply", HttpPost, ApplyHotelGroupActionsResponse.class); } public Response applyHotelGroupActionsAsync(ApplyHotelGroupActionsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/HotelGroupActionsApply", HttpPost, ApplyHotelGroupActionsResponse.class); + return sendRequestAsync(request, "/HotelGroupActions/Apply", HttpPost, ApplyHotelGroupActionsResponse.class); } public Future applyHotelGroupActionsAsync(ApplyHotelGroupActionsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/HotelGroupActionsApply", HttpPost, ApplyHotelGroupActionsResponse.class, asyncHandler); + return sendRequestAsync(request, "/HotelGroupActions/Apply", HttpPost, ApplyHotelGroupActionsResponse.class, asyncHandler); } public ApplyAssetGroupListingGroupActionsResponse applyAssetGroupListingGroupActions(ApplyAssetGroupListingGroupActionsRequest request) throws Exception { - return sendRequest(request, "/AssetGroupListingGroupActionsApply", HttpPost, ApplyAssetGroupListingGroupActionsResponse.class); + return sendRequest(request, "/AssetGroupListingGroupActions/Apply", HttpPost, ApplyAssetGroupListingGroupActionsResponse.class); } public Response applyAssetGroupListingGroupActionsAsync(ApplyAssetGroupListingGroupActionsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AssetGroupListingGroupActionsApply", HttpPost, ApplyAssetGroupListingGroupActionsResponse.class); + return sendRequestAsync(request, "/AssetGroupListingGroupActions/Apply", HttpPost, ApplyAssetGroupListingGroupActionsResponse.class); } public Future applyAssetGroupListingGroupActionsAsync(ApplyAssetGroupListingGroupActionsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AssetGroupListingGroupActionsApply", HttpPost, ApplyAssetGroupListingGroupActionsResponse.class, asyncHandler); + return sendRequestAsync(request, "/AssetGroupListingGroupActions/Apply", HttpPost, ApplyAssetGroupListingGroupActionsResponse.class, asyncHandler); } @@ -933,17 +933,17 @@ public Future getBMCStoresByCustomerIdAsync(GetBMCStoresByCustomerIdRequest r public AddNegativeKeywordsToEntitiesResponse addNegativeKeywordsToEntities(AddNegativeKeywordsToEntitiesRequest request) throws Exception { - return sendRequest(request, "/NegativeKeywordsToEntities", HttpPost, AddNegativeKeywordsToEntitiesResponse.class); + return sendRequest(request, "/EntityNegativeKeywords", HttpPost, AddNegativeKeywordsToEntitiesResponse.class); } public Response addNegativeKeywordsToEntitiesAsync(AddNegativeKeywordsToEntitiesRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeKeywordsToEntities", HttpPost, AddNegativeKeywordsToEntitiesResponse.class); + return sendRequestAsync(request, "/EntityNegativeKeywords", HttpPost, AddNegativeKeywordsToEntitiesResponse.class); } public Future addNegativeKeywordsToEntitiesAsync(AddNegativeKeywordsToEntitiesRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeKeywordsToEntities", HttpPost, AddNegativeKeywordsToEntitiesResponse.class, asyncHandler); + return sendRequestAsync(request, "/EntityNegativeKeywords", HttpPost, AddNegativeKeywordsToEntitiesResponse.class, asyncHandler); } @@ -965,17 +965,17 @@ public Future getNegativeKeywordsByEntityIdsAsync(GetNegativeKeywordsByEntity public DeleteNegativeKeywordsFromEntitiesResponse deleteNegativeKeywordsFromEntities(DeleteNegativeKeywordsFromEntitiesRequest request) throws Exception { - return sendRequest(request, "/NegativeKeywordsFromEntities", HttpDelete, DeleteNegativeKeywordsFromEntitiesResponse.class); + return sendRequest(request, "/EntityNegativeKeywords", HttpDelete, DeleteNegativeKeywordsFromEntitiesResponse.class); } public Response deleteNegativeKeywordsFromEntitiesAsync(DeleteNegativeKeywordsFromEntitiesRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeKeywordsFromEntities", HttpDelete, DeleteNegativeKeywordsFromEntitiesResponse.class); + return sendRequestAsync(request, "/EntityNegativeKeywords", HttpDelete, DeleteNegativeKeywordsFromEntitiesResponse.class); } public Future deleteNegativeKeywordsFromEntitiesAsync(DeleteNegativeKeywordsFromEntitiesRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/NegativeKeywordsFromEntities", HttpDelete, DeleteNegativeKeywordsFromEntitiesResponse.class, asyncHandler); + return sendRequestAsync(request, "/EntityNegativeKeywords", HttpDelete, DeleteNegativeKeywordsFromEntitiesResponse.class, asyncHandler); } @@ -1045,17 +1045,17 @@ public Future getListItemsBySharedListAsync(GetListItemsBySharedListRequest r public AddListItemsToSharedListResponse addListItemsToSharedList(AddListItemsToSharedListRequest request) throws Exception { - return sendRequest(request, "/ListItemsToSharedList", HttpPost, AddListItemsToSharedListResponse.class); + return sendRequest(request, "/ListItems", HttpPost, AddListItemsToSharedListResponse.class); } public Response addListItemsToSharedListAsync(AddListItemsToSharedListRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/ListItemsToSharedList", HttpPost, AddListItemsToSharedListResponse.class); + return sendRequestAsync(request, "/ListItems", HttpPost, AddListItemsToSharedListResponse.class); } public Future addListItemsToSharedListAsync(AddListItemsToSharedListRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/ListItemsToSharedList", HttpPost, AddListItemsToSharedListResponse.class, asyncHandler); + return sendRequestAsync(request, "/ListItems", HttpPost, AddListItemsToSharedListResponse.class, asyncHandler); } @@ -1077,33 +1077,33 @@ public Future updateSharedEntitiesAsync(UpdateSharedEntitiesRequest request, public DeleteListItemsFromSharedListResponse deleteListItemsFromSharedList(DeleteListItemsFromSharedListRequest request) throws Exception { - return sendRequest(request, "/ListItemsFromSharedList", HttpDelete, DeleteListItemsFromSharedListResponse.class); + return sendRequest(request, "/ListItems", HttpDelete, DeleteListItemsFromSharedListResponse.class); } public Response deleteListItemsFromSharedListAsync(DeleteListItemsFromSharedListRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/ListItemsFromSharedList", HttpDelete, DeleteListItemsFromSharedListResponse.class); + return sendRequestAsync(request, "/ListItems", HttpDelete, DeleteListItemsFromSharedListResponse.class); } public Future deleteListItemsFromSharedListAsync(DeleteListItemsFromSharedListRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/ListItemsFromSharedList", HttpDelete, DeleteListItemsFromSharedListResponse.class, asyncHandler); + return sendRequestAsync(request, "/ListItems", HttpDelete, DeleteListItemsFromSharedListResponse.class, asyncHandler); } public SetSharedEntityAssociationsResponse setSharedEntityAssociations(SetSharedEntityAssociationsRequest request) throws Exception { - return sendRequest(request, "/SharedEntityAssociationsSet", HttpPost, SetSharedEntityAssociationsResponse.class); + return sendRequest(request, "/SharedEntityAssociations/Set", HttpPost, SetSharedEntityAssociationsResponse.class); } public Response setSharedEntityAssociationsAsync(SetSharedEntityAssociationsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/SharedEntityAssociationsSet", HttpPost, SetSharedEntityAssociationsResponse.class); + return sendRequestAsync(request, "/SharedEntityAssociations/Set", HttpPost, SetSharedEntityAssociationsResponse.class); } public Future setSharedEntityAssociationsAsync(SetSharedEntityAssociationsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/SharedEntityAssociationsSet", HttpPost, SetSharedEntityAssociationsResponse.class, asyncHandler); + return sendRequestAsync(request, "/SharedEntityAssociations/Set", HttpPost, SetSharedEntityAssociationsResponse.class, asyncHandler); } @@ -1573,17 +1573,17 @@ public Future getAssetGroupsEditorialReasonsAsync(GetAssetGroupsEditorialReas public SetAudienceGroupAssetGroupAssociationsResponse setAudienceGroupAssetGroupAssociations(SetAudienceGroupAssetGroupAssociationsRequest request) throws Exception { - return sendRequest(request, "/AudienceGroupAssetGroupAssociationsSet", HttpPost, SetAudienceGroupAssetGroupAssociationsResponse.class); + return sendRequest(request, "/AudienceGroupAssetGroupAssociations/Set", HttpPost, SetAudienceGroupAssetGroupAssociationsResponse.class); } public Response setAudienceGroupAssetGroupAssociationsAsync(SetAudienceGroupAssetGroupAssociationsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AudienceGroupAssetGroupAssociationsSet", HttpPost, SetAudienceGroupAssetGroupAssociationsResponse.class); + return sendRequestAsync(request, "/AudienceGroupAssetGroupAssociations/Set", HttpPost, SetAudienceGroupAssetGroupAssociationsResponse.class); } public Future setAudienceGroupAssetGroupAssociationsAsync(SetAudienceGroupAssetGroupAssociationsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/AudienceGroupAssetGroupAssociationsSet", HttpPost, SetAudienceGroupAssetGroupAssociationsResponse.class, asyncHandler); + return sendRequestAsync(request, "/AudienceGroupAssetGroupAssociations/Set", HttpPost, SetAudienceGroupAssetGroupAssociationsResponse.class, asyncHandler); } @@ -1701,17 +1701,33 @@ public Future getAudiencesByIdsAsync(GetAudiencesByIdsRequest request, AsyncH public ApplyCustomerListItemsResponse applyCustomerListItems(ApplyCustomerListItemsRequest request) throws Exception { - return sendRequest(request, "/CustomerListItemsApply", HttpPost, ApplyCustomerListItemsResponse.class); + return sendRequest(request, "/CustomerListItems/Apply", HttpPost, ApplyCustomerListItemsResponse.class); } public Response applyCustomerListItemsAsync(ApplyCustomerListItemsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/CustomerListItemsApply", HttpPost, ApplyCustomerListItemsResponse.class); + return sendRequestAsync(request, "/CustomerListItems/Apply", HttpPost, ApplyCustomerListItemsResponse.class); } public Future applyCustomerListItemsAsync(ApplyCustomerListItemsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/CustomerListItemsApply", HttpPost, ApplyCustomerListItemsResponse.class, asyncHandler); + return sendRequestAsync(request, "/CustomerListItems/Apply", HttpPost, ApplyCustomerListItemsResponse.class, asyncHandler); + } + + + public ApplyCustomerListUserDataResponse applyCustomerListUserData(ApplyCustomerListUserDataRequest request) + throws Exception { + return sendRequest(request, "/CustomerListUserData/Apply", HttpPost, ApplyCustomerListUserDataResponse.class); + } + + public Response applyCustomerListUserDataAsync(ApplyCustomerListUserDataRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/CustomerListUserData/Apply", HttpPost, ApplyCustomerListUserDataResponse.class); + } + + public Future applyCustomerListUserDataAsync(ApplyCustomerListUserDataRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/CustomerListUserData/Apply", HttpPost, ApplyCustomerListUserDataResponse.class, asyncHandler); } @@ -1829,49 +1845,49 @@ public Future updateConversionGoalsAsync(UpdateConversionGoalsRequest request public ApplyOfflineConversionsResponse applyOfflineConversions(ApplyOfflineConversionsRequest request) throws Exception { - return sendRequest(request, "/OfflineConversionsApply", HttpPost, ApplyOfflineConversionsResponse.class); + return sendRequest(request, "/OfflineConversions/Apply", HttpPost, ApplyOfflineConversionsResponse.class); } public Response applyOfflineConversionsAsync(ApplyOfflineConversionsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/OfflineConversionsApply", HttpPost, ApplyOfflineConversionsResponse.class); + return sendRequestAsync(request, "/OfflineConversions/Apply", HttpPost, ApplyOfflineConversionsResponse.class); } public Future applyOfflineConversionsAsync(ApplyOfflineConversionsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/OfflineConversionsApply", HttpPost, ApplyOfflineConversionsResponse.class, asyncHandler); + return sendRequestAsync(request, "/OfflineConversions/Apply", HttpPost, ApplyOfflineConversionsResponse.class, asyncHandler); } public ApplyOfflineConversionAdjustmentsResponse applyOfflineConversionAdjustments(ApplyOfflineConversionAdjustmentsRequest request) throws Exception { - return sendRequest(request, "/OfflineConversionAdjustmentsApply", HttpPost, ApplyOfflineConversionAdjustmentsResponse.class); + return sendRequest(request, "/OfflineConversionAdjustments/Apply", HttpPost, ApplyOfflineConversionAdjustmentsResponse.class); } public Response applyOfflineConversionAdjustmentsAsync(ApplyOfflineConversionAdjustmentsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/OfflineConversionAdjustmentsApply", HttpPost, ApplyOfflineConversionAdjustmentsResponse.class); + return sendRequestAsync(request, "/OfflineConversionAdjustments/Apply", HttpPost, ApplyOfflineConversionAdjustmentsResponse.class); } public Future applyOfflineConversionAdjustmentsAsync(ApplyOfflineConversionAdjustmentsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/OfflineConversionAdjustmentsApply", HttpPost, ApplyOfflineConversionAdjustmentsResponse.class, asyncHandler); + return sendRequestAsync(request, "/OfflineConversionAdjustments/Apply", HttpPost, ApplyOfflineConversionAdjustmentsResponse.class, asyncHandler); } public ApplyOnlineConversionAdjustmentsResponse applyOnlineConversionAdjustments(ApplyOnlineConversionAdjustmentsRequest request) throws Exception { - return sendRequest(request, "/OnlineConversionAdjustmentsApply", HttpPost, ApplyOnlineConversionAdjustmentsResponse.class); + return sendRequest(request, "/OnlineConversionAdjustments/Apply", HttpPost, ApplyOnlineConversionAdjustmentsResponse.class); } public Response applyOnlineConversionAdjustmentsAsync(ApplyOnlineConversionAdjustmentsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/OnlineConversionAdjustmentsApply", HttpPost, ApplyOnlineConversionAdjustmentsResponse.class); + return sendRequestAsync(request, "/OnlineConversionAdjustments/Apply", HttpPost, ApplyOnlineConversionAdjustmentsResponse.class); } public Future applyOnlineConversionAdjustmentsAsync(ApplyOnlineConversionAdjustmentsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/OnlineConversionAdjustmentsApply", HttpPost, ApplyOnlineConversionAdjustmentsResponse.class, asyncHandler); + return sendRequestAsync(request, "/OnlineConversionAdjustments/Apply", HttpPost, ApplyOnlineConversionAdjustmentsResponse.class, asyncHandler); } @@ -1941,17 +1957,17 @@ public Future getLabelsByIdsAsync(GetLabelsByIdsRequest request, AsyncHandler public SetLabelAssociationsResponse setLabelAssociations(SetLabelAssociationsRequest request) throws Exception { - return sendRequest(request, "/LabelAssociationsSet", HttpPost, SetLabelAssociationsResponse.class); + return sendRequest(request, "/LabelAssociations/Set", HttpPost, SetLabelAssociationsResponse.class); } public Response setLabelAssociationsAsync(SetLabelAssociationsRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/LabelAssociationsSet", HttpPost, SetLabelAssociationsResponse.class); + return sendRequestAsync(request, "/LabelAssociations/Set", HttpPost, SetLabelAssociationsResponse.class); } public Future setLabelAssociationsAsync(SetLabelAssociationsRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/LabelAssociationsSet", HttpPost, SetLabelAssociationsResponse.class, asyncHandler); + return sendRequestAsync(request, "/LabelAssociations/Set", HttpPost, SetLabelAssociationsResponse.class, asyncHandler); } @@ -2085,17 +2101,17 @@ public Future getProfileDataFileUrlAsync(GetProfileDataFileUrlRequest request public SearchCompaniesResponse searchCompanies(SearchCompaniesRequest request) throws Exception { - return sendRequest(request, "/CompaniesSearch", HttpPost, SearchCompaniesResponse.class); + return sendRequest(request, "/Companies/Search", HttpPost, SearchCompaniesResponse.class); } public Response searchCompaniesAsync(SearchCompaniesRequest request) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/CompaniesSearch", HttpPost, SearchCompaniesResponse.class); + return sendRequestAsync(request, "/Companies/Search", HttpPost, SearchCompaniesResponse.class); } public Future searchCompaniesAsync(SearchCompaniesRequest request, AsyncHandler asyncHandler) throws URISyntaxException, IOException, InterruptedException, ExecutionException { - return sendRequestAsync(request, "/CompaniesSearch", HttpPost, SearchCompaniesResponse.class, asyncHandler); + return sendRequestAsync(request, "/Companies/Search", HttpPost, SearchCompaniesResponse.class, asyncHandler); } @@ -2306,4 +2322,164 @@ public Future deleteCampaignConversionGoalsAsync(DeleteCampaignConversionGoal return sendRequestAsync(request, "/CampaignConversionGoals", HttpDelete, DeleteCampaignConversionGoalsResponse.class, asyncHandler); } + + public AddDataExclusionsResponse addDataExclusions(AddDataExclusionsRequest request) + throws Exception { + return sendRequest(request, "/DataExclusions", HttpPost, AddDataExclusionsResponse.class); + } + + public Response addDataExclusionsAsync(AddDataExclusionsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions", HttpPost, AddDataExclusionsResponse.class); + } + + public Future addDataExclusionsAsync(AddDataExclusionsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions", HttpPost, AddDataExclusionsResponse.class, asyncHandler); + } + + + public UpdateDataExclusionsResponse updateDataExclusions(UpdateDataExclusionsRequest request) + throws Exception { + return sendRequest(request, "/DataExclusions", HttpPut, UpdateDataExclusionsResponse.class); + } + + public Response updateDataExclusionsAsync(UpdateDataExclusionsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions", HttpPut, UpdateDataExclusionsResponse.class); + } + + public Future updateDataExclusionsAsync(UpdateDataExclusionsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions", HttpPut, UpdateDataExclusionsResponse.class, asyncHandler); + } + + + public DeleteDataExclusionsResponse deleteDataExclusions(DeleteDataExclusionsRequest request) + throws Exception { + return sendRequest(request, "/DataExclusions", HttpDelete, DeleteDataExclusionsResponse.class); + } + + public Response deleteDataExclusionsAsync(DeleteDataExclusionsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions", HttpDelete, DeleteDataExclusionsResponse.class); + } + + public Future deleteDataExclusionsAsync(DeleteDataExclusionsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions", HttpDelete, DeleteDataExclusionsResponse.class, asyncHandler); + } + + + public GetDataExclusionsByIdsResponse getDataExclusionsByIds(GetDataExclusionsByIdsRequest request) + throws Exception { + return sendRequest(request, "/DataExclusions/QueryByIds", HttpPost, GetDataExclusionsByIdsResponse.class); + } + + public Response getDataExclusionsByIdsAsync(GetDataExclusionsByIdsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions/QueryByIds", HttpPost, GetDataExclusionsByIdsResponse.class); + } + + public Future getDataExclusionsByIdsAsync(GetDataExclusionsByIdsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions/QueryByIds", HttpPost, GetDataExclusionsByIdsResponse.class, asyncHandler); + } + + + public GetDataExclusionsByAccountIdResponse getDataExclusionsByAccountId(GetDataExclusionsByAccountIdRequest request) + throws Exception { + return sendRequest(request, "/DataExclusions/QueryByAccountId", HttpPost, GetDataExclusionsByAccountIdResponse.class); + } + + public Response getDataExclusionsByAccountIdAsync(GetDataExclusionsByAccountIdRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions/QueryByAccountId", HttpPost, GetDataExclusionsByAccountIdResponse.class); + } + + public Future getDataExclusionsByAccountIdAsync(GetDataExclusionsByAccountIdRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/DataExclusions/QueryByAccountId", HttpPost, GetDataExclusionsByAccountIdResponse.class, asyncHandler); + } + + + public AddSeasonalityAdjustmentsResponse addSeasonalityAdjustments(AddSeasonalityAdjustmentsRequest request) + throws Exception { + return sendRequest(request, "/SeasonalityAdjustments", HttpPost, AddSeasonalityAdjustmentsResponse.class); + } + + public Response addSeasonalityAdjustmentsAsync(AddSeasonalityAdjustmentsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments", HttpPost, AddSeasonalityAdjustmentsResponse.class); + } + + public Future addSeasonalityAdjustmentsAsync(AddSeasonalityAdjustmentsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments", HttpPost, AddSeasonalityAdjustmentsResponse.class, asyncHandler); + } + + + public UpdateSeasonalityAdjustmentsResponse updateSeasonalityAdjustments(UpdateSeasonalityAdjustmentsRequest request) + throws Exception { + return sendRequest(request, "/SeasonalityAdjustments", HttpPut, UpdateSeasonalityAdjustmentsResponse.class); + } + + public Response updateSeasonalityAdjustmentsAsync(UpdateSeasonalityAdjustmentsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments", HttpPut, UpdateSeasonalityAdjustmentsResponse.class); + } + + public Future updateSeasonalityAdjustmentsAsync(UpdateSeasonalityAdjustmentsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments", HttpPut, UpdateSeasonalityAdjustmentsResponse.class, asyncHandler); + } + + + public DeleteSeasonalityAdjustmentsResponse deleteSeasonalityAdjustments(DeleteSeasonalityAdjustmentsRequest request) + throws Exception { + return sendRequest(request, "/SeasonalityAdjustments", HttpDelete, DeleteSeasonalityAdjustmentsResponse.class); + } + + public Response deleteSeasonalityAdjustmentsAsync(DeleteSeasonalityAdjustmentsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments", HttpDelete, DeleteSeasonalityAdjustmentsResponse.class); + } + + public Future deleteSeasonalityAdjustmentsAsync(DeleteSeasonalityAdjustmentsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments", HttpDelete, DeleteSeasonalityAdjustmentsResponse.class, asyncHandler); + } + + + public GetSeasonalityAdjustmentsByIdsResponse getSeasonalityAdjustmentsByIds(GetSeasonalityAdjustmentsByIdsRequest request) + throws Exception { + return sendRequest(request, "/SeasonalityAdjustments/QueryByIds", HttpPost, GetSeasonalityAdjustmentsByIdsResponse.class); + } + + public Response getSeasonalityAdjustmentsByIdsAsync(GetSeasonalityAdjustmentsByIdsRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments/QueryByIds", HttpPost, GetSeasonalityAdjustmentsByIdsResponse.class); + } + + public Future getSeasonalityAdjustmentsByIdsAsync(GetSeasonalityAdjustmentsByIdsRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments/QueryByIds", HttpPost, GetSeasonalityAdjustmentsByIdsResponse.class, asyncHandler); + } + + + public GetSeasonalityAdjustmentsByAccountIdResponse getSeasonalityAdjustmentsByAccountId(GetSeasonalityAdjustmentsByAccountIdRequest request) + throws Exception { + return sendRequest(request, "/SeasonalityAdjustments/QueryByAccountId", HttpPost, GetSeasonalityAdjustmentsByAccountIdResponse.class); + } + + public Response getSeasonalityAdjustmentsByAccountIdAsync(GetSeasonalityAdjustmentsByAccountIdRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments/QueryByAccountId", HttpPost, GetSeasonalityAdjustmentsByAccountIdResponse.class); + } + + public Future getSeasonalityAdjustmentsByAccountIdAsync(GetSeasonalityAdjustmentsByAccountIdRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/SeasonalityAdjustments/QueryByAccountId", HttpPost, GetSeasonalityAdjustmentsByAccountIdResponse.class, asyncHandler); + } + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/ReportingRestfulServiceClient.java b/src/main/java/com/microsoft/bingads/internal/restful/ReportingRestfulServiceClient.java new file mode 100644 index 0000000000..551cff366a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/ReportingRestfulServiceClient.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.internal.restful; + +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; + +import jakarta.xml.ws.AsyncHandler; +import jakarta.xml.ws.Response; + +import com.microsoft.bingads.ApiEnvironment; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.v13.reporting.*; + +public class ReportingRestfulServiceClient extends RestfulServiceClient { + + public ReportingRestfulServiceClient(AuthorizationData authData, ApiEnvironment env, Class serviceInterface) { + super(authData, env, serviceInterface); + } + + + public SubmitGenerateReportResponse submitGenerateReport(SubmitGenerateReportRequest request) + throws Exception { + return sendRequest(request, "/GenerateReport/Submit", HttpPost, SubmitGenerateReportResponse.class); + } + + public Response submitGenerateReportAsync(SubmitGenerateReportRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/GenerateReport/Submit", HttpPost, SubmitGenerateReportResponse.class); + } + + public Future submitGenerateReportAsync(SubmitGenerateReportRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/GenerateReport/Submit", HttpPost, SubmitGenerateReportResponse.class, asyncHandler); + } + + + public PollGenerateReportResponse pollGenerateReport(PollGenerateReportRequest request) + throws Exception { + return sendRequest(request, "/GenerateReport/Poll", HttpPost, PollGenerateReportResponse.class); + } + + public Response pollGenerateReportAsync(PollGenerateReportRequest request) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/GenerateReport/Poll", HttpPost, PollGenerateReportResponse.class); + } + + public Future pollGenerateReportAsync(PollGenerateReportRequest request, AsyncHandler asyncHandler) + throws URISyntaxException, IOException, InterruptedException, ExecutionException { + return sendRequestAsync(request, "/GenerateReport/Poll", HttpPost, PollGenerateReportResponse.class, asyncHandler); + } + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/RestfulServiceClient.java b/src/main/java/com/microsoft/bingads/internal/restful/RestfulServiceClient.java index b5920944de..37da00e64d 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/RestfulServiceClient.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/RestfulServiceClient.java @@ -57,7 +57,7 @@ public class RestfulServiceClient extends RestfulServiceClientExtension{ private ConcurrentHashMap retryAfter = new ConcurrentHashMap(); - private ArrayList statusCodesForApplicationFault = new ArrayList(Arrays.asList(400, 401, 403)); + private ArrayList statusCodesForApplicationFault = new ArrayList(Arrays.asList(400, 401, 403, 429, 500)); private ArrayList statusCodesForSwitchToSoap = new ArrayList(Arrays.asList(404, 501)); @@ -84,6 +84,16 @@ protected RestfulServiceClient(AuthorizationData authData, ApiEnvironment env, C com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); + case "IBulkService": + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.arrayOfTypes.AddMixInForArrayOfTypes.AddMixInForArrayOfTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); + case "IReportingService": + com.microsoft.bingads.internal.restful.adaptor.generated.reporting.arrayOfTypes.AddMixInForArrayOfTypes.AddMixInForArrayOfTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); + com.microsoft.bingads.internal.restful.adaptor.generated.reporting.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); } } @@ -102,7 +112,7 @@ private String getServiceUrl(String entityEndpoint) { } else { URI uri = URI.create(serviceUrl); - serviceUrl = "https://" + uri.getAuthority() + "/CampaignManagement/v13"; + serviceUrl = "https://" + uri.getAuthority() + serviceNameAndVersion.get(serviceInterface); } return serviceUrl + entityEndpoint; @@ -326,7 +336,10 @@ public Resp get() throws InterruptedException, ExecutionException { if (statusCodesForSwitchToSoap.contains(statusCode)) { SetRetryAfterTime(header); } + + Header trackingIdHeader = resp.getFirstHeader(ServiceUtils.TRACKING_HEADER_NAME); + context.put(ServiceUtils.TRACKING_KEY, trackingIdHeader.getValue()); if (statusCodesForSwitchToSoap.contains(statusCode) && enableFallbackToSoap) { try { @@ -379,13 +392,31 @@ else if (statusCodesForApplicationFault.contains(statusCode)) { return null; } + private final Map context = new HashMap<>(); + @Override public Map getContext() { - return null; + return context; } }; } + + private static final Map serviceNameAndVersion = new HashMap() { + { + put(com.microsoft.bingads.v13.customerbilling.ICustomerBillingService.class, "/Billing/v13"); + + put(com.microsoft.bingads.v13.customermanagement.ICustomerManagementService.class, "/CustomerManagement/v13"); + + put(com.microsoft.bingads.v13.reporting.IReportingService.class, "/Reporting/v13"); + + put(com.microsoft.bingads.v13.campaignmanagement.ICampaignManagementService.class, "/CampaignManagement/v13"); + + put(com.microsoft.bingads.v13.adinsight.IAdInsightService.class, "/AdInsight/v13"); + + put(com.microsoft.bingads.v13.bulk.IBulkService.class, "/Bulk/v13"); + } + }; private static final Map endpoints = new HashMap() { { @@ -424,8 +455,8 @@ public Map getContext() { }); put(com.microsoft.bingads.v13.bulk.IBulkService.class, new ServiceInfo() { { - setProductionUrl("https://bulk.api.bingads.microsoft.com/CampaignManagement/v13"); - setSandboxUrl("https://bulk.api.sandbox.bingads.microsoft.com/CampaignManagement/v13"); + setProductionUrl("https://bulk.api.bingads.microsoft.com/Bulk/v13"); + setSandboxUrl("https://bulk.api.sandbox.bingads.microsoft.com/Bulk/v13"); } }); // End of v13 diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/AdaptorUtil.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/AdaptorUtil.java index 3315553de8..9bce04f267 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/AdaptorUtil.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/AdaptorUtil.java @@ -4,24 +4,40 @@ import java.util.Locale; import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase; +import com.fasterxml.jackson.databind.cfg.MapperConfig; +import com.fasterxml.jackson.databind.introspect.AnnotatedMethod; import com.fasterxml.jackson.databind.module.SimpleModule; -import com.microsoft.bingads.v13.campaignmanagement.*; - public class AdaptorUtil { + // Using UPPER_CAMEL_CASE changes name for some fields. For example DeviceCriterion.getOSName() gets serialized as "Osname". + // Ideally we should explicitly check the name in SOAP API during generation and generate a mixin if it's different from the get method + public static class SimpleNaming extends NamingBase { + + @Override + public String nameForGetterMethod(MapperConfig config, AnnotatedMethod method, String defaultName) { + return method.getName().substring(3); + } + + @Override + public String nameForSetterMethod(MapperConfig config, AnnotatedMethod method, String defaultName) { + return method.getName().substring(3); + } + + @Override + public String translate(String propertyName) { + return propertyName; + } + + } - public static SimpleModule module = new SimpleModule().addDeserializer(Calendar.class, new CalendarDeserializer()).addSerializer(Calendar.class, new CalendarSerializer()) + public static SimpleModule module = new SimpleModule().addDeserializer(Calendar.class, new CalendarDeserializer()).addSerializer(Calendar.class, new CalendarSerializer()) .addDeserializer(Long.class, new LongTypeDeserializer()).addSerializer(Long.class, new LongTypeSerializer()) .addDeserializer(long.class, new LongTypeDeserializer()).addSerializer(long.class, new LongTypeSerializer()); - public static ObjectMapper mapper = new ObjectMapper().setPropertyNamingStrategy(PropertyNamingStrategies.UPPER_CAMEL_CASE) - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true) - .setSerializationInclusion(Include.NON_NULL) + public static ObjectMapper mapper = new ObjectMapper().setPropertyNamingStrategy(new SimpleNaming()) + .setSerializationInclusion(Include.NON_NULL) // needed for property types like int and flag enums, which are represented as Integer and Collection in Java SDK .registerModule(module); public static String toCamelcase(Object o) { diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/AddMixInForArrayOfTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/AddMixInForArrayOfTypes.java new file mode 100644 index 0000000000..92886f08d2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/AddMixInForArrayOfTypes.java @@ -0,0 +1,25 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.arrayOfTypes; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForArrayOfTypes { + public static void AddMixInForArrayOfTypes() { + AdaptorUtil.mapper + .addMixIn(ArrayOfDownloadEntity.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfBatchError.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfOperationError.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfCampaignScope.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOflong.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfKeyValueOfstringstring.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfstring.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdApiError.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfKeyValuePairOfstringstring.class, ArrayOfTypesMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/ArrayOfTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/ArrayOfTypesMixIn.java new file mode 100644 index 0000000000..a5dfc0c9b6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/arrayOfTypes/ArrayOfTypesMixIn.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.arrayOfTypes; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; +import com.microsoft.bingads.v13.bulk.ArrayOfKeyValueOfstringstring.KeyValueOfstringstring; + +@JsonInclude(JsonInclude.Include.NON_NULL) +interface ArrayOfTypesMixIn{ + + @JsonValue + List getDownloadEntities(); + + + @JsonValue + List getBatchErrors(); + + + @JsonValue + List getOperationErrors(); + + + @JsonValue + List getCampaignScopes(); + + + @JsonValue + List getLongs(); + + + @JsonValue + List getKeyValueOfstringstrings(); + + + @JsonValue + List getStrings(); + + + @JsonValue + List getAdApiErrors(); + + + @JsonValue + List getKeyValuePairOfstringstrings(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForComplexTypesWithEnumList.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForComplexTypesWithEnumList.java new file mode 100644 index 0000000000..0c69bc7155 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForComplexTypesWithEnumList.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForComplexTypesWithEnumList { + public static void AddMixInForComplexTypesWithEnumList() { + AdaptorUtil.mapper + .addMixIn(DownloadCampaignsByAccountIdsRequest.class, DownloadCampaignsByAccountIdsRequestEnumsMixIn.class) + .addMixIn(DownloadCampaignsByCampaignIdsRequest.class, DownloadCampaignsByCampaignIdsRequestEnumsMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForEnumTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForEnumTypes.java new file mode 100644 index 0000000000..32f47a9e77 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/AddMixInForEnumTypes.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForEnumTypes { + public static void AddMixInForEnumTypes() { + AdaptorUtil.mapper + .addMixIn(CompressionType.class, CompressionTypeMixIn.class) + .addMixIn(DataScope.class, DataScopeMixIn.class) + .addMixIn(DownloadEntity.class, DownloadEntityMixIn.class) + .addMixIn(DownloadFileType.class, DownloadFileTypeMixIn.class) + .addMixIn(ResponseMode.class, ResponseModeMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/CompressionTypeMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/CompressionTypeMixIn.java new file mode 100644 index 0000000000..410e60f9e9 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/CompressionTypeMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface CompressionTypeMixIn{ + + @JsonValue + String value(); + + @JsonCreator + CompressionType fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeDeserializer.java new file mode 100644 index 0000000000..e0ee68f43b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.bulk.DataScope; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class DataScopeDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(DataScope.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeMixIn.java new file mode 100644 index 0000000000..e488a325e8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DataScopeMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DataScopeMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DataScope fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByAccountIdsRequestEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByAccountIdsRequestEnumsMixIn.java new file mode 100644 index 0000000000..9bd223c23b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByAccountIdsRequestEnumsMixIn.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DownloadCampaignsByAccountIdsRequestEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DataScopeDeserializer.class) + Collection getDataScope(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByCampaignIdsRequestEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByCampaignIdsRequestEnumsMixIn.java new file mode 100644 index 0000000000..7f8b7be14d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadCampaignsByCampaignIdsRequestEnumsMixIn.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DownloadCampaignsByCampaignIdsRequestEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DataScopeDeserializer.class) + Collection getDataScope(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadEntityMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadEntityMixIn.java new file mode 100644 index 0000000000..ea7df0a8ac --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadEntityMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DownloadEntityMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DownloadEntity fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadFileTypeMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadFileTypeMixIn.java new file mode 100644 index 0000000000..9fa0f394d3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/DownloadFileTypeMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DownloadFileTypeMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DownloadFileType fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/ResponseModeMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/ResponseModeMixIn.java new file mode 100644 index 0000000000..1774890696 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/enums/ResponseModeMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ResponseModeMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ResponseMode fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/AddMixInForPolymorphicTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/AddMixInForPolymorphicTypes.java new file mode 100644 index 0000000000..c3b95891dd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/AddMixInForPolymorphicTypes.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.polymorphicTypes; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForPolymorphicTypes { + public static void AddMixInForPolymorphicTypes() { + AdaptorUtil.mapper + .addMixIn(ApplicationFault.class, ApplicationFaultPolymorphicTypesMixIn.class) + .addMixIn(BatchError.class, BatchErrorPolymorphicTypesMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java new file mode 100644 index 0000000000..aeb562d052 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.polymorphicTypes; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; +import com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.*; + +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type") + @JsonSubTypes({ + + @JsonSubTypes.Type(value = ApiFaultDetail.class, name = "ApiFaultDetail"), + + @JsonSubTypes.Type(value = AdApiFaultDetail.class, name = "AdApiFaultDetail"), + }) +@JsonInclude(JsonInclude.Include.NON_NULL) + +public interface ApplicationFaultPolymorphicTypesMixIn{ + +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java new file mode 100644 index 0000000000..63f38b49e4 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/bulk/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java @@ -0,0 +1,29 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.bulk.polymorphicTypes; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.bulk.*; +import com.microsoft.bingads.internal.restful.adaptor.*; +import com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.*; + +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", + visible = true) + @JsonSubTypes({ + + @JsonSubTypes.Type(value = EditorialError.class, name = "EditorialError"), + }) +@JsonInclude(JsonInclude.Include.NON_NULL) + +public interface BatchErrorPolymorphicTypesMixIn{ + +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/AddMixInForArrayOfTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/AddMixInForArrayOfTypes.java index 49ae5ebf95..ae6885c867 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/AddMixInForArrayOfTypes.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/AddMixInForArrayOfTypes.java @@ -81,7 +81,6 @@ public static void AddMixInForArrayOfTypes() { .addMixIn(ArrayOfRuleItemGroup.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfRuleItem.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfCombinationRule.class, ArrayOfTypesMixIn.class) - .addMixIn(ArrayOfCustomerListItem.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfUetTag.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfConversionGoal.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfOfflineConversion.class, ArrayOfTypesMixIn.class) @@ -97,6 +96,9 @@ public static void AddMixInForArrayOfTypes() { .addMixIn(ArrayOfImportEntityStatistics.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfVideo.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfCampaignConversionGoal.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfDataExclusion.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfCampaignAssociation.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfSeasonalityAdjustment.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfstring.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOflong.class, ArrayOfTypesMixIn.class) .addMixIn(ArrayOfKeyValueOfstringstring.class, ArrayOfTypesMixIn.class) diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/ArrayOfTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/ArrayOfTypesMixIn.java index 86976738f0..6b35a57e9f 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/ArrayOfTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/arrayOfTypes/ArrayOfTypesMixIn.java @@ -295,10 +295,6 @@ interface ArrayOfTypesMixIn{ List getCombinationRules(); - @JsonValue - List getCustomerListItems(); - - @JsonValue List getUetTags(); @@ -359,6 +355,18 @@ interface ArrayOfTypesMixIn{ List getCampaignConversionGoals(); + @JsonValue + List getDataExclusions(); + + + @JsonValue + List getCampaignAssociations(); + + + @JsonValue + List getSeasonalityAdjustments(); + + @JsonValue List getStrings(); diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForComplexTypesWithEnumList.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForComplexTypesWithEnumList.java index 60579439c2..5ab9c83466 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForComplexTypesWithEnumList.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForComplexTypesWithEnumList.java @@ -48,6 +48,8 @@ public static void AddMixInForComplexTypesWithEnumList() { .addMixIn(Audience.class, AudienceEnumsMixIn.class) .addMixIn(ProductAudience.class, ProductAudienceEnumsMixIn.class) .addMixIn(ConversionGoal.class, ConversionGoalEnumsMixIn.class) + .addMixIn(DataExclusion.class, DataExclusionEnumsMixIn.class) + .addMixIn(SeasonalityAdjustment.class, SeasonalityAdjustmentEnumsMixIn.class) ; } } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForEnumTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForEnumTypes.java index ac072e225e..010faf305a 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForEnumTypes.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/AddMixInForEnumTypes.java @@ -86,9 +86,9 @@ public static void AddMixInForEnumTypes() { .addMixIn(NumberOperator.class, NumberOperatorMixIn.class) .addMixIn(ProductAudienceType.class, ProductAudienceTypeMixIn.class) .addMixIn(LogicalOperator.class, LogicalOperatorMixIn.class) + .addMixIn(AudienceAdditionalField.class, AudienceAdditionalFieldMixIn.class) .addMixIn(CustomerListActionType.class, CustomerListActionTypeMixIn.class) .addMixIn(CustomerListItemSubType.class, CustomerListItemSubTypeMixIn.class) - .addMixIn(AudienceAdditionalField.class, AudienceAdditionalFieldMixIn.class) .addMixIn(UetTagTrackingStatus.class, UetTagTrackingStatusMixIn.class) .addMixIn(ConversionGoalType.class, ConversionGoalTypeMixIn.class) .addMixIn(ConversionGoalAdditionalField.class, ConversionGoalAdditionalFieldMixIn.class) @@ -102,6 +102,7 @@ public static void AddMixInForEnumTypes() { .addMixIn(ValueOperator.class, ValueOperatorMixIn.class) .addMixIn(ImportAdditionalField.class, ImportAdditionalFieldMixIn.class) .addMixIn(ImportEntityType.class, ImportEntityTypeMixIn.class) + .addMixIn(DeviceType.class, DeviceTypeMixIn.class) ; } } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DataExclusionEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DataExclusionEnumsMixIn.java new file mode 100644 index 0000000000..1e3e45c9d7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DataExclusionEnumsMixIn.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.campaignmanagement.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DataExclusionEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignTypeDeserializer.class) + Collection getCampaignTypeFilter(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DeviceTypeMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DeviceTypeMixIn.java new file mode 100644 index 0000000000..38b780350c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/DeviceTypeMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.campaignmanagement.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DeviceTypeMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DeviceType fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/SeasonalityAdjustmentEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/SeasonalityAdjustmentEnumsMixIn.java new file mode 100644 index 0000000000..4df9391e16 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/enums/SeasonalityAdjustmentEnumsMixIn.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.campaignmanagement.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface SeasonalityAdjustmentEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignTypeDeserializer.class) + Collection getCampaignTypeFilter(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdExtensionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdExtensionPolymorphicTypesMixIn.java index bd42d58ffd..cec61f57f5 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdExtensionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdExtensionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdGroupCriterionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdGroupCriterionPolymorphicTypesMixIn.java index b18cb670a6..1def2bb250 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdGroupCriterionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdGroupCriterionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdPolymorphicTypesMixIn.java index 19dca2c18d..bfce9bf1bb 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AdPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java index 9809223855..ef72817b24 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java @@ -15,9 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", - visible = true) + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type") @JsonSubTypes({ @JsonSubTypes.Type(value = ApiFaultDetail.class, name = "ApiFaultDetail"), diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AssetPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AssetPolymorphicTypesMixIn.java index 19756e737c..efb999ce8e 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AssetPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AssetPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudienceGroupDimensionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudienceGroupDimensionPolymorphicTypesMixIn.java index e6d10e2ccc..ddcc440fb3 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudienceGroupDimensionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudienceGroupDimensionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudiencePolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudiencePolymorphicTypesMixIn.java index e470fb1d6e..4fd2d6fa56 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudiencePolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/AudiencePolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorCollectionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorCollectionPolymorphicTypesMixIn.java index 4e336720cf..c0dbbe73d6 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorCollectionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorCollectionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java index fa0060f198..cf5a235fa1 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BatchErrorPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BiddingSchemePolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BiddingSchemePolymorphicTypesMixIn.java index 1dc50bb027..57fb68285f 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BiddingSchemePolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/BiddingSchemePolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CampaignCriterionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CampaignCriterionPolymorphicTypesMixIn.java index b01878dde8..53eb12cb29 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CampaignCriterionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CampaignCriterionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ConversionGoalPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ConversionGoalPolymorphicTypesMixIn.java index b7ef6a973e..6f5de0400b 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ConversionGoalPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ConversionGoalPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionBidPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionBidPolymorphicTypesMixIn.java index 256c0c26db..e6d8ecbd5d 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionBidPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionBidPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionCashbackPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionCashbackPolymorphicTypesMixIn.java index 65c05b06aa..e827a550c7 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionCashbackPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionCashbackPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionPolymorphicTypesMixIn.java index 1504104915..d3f5e2d4b2 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/CriterionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportJobPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportJobPolymorphicTypesMixIn.java index f3b100aef5..79dbf15719 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportJobPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportJobPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportOptionPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportOptionPolymorphicTypesMixIn.java index da448ab73e..b6e872867f 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportOptionPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/ImportOptionPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaPolymorphicTypesMixIn.java index c0676d8991..9f62a79508 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaRepresentationPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaRepresentationPolymorphicTypesMixIn.java index ab790441ba..4786ee872b 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaRepresentationPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/MediaRepresentationPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RemarketingRulePolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RemarketingRulePolymorphicTypesMixIn.java index 01b8fa3332..53f9eb9f22 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RemarketingRulePolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RemarketingRulePolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RuleItemPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RuleItemPolymorphicTypesMixIn.java index 456c95dc19..51015d7403 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RuleItemPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/RuleItemPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SettingPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SettingPolymorphicTypesMixIn.java index ab3e94e5b2..fb4d2a04f1 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SettingPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SettingPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedEntityPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedEntityPolymorphicTypesMixIn.java index 599364ff58..4849088aff 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedEntityPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedEntityPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListItemPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListItemPolymorphicTypesMixIn.java index 926aa08a15..1f35487a89 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListItemPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListItemPolymorphicTypesMixIn.java @@ -15,14 +15,16 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = NegativeKeyword.class, name = "NegativeKeyword"), @JsonSubTypes.Type(value = NegativeSite.class, name = "NegativeSite"), + + @JsonSubTypes.Type(value = BrandItem.class, name = "BrandItem"), }) @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListPolymorphicTypesMixIn.java index 7a15c4a240..03e82ac8c8 100644 --- a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListPolymorphicTypesMixIn.java +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/campaignmanagement/polymorphicTypes/SharedListPolymorphicTypesMixIn.java @@ -15,8 +15,8 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.EXISTING_PROPERTY, - property = "Type", + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type", visible = true) @JsonSubTypes({ @@ -25,6 +25,8 @@ @JsonSubTypes.Type(value = PlacementExclusionList.class, name = "PlacementExclusionList"), @JsonSubTypes.Type(value = AccountNegativeKeywordList.class, name = "AccountNegativeKeywordList"), + + @JsonSubTypes.Type(value = BrandList.class, name = "BrandList"), }) @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/AddMixInForArrayOfTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/AddMixInForArrayOfTypes.java new file mode 100644 index 0000000000..0185025c91 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/AddMixInForArrayOfTypes.java @@ -0,0 +1,60 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.arrayOfTypes; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForArrayOfTypes { + public static void AddMixInForArrayOfTypes() { + AdaptorUtil.mapper + .addMixIn(ArrayOfAccountPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfCampaignPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfCampaignReportScope.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdDynamicTextPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdGroupReportScope.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdGroupPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfKeywordPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfKeywordPerformanceReportSort.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfDestinationUrlPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfBudgetSummaryReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAgeGenderAudienceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProfessionalDemographicsAudienceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfUserLocationPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfPublisherUsagePerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfSearchQueryPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfConversionPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfGoalsAndFunnelsReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfNegativeKeywordConflictReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfSearchCampaignChangeHistoryReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdExtensionByAdReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdExtensionByKeywordReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAudiencePerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdExtensionDetailReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfShareOfVoiceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProductDimensionPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProductPartitionPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProductPartitionUnitPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProductSearchQueryPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProductMatchCountReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfProductNegativeKeywordConflictReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfCallDetailReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfGeographicPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfDSASearchQueryPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfDSAAutoTargetPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfDSACategoryPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfHotelDimensionPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfHotelGroupPerformanceReportColumn.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfBatchError.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfOperationError.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOflong.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfint.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfstring.class, ArrayOfTypesMixIn.class) + .addMixIn(ArrayOfAdApiError.class, ArrayOfTypesMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/ArrayOfTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/ArrayOfTypesMixIn.java new file mode 100644 index 0000000000..116cc85a16 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/arrayOfTypes/ArrayOfTypesMixIn.java @@ -0,0 +1,192 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.arrayOfTypes; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +interface ArrayOfTypesMixIn{ + + @JsonValue + List getAccountPerformanceReportColumns(); + + + @JsonValue + List getCampaignPerformanceReportColumns(); + + + @JsonValue + List getCampaignReportScopes(); + + + @JsonValue + List getAdDynamicTextPerformanceReportColumns(); + + + @JsonValue + List getAdGroupReportScopes(); + + + @JsonValue + List getAdGroupPerformanceReportColumns(); + + + @JsonValue + List getAdPerformanceReportColumns(); + + + @JsonValue + List getKeywordPerformanceReportColumns(); + + + @JsonValue + List getKeywordPerformanceReportSorts(); + + + @JsonValue + List getDestinationUrlPerformanceReportColumns(); + + + @JsonValue + List getBudgetSummaryReportColumns(); + + + @JsonValue + List getAgeGenderAudienceReportColumns(); + + + @JsonValue + List getProfessionalDemographicsAudienceReportColumns(); + + + @JsonValue + List getUserLocationPerformanceReportColumns(); + + + @JsonValue + List getPublisherUsagePerformanceReportColumns(); + + + @JsonValue + List getSearchQueryPerformanceReportColumns(); + + + @JsonValue + List getConversionPerformanceReportColumns(); + + + @JsonValue + List getGoalsAndFunnelsReportColumns(); + + + @JsonValue + List getNegativeKeywordConflictReportColumns(); + + + @JsonValue + List getSearchCampaignChangeHistoryReportColumns(); + + + @JsonValue + List getAdExtensionByAdReportColumns(); + + + @JsonValue + List getAdExtensionByKeywordReportColumns(); + + + @JsonValue + List getAudiencePerformanceReportColumns(); + + + @JsonValue + List getAdExtensionDetailReportColumns(); + + + @JsonValue + List getShareOfVoiceReportColumns(); + + + @JsonValue + List getProductDimensionPerformanceReportColumns(); + + + @JsonValue + List getProductPartitionPerformanceReportColumns(); + + + @JsonValue + List getProductPartitionUnitPerformanceReportColumns(); + + + @JsonValue + List getProductSearchQueryPerformanceReportColumns(); + + + @JsonValue + List getProductMatchCountReportColumns(); + + + @JsonValue + List getProductNegativeKeywordConflictReportColumns(); + + + @JsonValue + List getCallDetailReportColumns(); + + + @JsonValue + List getGeographicPerformanceReportColumns(); + + + @JsonValue + List getDSASearchQueryPerformanceReportColumns(); + + + @JsonValue + List getDSAAutoTargetPerformanceReportColumns(); + + + @JsonValue + List getDSACategoryPerformanceReportColumns(); + + + @JsonValue + List getHotelDimensionPerformanceReportColumns(); + + + @JsonValue + List getHotelGroupPerformanceReportColumns(); + + + @JsonValue + List getBatchErrors(); + + + @JsonValue + List getOperationErrors(); + + + @JsonValue + List getLongs(); + + + @JsonValue + List getInts(); + + + @JsonValue + List getStrings(); + + + @JsonValue + List getAdApiErrors(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..ccf16c20bf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AccountPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AccountPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..6a347f0104 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AccountPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..faeadea5a8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.AccountStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AccountStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(AccountStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterMixIn.java new file mode 100644 index 0000000000..055d07334d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AccountStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AccountStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AccountStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterDeserializer.java new file mode 100644 index 0000000000..faaef3e0d9 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.AdDistributionReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AdDistributionReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(AdDistributionReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterMixIn.java new file mode 100644 index 0000000000..b120a777d8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDistributionReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdDistributionReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdDistributionReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..99b931414b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdDynamicTextPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdDynamicTextPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..eef771ac42 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdDynamicTextPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdDynamicTextPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdTypeReportFilterDeserializer.class) + Collection getAdType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportColumnMixIn.java new file mode 100644 index 0000000000..bccac8903f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdExtensionByAdReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdExtensionByAdReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..6af976a4a5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByAdReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdExtensionByAdReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportColumnMixIn.java new file mode 100644 index 0000000000..4abf486bc9 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdExtensionByKeywordReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdExtensionByKeywordReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..0b2ca3d760 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionByKeywordReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdExtensionByKeywordReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportColumnMixIn.java new file mode 100644 index 0000000000..e00b0e603b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdExtensionDetailReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdExtensionDetailReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..0bd43d9888 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdExtensionDetailReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdExtensionDetailReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..a441021702 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdGroupPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdGroupPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..5318c21c92 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdGroupPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..308af00cd7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.AdGroupStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AdGroupStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(AdGroupStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterMixIn.java new file mode 100644 index 0000000000..4849201719 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdGroupStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdGroupStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdGroupStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..e7c4644e72 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..5e72babf84 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdTypeReportFilterDeserializer.class) + Collection getAdType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..1d51b45db6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.AdStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AdStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(AdStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterMixIn.java new file mode 100644 index 0000000000..e1653dd1e6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterDeserializer.java new file mode 100644 index 0000000000..076b7828eb --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.AdTypeReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AdTypeReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(AdTypeReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterMixIn.java new file mode 100644 index 0000000000..3eb80d4570 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AdTypeReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AdTypeReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AdTypeReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForComplexTypesWithEnumList.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForComplexTypesWithEnumList.java new file mode 100644 index 0000000000..af380bcc31 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForComplexTypesWithEnumList.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForComplexTypesWithEnumList { + public static void AddMixInForComplexTypesWithEnumList() { + AdaptorUtil.mapper + .addMixIn(AccountPerformanceReportFilter.class, AccountPerformanceReportFilterEnumsMixIn.class) + .addMixIn(CampaignPerformanceReportFilter.class, CampaignPerformanceReportFilterEnumsMixIn.class) + .addMixIn(AdDynamicTextPerformanceReportFilter.class, AdDynamicTextPerformanceReportFilterEnumsMixIn.class) + .addMixIn(AdGroupPerformanceReportFilter.class, AdGroupPerformanceReportFilterEnumsMixIn.class) + .addMixIn(AdPerformanceReportFilter.class, AdPerformanceReportFilterEnumsMixIn.class) + .addMixIn(KeywordPerformanceReportFilter.class, KeywordPerformanceReportFilterEnumsMixIn.class) + .addMixIn(DestinationUrlPerformanceReportFilter.class, DestinationUrlPerformanceReportFilterEnumsMixIn.class) + .addMixIn(AgeGenderAudienceReportFilter.class, AgeGenderAudienceReportFilterEnumsMixIn.class) + .addMixIn(ProfessionalDemographicsAudienceReportFilter.class, ProfessionalDemographicsAudienceReportFilterEnumsMixIn.class) + .addMixIn(UserLocationPerformanceReportFilter.class, UserLocationPerformanceReportFilterEnumsMixIn.class) + .addMixIn(PublisherUsagePerformanceReportFilter.class, PublisherUsagePerformanceReportFilterEnumsMixIn.class) + .addMixIn(SearchQueryPerformanceReportFilter.class, SearchQueryPerformanceReportFilterEnumsMixIn.class) + .addMixIn(ConversionPerformanceReportFilter.class, ConversionPerformanceReportFilterEnumsMixIn.class) + .addMixIn(GoalsAndFunnelsReportFilter.class, GoalsAndFunnelsReportFilterEnumsMixIn.class) + .addMixIn(NegativeKeywordConflictReportFilter.class, NegativeKeywordConflictReportFilterEnumsMixIn.class) + .addMixIn(SearchCampaignChangeHistoryReportFilter.class, SearchCampaignChangeHistoryReportFilterEnumsMixIn.class) + .addMixIn(AdExtensionByAdReportFilter.class, AdExtensionByAdReportFilterEnumsMixIn.class) + .addMixIn(AdExtensionByKeywordReportFilter.class, AdExtensionByKeywordReportFilterEnumsMixIn.class) + .addMixIn(AudiencePerformanceReportFilter.class, AudiencePerformanceReportFilterEnumsMixIn.class) + .addMixIn(AdExtensionDetailReportFilter.class, AdExtensionDetailReportFilterEnumsMixIn.class) + .addMixIn(ShareOfVoiceReportFilter.class, ShareOfVoiceReportFilterEnumsMixIn.class) + .addMixIn(ProductDimensionPerformanceReportFilter.class, ProductDimensionPerformanceReportFilterEnumsMixIn.class) + .addMixIn(ProductPartitionPerformanceReportFilter.class, ProductPartitionPerformanceReportFilterEnumsMixIn.class) + .addMixIn(ProductPartitionUnitPerformanceReportFilter.class, ProductPartitionUnitPerformanceReportFilterEnumsMixIn.class) + .addMixIn(ProductSearchQueryPerformanceReportFilter.class, ProductSearchQueryPerformanceReportFilterEnumsMixIn.class) + .addMixIn(ProductNegativeKeywordConflictReportFilter.class, ProductNegativeKeywordConflictReportFilterEnumsMixIn.class) + .addMixIn(CallDetailReportFilter.class, CallDetailReportFilterEnumsMixIn.class) + .addMixIn(GeographicPerformanceReportFilter.class, GeographicPerformanceReportFilterEnumsMixIn.class) + .addMixIn(DSASearchQueryPerformanceReportFilter.class, DSASearchQueryPerformanceReportFilterEnumsMixIn.class) + .addMixIn(DSAAutoTargetPerformanceReportFilter.class, DSAAutoTargetPerformanceReportFilterEnumsMixIn.class) + .addMixIn(DSACategoryPerformanceReportFilter.class, DSACategoryPerformanceReportFilterEnumsMixIn.class) + .addMixIn(HotelDimensionPerformanceReportFilter.class, HotelDimensionPerformanceReportFilterEnumsMixIn.class) + .addMixIn(HotelGroupPerformanceReportFilter.class, HotelGroupPerformanceReportFilterEnumsMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForEnumTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForEnumTypes.java new file mode 100644 index 0000000000..074ba38853 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AddMixInForEnumTypes.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForEnumTypes { + public static void AddMixInForEnumTypes() { + AdaptorUtil.mapper + .addMixIn(ReportFormat.class, ReportFormatMixIn.class) + .addMixIn(ReportAggregation.class, ReportAggregationMixIn.class) + .addMixIn(AccountPerformanceReportColumn.class, AccountPerformanceReportColumnMixIn.class) + .addMixIn(AccountStatusReportFilter.class, AccountStatusReportFilterMixIn.class) + .addMixIn(AdDistributionReportFilter.class, AdDistributionReportFilterMixIn.class) + .addMixIn(DeviceOSReportFilter.class, DeviceOSReportFilterMixIn.class) + .addMixIn(DeviceTypeReportFilter.class, DeviceTypeReportFilterMixIn.class) + .addMixIn(ReportTimePeriod.class, ReportTimePeriodMixIn.class) + .addMixIn(ReportTimeZone.class, ReportTimeZoneMixIn.class) + .addMixIn(CampaignPerformanceReportColumn.class, CampaignPerformanceReportColumnMixIn.class) + .addMixIn(CampaignStatusReportFilter.class, CampaignStatusReportFilterMixIn.class) + .addMixIn(AdDynamicTextPerformanceReportColumn.class, AdDynamicTextPerformanceReportColumnMixIn.class) + .addMixIn(AdGroupStatusReportFilter.class, AdGroupStatusReportFilterMixIn.class) + .addMixIn(AdStatusReportFilter.class, AdStatusReportFilterMixIn.class) + .addMixIn(AdTypeReportFilter.class, AdTypeReportFilterMixIn.class) + .addMixIn(KeywordStatusReportFilter.class, KeywordStatusReportFilterMixIn.class) + .addMixIn(LanguageReportFilter.class, LanguageReportFilterMixIn.class) + .addMixIn(AdGroupPerformanceReportColumn.class, AdGroupPerformanceReportColumnMixIn.class) + .addMixIn(AdPerformanceReportColumn.class, AdPerformanceReportColumnMixIn.class) + .addMixIn(KeywordPerformanceReportColumn.class, KeywordPerformanceReportColumnMixIn.class) + .addMixIn(BidMatchTypeReportFilter.class, BidMatchTypeReportFilterMixIn.class) + .addMixIn(BidStrategyTypeReportFilter.class, BidStrategyTypeReportFilterMixIn.class) + .addMixIn(DeliveredMatchTypeReportFilter.class, DeliveredMatchTypeReportFilterMixIn.class) + .addMixIn(SortOrder.class, SortOrderMixIn.class) + .addMixIn(DestinationUrlPerformanceReportColumn.class, DestinationUrlPerformanceReportColumnMixIn.class) + .addMixIn(BudgetSummaryReportColumn.class, BudgetSummaryReportColumnMixIn.class) + .addMixIn(AgeGenderAudienceReportColumn.class, AgeGenderAudienceReportColumnMixIn.class) + .addMixIn(ProfessionalDemographicsAudienceReportColumn.class, ProfessionalDemographicsAudienceReportColumnMixIn.class) + .addMixIn(UserLocationPerformanceReportColumn.class, UserLocationPerformanceReportColumnMixIn.class) + .addMixIn(PublisherUsagePerformanceReportColumn.class, PublisherUsagePerformanceReportColumnMixIn.class) + .addMixIn(AssetGroupStatusReportFilter.class, AssetGroupStatusReportFilterMixIn.class) + .addMixIn(SearchQueryPerformanceReportColumn.class, SearchQueryPerformanceReportColumnMixIn.class) + .addMixIn(ConversionPerformanceReportColumn.class, ConversionPerformanceReportColumnMixIn.class) + .addMixIn(GoalsAndFunnelsReportColumn.class, GoalsAndFunnelsReportColumnMixIn.class) + .addMixIn(NegativeKeywordConflictReportColumn.class, NegativeKeywordConflictReportColumnMixIn.class) + .addMixIn(SearchCampaignChangeHistoryReportColumn.class, SearchCampaignChangeHistoryReportColumnMixIn.class) + .addMixIn(ChangeTypeReportFilter.class, ChangeTypeReportFilterMixIn.class) + .addMixIn(ChangeEntityReportFilter.class, ChangeEntityReportFilterMixIn.class) + .addMixIn(AdExtensionByAdReportColumn.class, AdExtensionByAdReportColumnMixIn.class) + .addMixIn(AdExtensionByKeywordReportColumn.class, AdExtensionByKeywordReportColumnMixIn.class) + .addMixIn(AudiencePerformanceReportColumn.class, AudiencePerformanceReportColumnMixIn.class) + .addMixIn(AdExtensionDetailReportColumn.class, AdExtensionDetailReportColumnMixIn.class) + .addMixIn(ShareOfVoiceReportColumn.class, ShareOfVoiceReportColumnMixIn.class) + .addMixIn(ProductDimensionPerformanceReportColumn.class, ProductDimensionPerformanceReportColumnMixIn.class) + .addMixIn(ProductPartitionPerformanceReportColumn.class, ProductPartitionPerformanceReportColumnMixIn.class) + .addMixIn(ProductPartitionUnitPerformanceReportColumn.class, ProductPartitionUnitPerformanceReportColumnMixIn.class) + .addMixIn(ProductSearchQueryPerformanceReportColumn.class, ProductSearchQueryPerformanceReportColumnMixIn.class) + .addMixIn(ProductMatchCountReportColumn.class, ProductMatchCountReportColumnMixIn.class) + .addMixIn(ProductNegativeKeywordConflictReportColumn.class, ProductNegativeKeywordConflictReportColumnMixIn.class) + .addMixIn(CallDetailReportColumn.class, CallDetailReportColumnMixIn.class) + .addMixIn(GeographicPerformanceReportColumn.class, GeographicPerformanceReportColumnMixIn.class) + .addMixIn(DSASearchQueryPerformanceReportColumn.class, DSASearchQueryPerformanceReportColumnMixIn.class) + .addMixIn(DSAAutoTargetPerformanceReportColumn.class, DSAAutoTargetPerformanceReportColumnMixIn.class) + .addMixIn(DynamicAdTargetStatusReportFilter.class, DynamicAdTargetStatusReportFilterMixIn.class) + .addMixIn(DSACategoryPerformanceReportColumn.class, DSACategoryPerformanceReportColumnMixIn.class) + .addMixIn(HotelDimensionPerformanceReportColumn.class, HotelDimensionPerformanceReportColumnMixIn.class) + .addMixIn(HotelGroupPerformanceReportColumn.class, HotelGroupPerformanceReportColumnMixIn.class) + .addMixIn(ReportRequestStatusType.class, ReportRequestStatusTypeMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportColumnMixIn.java new file mode 100644 index 0000000000..1aa9ae449e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AgeGenderAudienceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AgeGenderAudienceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..4edb99a063 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AgeGenderAudienceReportFilterEnumsMixIn.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AgeGenderAudienceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..1e0099d905 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.AssetGroupStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AssetGroupStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(AssetGroupStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterMixIn.java new file mode 100644 index 0000000000..003ec8c111 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AssetGroupStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AssetGroupStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AssetGroupStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..f4765d3e88 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AudiencePerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + AudiencePerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..bd18fc33d2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/AudiencePerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface AudiencePerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterDeserializer.java new file mode 100644 index 0000000000..dd267cb154 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.BidMatchTypeReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class BidMatchTypeReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(BidMatchTypeReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterMixIn.java new file mode 100644 index 0000000000..607ab27ebb --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidMatchTypeReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface BidMatchTypeReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + BidMatchTypeReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterDeserializer.java new file mode 100644 index 0000000000..db1623b811 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.BidStrategyTypeReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class BidStrategyTypeReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(BidStrategyTypeReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterMixIn.java new file mode 100644 index 0000000000..d679fa45f2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BidStrategyTypeReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface BidStrategyTypeReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + BidStrategyTypeReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BudgetSummaryReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BudgetSummaryReportColumnMixIn.java new file mode 100644 index 0000000000..dea8c6a406 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/BudgetSummaryReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface BudgetSummaryReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + BudgetSummaryReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportColumnMixIn.java new file mode 100644 index 0000000000..a963cfb9be --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface CallDetailReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + CallDetailReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..293b9da014 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CallDetailReportFilterEnumsMixIn.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface CallDetailReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..12f5eae672 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface CampaignPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + CampaignPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..71955001b2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface CampaignPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..2a713e1b46 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.CampaignStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class CampaignStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(CampaignStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterMixIn.java new file mode 100644 index 0000000000..17483ceb4b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/CampaignStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface CampaignStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + CampaignStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterDeserializer.java new file mode 100644 index 0000000000..daac14fb4f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.ChangeEntityReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class ChangeEntityReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(ChangeEntityReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterMixIn.java new file mode 100644 index 0000000000..3fd7d3461a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeEntityReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ChangeEntityReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ChangeEntityReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterDeserializer.java new file mode 100644 index 0000000000..2190b62792 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.ChangeTypeReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class ChangeTypeReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(ChangeTypeReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterMixIn.java new file mode 100644 index 0000000000..59dc79630d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ChangeTypeReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ChangeTypeReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ChangeTypeReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..01158f26d8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ConversionPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ConversionPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..f3424e7f80 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ConversionPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ConversionPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..be67ec4bd3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DSAAutoTargetPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DSAAutoTargetPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..53f749ebee --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSAAutoTargetPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DSAAutoTargetPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = BidStrategyTypeReportFilterDeserializer.class) + Collection getBidStrategyType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DynamicAdTargetStatusReportFilterDeserializer.class) + Collection getDynamicAdTargetStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..41788747b0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DSACategoryPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DSACategoryPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..0a19bad4d5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSACategoryPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DSACategoryPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..e8548c2007 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DSASearchQueryPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DSASearchQueryPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..917b2ac821 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DSASearchQueryPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DSASearchQueryPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterDeserializer.java new file mode 100644 index 0000000000..f5dc6279d6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.DeliveredMatchTypeReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class DeliveredMatchTypeReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(DeliveredMatchTypeReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterMixIn.java new file mode 100644 index 0000000000..5a27b7897a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeliveredMatchTypeReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DeliveredMatchTypeReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DeliveredMatchTypeReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..e902083271 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DestinationUrlPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DestinationUrlPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..e274ae680b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DestinationUrlPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DestinationUrlPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterDeserializer.java new file mode 100644 index 0000000000..2b214c67c2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.DeviceOSReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class DeviceOSReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(DeviceOSReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterMixIn.java new file mode 100644 index 0000000000..61d0a89282 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceOSReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DeviceOSReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DeviceOSReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterDeserializer.java new file mode 100644 index 0000000000..797dc9f70c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.DeviceTypeReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class DeviceTypeReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(DeviceTypeReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterMixIn.java new file mode 100644 index 0000000000..9b67804595 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DeviceTypeReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DeviceTypeReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DeviceTypeReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..d502cbec8b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.DynamicAdTargetStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class DynamicAdTargetStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(DynamicAdTargetStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterMixIn.java new file mode 100644 index 0000000000..a7795ffbe3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/DynamicAdTargetStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface DynamicAdTargetStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + DynamicAdTargetStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..1773dcdadf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface GeographicPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + GeographicPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..62b17d981e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GeographicPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface GeographicPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportColumnMixIn.java new file mode 100644 index 0000000000..ecce7792da --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface GoalsAndFunnelsReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + GoalsAndFunnelsReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..50f01d919e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/GoalsAndFunnelsReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface GoalsAndFunnelsReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceOSReportFilterDeserializer.class) + Collection getDeviceOS(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..eca21cec52 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface HotelDimensionPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + HotelDimensionPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..c2ffb00115 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelDimensionPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface HotelDimensionPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..0c6d19a5d5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface HotelGroupPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + HotelGroupPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..5fa92651a8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/HotelGroupPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface HotelGroupPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..8c6bd3e326 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface KeywordPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + KeywordPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..e7deb39312 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface KeywordPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdTypeReportFilterDeserializer.class) + Collection getAdType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = BidMatchTypeReportFilterDeserializer.class) + Collection getBidMatchType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = BidStrategyTypeReportFilterDeserializer.class) + Collection getBidStrategyType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeliveredMatchTypeReportFilterDeserializer.class) + Collection getDeliveredMatchType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterDeserializer.java new file mode 100644 index 0000000000..025007ff21 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.KeywordStatusReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class KeywordStatusReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(KeywordStatusReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterMixIn.java new file mode 100644 index 0000000000..525f5c2355 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/KeywordStatusReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface KeywordStatusReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + KeywordStatusReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterDeserializer.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterDeserializer.java new file mode 100644 index 0000000000..dcac833f18 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterDeserializer.java @@ -0,0 +1,27 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.microsoft.bingads.v13.reporting.LanguageReportFilter; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class LanguageReportFilterDeserializer extends JsonDeserializer> { + @Override + public Collection deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + String s = p.getValueAsString(); + String[] strs = s.split(","); + Collection res = new ArrayList(); + for (String str : strs) + { + res.add(Enum.valueOf(LanguageReportFilter.class, AdaptorUtil.convertStringToEnumValue(str.trim()))); + } + return res; + } +} diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterMixIn.java new file mode 100644 index 0000000000..f9e76e4e07 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/LanguageReportFilterMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface LanguageReportFilterMixIn{ + + @JsonValue + String value(); + + @JsonCreator + LanguageReportFilter fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportColumnMixIn.java new file mode 100644 index 0000000000..526059cdec --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface NegativeKeywordConflictReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + NegativeKeywordConflictReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..7112e6e1e8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/NegativeKeywordConflictReportFilterEnumsMixIn.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface NegativeKeywordConflictReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..e077b9dfee --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductDimensionPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProductDimensionPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..331c3aedc4 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductDimensionPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductDimensionPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductMatchCountReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductMatchCountReportColumnMixIn.java new file mode 100644 index 0000000000..6315f2243a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductMatchCountReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductMatchCountReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProductMatchCountReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportColumnMixIn.java new file mode 100644 index 0000000000..146ae7c0fb --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductNegativeKeywordConflictReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProductNegativeKeywordConflictReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..1cde2da7ff --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductNegativeKeywordConflictReportFilterEnumsMixIn.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductNegativeKeywordConflictReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..e71f45828b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductPartitionPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProductPartitionPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..c0fda0b724 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductPartitionPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..e00610976d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductPartitionUnitPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProductPartitionUnitPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..f157f193d6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductPartitionUnitPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductPartitionUnitPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..45946c48c3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductSearchQueryPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProductSearchQueryPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..3f9c29c5ad --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProductSearchQueryPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProductSearchQueryPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdTypeReportFilterDeserializer.class) + Collection getAdType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportColumnMixIn.java new file mode 100644 index 0000000000..3131874c82 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProfessionalDemographicsAudienceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ProfessionalDemographicsAudienceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..807da39ca4 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ProfessionalDemographicsAudienceReportFilterEnumsMixIn.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ProfessionalDemographicsAudienceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..cb13a691de --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface PublisherUsagePerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + PublisherUsagePerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..f1ce2b4187 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/PublisherUsagePerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface PublisherUsagePerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AssetGroupStatusReportFilterDeserializer.class) + Collection getAssetGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportAggregationMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportAggregationMixIn.java new file mode 100644 index 0000000000..1a4ad645ee --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportAggregationMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ReportAggregationMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ReportAggregation fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportFormatMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportFormatMixIn.java new file mode 100644 index 0000000000..95ad170685 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportFormatMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ReportFormatMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ReportFormat fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportRequestStatusTypeMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportRequestStatusTypeMixIn.java new file mode 100644 index 0000000000..51968a6c7b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportRequestStatusTypeMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ReportRequestStatusTypeMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ReportRequestStatusType fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimePeriodMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimePeriodMixIn.java new file mode 100644 index 0000000000..6d11806b8b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimePeriodMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ReportTimePeriodMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ReportTimePeriod fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimeZoneMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimeZoneMixIn.java new file mode 100644 index 0000000000..7ccb9758e8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ReportTimeZoneMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ReportTimeZoneMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ReportTimeZone fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportColumnMixIn.java new file mode 100644 index 0000000000..d340dc8ec9 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface SearchCampaignChangeHistoryReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + SearchCampaignChangeHistoryReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..284515f51e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchCampaignChangeHistoryReportFilterEnumsMixIn.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface SearchCampaignChangeHistoryReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = ChangeTypeReportFilterDeserializer.class) + Collection getHowChanged(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = ChangeEntityReportFilterDeserializer.class) + Collection getItemChanged(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..917880a897 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface SearchQueryPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + SearchQueryPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..2c48c7c3c3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SearchQueryPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface SearchQueryPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdStatusReportFilterDeserializer.class) + Collection getAdStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdTypeReportFilterDeserializer.class) + Collection getAdType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeliveredMatchTypeReportFilterDeserializer.class) + Collection getDeliveredMatchType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportColumnMixIn.java new file mode 100644 index 0000000000..272f7b37ec --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ShareOfVoiceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + ShareOfVoiceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..ca5dedeebd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/ShareOfVoiceReportFilterEnumsMixIn.java @@ -0,0 +1,66 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface ShareOfVoiceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AccountStatusReportFilterDeserializer.class) + Collection getAccountStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdGroupStatusReportFilterDeserializer.class) + Collection getAdGroupStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = BidMatchTypeReportFilterDeserializer.class) + Collection getBidMatchType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = BidStrategyTypeReportFilterDeserializer.class) + Collection getBidStrategyType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = CampaignStatusReportFilterDeserializer.class) + Collection getCampaignStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeliveredMatchTypeReportFilterDeserializer.class) + Collection getDeliveredMatchType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = DeviceTypeReportFilterDeserializer.class) + Collection getDeviceType(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = KeywordStatusReportFilterDeserializer.class) + Collection getKeywordStatus(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SortOrderMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SortOrderMixIn.java new file mode 100644 index 0000000000..981017082c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/SortOrderMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface SortOrderMixIn{ + + @JsonValue + String value(); + + @JsonCreator + SortOrder fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportColumnMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportColumnMixIn.java new file mode 100644 index 0000000000..0fe98c8952 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportColumnMixIn.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface UserLocationPerformanceReportColumnMixIn{ + + @JsonValue + String value(); + + @JsonCreator + UserLocationPerformanceReportColumn fromValue(String v); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportFilterEnumsMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportFilterEnumsMixIn.java new file mode 100644 index 0000000000..1d647594cd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/enums/UserLocationPerformanceReportFilterEnumsMixIn.java @@ -0,0 +1,26 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums; + +import java.util.Collection; +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; + +@JsonInclude(JsonInclude.Include.NON_NULL) +public interface UserLocationPerformanceReportFilterEnumsMixIn{ + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = AdDistributionReportFilterDeserializer.class) + Collection getAdDistribution(); + + + @JsonSerialize(using = EnumListSerializer.class) + @JsonDeserialize(using = LanguageReportFilterDeserializer.class) + Collection getLanguage(); + + } \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/AddMixInForPolymorphicTypes.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/AddMixInForPolymorphicTypes.java new file mode 100644 index 0000000000..d9f2f9aee0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/AddMixInForPolymorphicTypes.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.polymorphicTypes; + +import java.util.Locale; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +public class AddMixInForPolymorphicTypes { + public static void AddMixInForPolymorphicTypes() { + AdaptorUtil.mapper + .addMixIn(ReportRequest.class, ReportRequestPolymorphicTypesMixIn.class) + .addMixIn(ApplicationFault.class, ApplicationFaultPolymorphicTypesMixIn.class) + ; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java new file mode 100644 index 0000000000..3a7b5c2c3a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ApplicationFaultPolymorphicTypesMixIn.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.polymorphicTypes; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; +import com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums.*; + +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type") + @JsonSubTypes({ + + @JsonSubTypes.Type(value = ApiFaultDetail.class, name = "ApiFaultDetail"), + + @JsonSubTypes.Type(value = AdApiFaultDetail.class, name = "AdApiFaultDetail"), + }) +@JsonInclude(JsonInclude.Include.NON_NULL) + +public interface ApplicationFaultPolymorphicTypesMixIn{ + +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ReportRequestPolymorphicTypesMixIn.java b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ReportRequestPolymorphicTypesMixIn.java new file mode 100644 index 0000000000..805afdb6f0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/internal/restful/adaptor/generated/reporting/polymorphicTypes/ReportRequestPolymorphicTypesMixIn.java @@ -0,0 +1,96 @@ +package com.microsoft.bingads.internal.restful.adaptor.generated.reporting.polymorphicTypes; + +import java.util.List; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonUnwrapped; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.microsoft.bingads.v13.reporting.*; +import com.microsoft.bingads.internal.restful.adaptor.*; +import com.microsoft.bingads.internal.restful.adaptor.generated.reporting.enums.*; + +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + property = "Type") + @JsonSubTypes({ + + @JsonSubTypes.Type(value = AccountPerformanceReportRequest.class, name = "AccountPerformanceReportRequest"), + + @JsonSubTypes.Type(value = CampaignPerformanceReportRequest.class, name = "CampaignPerformanceReportRequest"), + + @JsonSubTypes.Type(value = AdDynamicTextPerformanceReportRequest.class, name = "AdDynamicTextPerformanceReportRequest"), + + @JsonSubTypes.Type(value = AdGroupPerformanceReportRequest.class, name = "AdGroupPerformanceReportRequest"), + + @JsonSubTypes.Type(value = AdPerformanceReportRequest.class, name = "AdPerformanceReportRequest"), + + @JsonSubTypes.Type(value = KeywordPerformanceReportRequest.class, name = "KeywordPerformanceReportRequest"), + + @JsonSubTypes.Type(value = DestinationUrlPerformanceReportRequest.class, name = "DestinationUrlPerformanceReportRequest"), + + @JsonSubTypes.Type(value = BudgetSummaryReportRequest.class, name = "BudgetSummaryReportRequest"), + + @JsonSubTypes.Type(value = AgeGenderAudienceReportRequest.class, name = "AgeGenderAudienceReportRequest"), + + @JsonSubTypes.Type(value = ProfessionalDemographicsAudienceReportRequest.class, name = "ProfessionalDemographicsAudienceReportRequest"), + + @JsonSubTypes.Type(value = UserLocationPerformanceReportRequest.class, name = "UserLocationPerformanceReportRequest"), + + @JsonSubTypes.Type(value = PublisherUsagePerformanceReportRequest.class, name = "PublisherUsagePerformanceReportRequest"), + + @JsonSubTypes.Type(value = SearchQueryPerformanceReportRequest.class, name = "SearchQueryPerformanceReportRequest"), + + @JsonSubTypes.Type(value = ConversionPerformanceReportRequest.class, name = "ConversionPerformanceReportRequest"), + + @JsonSubTypes.Type(value = GoalsAndFunnelsReportRequest.class, name = "GoalsAndFunnelsReportRequest"), + + @JsonSubTypes.Type(value = NegativeKeywordConflictReportRequest.class, name = "NegativeKeywordConflictReportRequest"), + + @JsonSubTypes.Type(value = SearchCampaignChangeHistoryReportRequest.class, name = "SearchCampaignChangeHistoryReportRequest"), + + @JsonSubTypes.Type(value = AdExtensionByAdReportRequest.class, name = "AdExtensionByAdReportRequest"), + + @JsonSubTypes.Type(value = AdExtensionByKeywordReportRequest.class, name = "AdExtensionByKeywordReportRequest"), + + @JsonSubTypes.Type(value = AudiencePerformanceReportRequest.class, name = "AudiencePerformanceReportRequest"), + + @JsonSubTypes.Type(value = AdExtensionDetailReportRequest.class, name = "AdExtensionDetailReportRequest"), + + @JsonSubTypes.Type(value = ShareOfVoiceReportRequest.class, name = "ShareOfVoiceReportRequest"), + + @JsonSubTypes.Type(value = ProductDimensionPerformanceReportRequest.class, name = "ProductDimensionPerformanceReportRequest"), + + @JsonSubTypes.Type(value = ProductPartitionPerformanceReportRequest.class, name = "ProductPartitionPerformanceReportRequest"), + + @JsonSubTypes.Type(value = ProductPartitionUnitPerformanceReportRequest.class, name = "ProductPartitionUnitPerformanceReportRequest"), + + @JsonSubTypes.Type(value = ProductSearchQueryPerformanceReportRequest.class, name = "ProductSearchQueryPerformanceReportRequest"), + + @JsonSubTypes.Type(value = ProductMatchCountReportRequest.class, name = "ProductMatchCountReportRequest"), + + @JsonSubTypes.Type(value = ProductNegativeKeywordConflictReportRequest.class, name = "ProductNegativeKeywordConflictReportRequest"), + + @JsonSubTypes.Type(value = CallDetailReportRequest.class, name = "CallDetailReportRequest"), + + @JsonSubTypes.Type(value = GeographicPerformanceReportRequest.class, name = "GeographicPerformanceReportRequest"), + + @JsonSubTypes.Type(value = DSASearchQueryPerformanceReportRequest.class, name = "DSASearchQueryPerformanceReportRequest"), + + @JsonSubTypes.Type(value = DSAAutoTargetPerformanceReportRequest.class, name = "DSAAutoTargetPerformanceReportRequest"), + + @JsonSubTypes.Type(value = DSACategoryPerformanceReportRequest.class, name = "DSACategoryPerformanceReportRequest"), + + @JsonSubTypes.Type(value = HotelDimensionPerformanceReportRequest.class, name = "HotelDimensionPerformanceReportRequest"), + + @JsonSubTypes.Type(value = HotelGroupPerformanceReportRequest.class, name = "HotelGroupPerformanceReportRequest"), + }) +@JsonInclude(JsonInclude.Include.NON_NULL) + +public interface ReportRequestPolymorphicTypesMixIn{ + +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/BulkServiceManager.java b/src/main/java/com/microsoft/bingads/v13/bulk/BulkServiceManager.java index 82d89824fd..df4a1c70e2 100644 --- a/src/main/java/com/microsoft/bingads/v13/bulk/BulkServiceManager.java +++ b/src/main/java/com/microsoft/bingads/v13/bulk/BulkServiceManager.java @@ -98,20 +98,28 @@ public class BulkServiceManager { public BulkServiceManager(AuthorizationData authorizationData) { this(authorizationData, null); } + + public BulkServiceManager(AuthorizationData authorizationData, boolean enableRestApi) { + this(authorizationData, null, enableRestApi); + } public BulkServiceManager(AuthorizationData authorizationData, ApiEnvironment apiEnvironment) { - this(authorizationData, new HttpClientHttpFileService(), new SimpleZipExtractor(), new CsvBulkEntityReaderFactory(), apiEnvironment); + this(authorizationData, new HttpClientHttpFileService(), new SimpleZipExtractor(), new CsvBulkEntityReaderFactory(), apiEnvironment, false); + } + + public BulkServiceManager(AuthorizationData authorizationData, ApiEnvironment apiEnvironment, boolean enableRestApi) { + this(authorizationData, new HttpClientHttpFileService(), new SimpleZipExtractor(), new CsvBulkEntityReaderFactory(), apiEnvironment, enableRestApi); } private BulkServiceManager(AuthorizationData authorizationData, HttpFileService httpFileService, ZipExtractor zipExtractor, - BulkEntityReaderFactory factory, ApiEnvironment apiEnvironment) { + BulkEntityReaderFactory factory, ApiEnvironment apiEnvironment, boolean enableRestApi) { this.authorizationData = authorizationData; this.httpFileService = httpFileService; this.zipExtractor = zipExtractor; this.bulkEntityReaderFactory = factory; this.apiEnvironment = apiEnvironment; - serviceClient = new ServiceClient(this.authorizationData, apiEnvironment, IBulkService.class); + serviceClient = new ServiceClient(this.authorizationData, apiEnvironment, IBulkService.class, enableRestApi); workingDirectory = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK"); diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordList.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordList.java new file mode 100644 index 0000000000..ef1a4f26d0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordList.java @@ -0,0 +1,164 @@ +package com.microsoft.bingads.v13.bulk.entities; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.bulk.BulkFileReader; +import com.microsoft.bingads.v13.bulk.BulkFileWriter; +import com.microsoft.bingads.v13.bulk.BulkOperation; +import com.microsoft.bingads.v13.bulk.BulkServiceManager; +import com.microsoft.bingads.v13.campaignmanagement.AccountNegativeKeywordList; +import com.microsoft.bingads.v13.internal.bulk.BulkMapping; +import com.microsoft.bingads.v13.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v13.internal.bulk.RowValues; +import com.microsoft.bingads.v13.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v13.internal.bulk.StringExtensions; +import com.microsoft.bingads.v13.internal.bulk.StringTable; +import com.microsoft.bingads.v13.internal.bulk.entities.SingleRecordBulkEntity; + +/** + * Represents an account negative keyword list that can be read or written in a bulk file. + * + * This class exposes the {@link BulkAccountNegativeKeywordList#setAccountNegativeKeywordList} and {@link BulkAccountNegativeKeywordList#getAccountNegativeKeywordList} + * methods that can be used to read and write fields of the Negative Keyword List record in a bulk file. + * + *

+ * For more information, see Account Negative Keyword List at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAccountNegativeKeywordList extends SingleRecordBulkEntity { + + private AccountNegativeKeywordList AccountNegativeKeywordList; + + private Status status; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAccountNegativeKeywordList c) { + return c.getAccountNegativeKeywordList().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccountNegativeKeywordList c) { + c.getAccountNegativeKeywordList().setId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAccountNegativeKeywordList c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccountNegativeKeywordList c) { + c.setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public Status apply(String value) { + return Status.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Name, + new Function() { + @Override + public String apply(BulkAccountNegativeKeywordList c) { + return c.getAccountNegativeKeywordList().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccountNegativeKeywordList c) { + c.getAccountNegativeKeywordList().setName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setAccountNegativeKeywordList(new AccountNegativeKeywordList()); + + this.getAccountNegativeKeywordList().setType("AccountNegativeKeywordList"); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getAccountNegativeKeywordList(), "AccountNegativeKeywordList"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the account negative keyword list. + */ + public AccountNegativeKeywordList getAccountNegativeKeywordList() { + return AccountNegativeKeywordList; + } + + /** + * Sets the account negative keyword list. + */ + public void setAccountNegativeKeywordList(AccountNegativeKeywordList AccountNegativeKeywordList) { + this.AccountNegativeKeywordList = AccountNegativeKeywordList; + } + + /** + * Gets the status of the account negative keyword list. + * + *

+ * The value is Active if the negative keyword list is available in the account's shared library. + * The value is Deleted if the negative keyword list is deleted from the library, + * or should be deleted in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public Status getStatus() { + return status; + } + + /** + * Sets the status of the account negative keyword list. + * + *

+ * The value is Active if the negative keyword list is available in the account's shared library. + * The value is Deleted if the negative keyword list is deleted from the library, + * or should be deleted in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public void setStatus(Status status) { + this.status = status; + } +} diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordListAssociation.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordListAssociation.java new file mode 100644 index 0000000000..b7810b4659 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountNegativeKeywordListAssociation.java @@ -0,0 +1,169 @@ +package com.microsoft.bingads.v13.bulk.entities; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.bulk.BulkFileReader; +import com.microsoft.bingads.v13.bulk.BulkFileWriter; +import com.microsoft.bingads.v13.bulk.BulkOperation; +import com.microsoft.bingads.v13.bulk.BulkServiceManager; +import com.microsoft.bingads.v13.campaignmanagement.SharedEntityAssociation; +import com.microsoft.bingads.v13.internal.bulk.BulkMapping; +import com.microsoft.bingads.v13.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v13.internal.bulk.RowValues; +import com.microsoft.bingads.v13.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v13.internal.bulk.StringExtensions; +import com.microsoft.bingads.v13.internal.bulk.StringTable; +import com.microsoft.bingads.v13.internal.bulk.entities.SingleRecordBulkEntity; + +/** + * Represents a negative keyword list that is assigned to an account. + * Each negative keyword list can be read or written in a bulk file. + * This class exposes the {@link #setSharedEntityAssociation} and {@link #getSharedEntityAssociation} methods + * that can be used to read and write fields of the Campaign Negative Keyword List Association record in a bulk file. + * + *

+ * For more information, see Account Negative Keyword List Association at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAccountNegativeKeywordListAssociation extends SingleRecordBulkEntity { + + private SharedEntityAssociation sharedEntityAssociation; + + private Status status; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAccountNegativeKeywordListAssociation c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccountNegativeKeywordListAssociation c) { + c.setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public Status apply(String value) { + return Status.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAccountNegativeKeywordListAssociation c) { + return c.getSharedEntityAssociation().getSharedEntityId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccountNegativeKeywordListAssociation c) { + c.getSharedEntityAssociation().setSharedEntityId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkAccountNegativeKeywordListAssociation c) { + return c.getSharedEntityAssociation().getEntityId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccountNegativeKeywordListAssociation c) { + c.getSharedEntityAssociation().setEntityId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setSharedEntityAssociation(new SharedEntityAssociation()); + this.getSharedEntityAssociation().setEntityType("Account"); + this.getSharedEntityAssociation().setSharedEntityType("NegativeKeywordList"); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + //TODO: throw if Association doesn't have NKW and Campaign as entity types + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the campaign and negative keyword list identifiers. + */ + public SharedEntityAssociation getSharedEntityAssociation() { + return sharedEntityAssociation; + } + + /** + * Sets the campaign and negative keyword list identifiers. + */ + public void setSharedEntityAssociation(SharedEntityAssociation association) { + this.sharedEntityAssociation = association; + } + + /** + * Gets the status of the negative keyword list association. + * + *

+ * The value is Active if the negative keyword list is assoicated to the account. + * The value is Deleted if the negative keyword list is disassociated from the account, + * or should be disassociated in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public Status getStatus() { + return status; + } + + /** + * Sets the status of the negative keyword list association. + * + *

+ * The value is Active if the negative keyword list is assoicated to the campaign. + * The value is Deleted if the negative keyword list is disassociated from the campaign, + * or should be disassociated in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public void setStatus(Status status) { + this.status = status; + } +} diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountSharedNegativeKeyword.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountSharedNegativeKeyword.java new file mode 100644 index 0000000000..cf5fe7cc4c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkAccountSharedNegativeKeyword.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v13.bulk.entities; + +import com.microsoft.bingads.v13.bulk.BulkFileReader; +import com.microsoft.bingads.v13.bulk.BulkFileWriter; +import com.microsoft.bingads.v13.bulk.BulkOperation; +import com.microsoft.bingads.v13.bulk.BulkServiceManager; + +/** + * Represents a negative keyword that is shared in a negative keyword list. + * + * Each shared negative keyword can be read or written in a bulk file. + * This class exposes the {@link BulkNegativeKeyword#setNegativeKeyword} and + * {@link BulkNegativeKeyword#getNegativeKeyword} methods + * that can be used to read and write fields of the Shared Negative Keyword record in a bulk file. + * + *

+ * For more information, see Shared Negative Keyword at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAccountSharedNegativeKeyword extends BulkNegativeKeyword { + + /** + * Gets the identifier of the negative keyword list through which the negative keyword is shared. + * + *

+ * Corresponds to the 'Parent Id' field in the bulk file. + *

+ */ + public long getNegativeKeywordListId() { + return this.getParentId(); + } + + /** + * Sets the identifier of the negative keyword list through which the negative keyword is shared. + * + *

+ * Corresponds to the 'Parent Id' field in the bulk file. + *

+ */ + public void setNegativeKeywordListId(long negativeKeywordListId) { + this.setParentId(negativeKeywordListId); + } +} diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkCampaign.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkCampaign.java index a110939c1e..d5f024c368 100644 --- a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkCampaign.java +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkCampaign.java @@ -67,6 +67,7 @@ public class BulkCampaign extends SingleRecordBulkEntity { private String BidStrategyName; private String DestinationChannel; private Boolean IsMultiChannelCampaign; + private Boolean ShouldServeOnMSAN; private static final List> MAPPINGS; private static BiConsumer budgetToCsv; private static BiConsumer csvToBudget; @@ -464,42 +465,7 @@ public Long apply(String s) { } } )); - - m.add(new SimpleBulkMapping(StringTable.VerifiedTrackingData, - new Function() { - @Override - public String apply(BulkCampaign c) { - if (c.getCampaign().getCampaignType() == null) { - return null; - } - - Setting setting = c.getCampaignSetting(VerifiedTrackingSetting.class, false); - return setting == null? null : StringExtensions.toVerifiedTrackingSettingBulkString(((VerifiedTrackingSetting)setting).getDetails(), c.getCampaign().getId()); - } - }, - new BiConsumer() { - @Override - public void accept(String v, BulkCampaign c) { - if (c.getCampaign().getCampaignType() == null) { - return; - } - - Setting setting = c.getCampaignSetting(VerifiedTrackingSetting.class, true); - - if (setting == null) { - return; - } - - ((VerifiedTrackingSetting)setting).setDetails(StringExtensions.parseOptional(v, new Function() { - @Override - public ArrayOfArrayOfKeyValuePairOfstringstring apply(String s) { - return StringExtensions.parseVerifiedTrackingSetting(s); - } - })); - } - } - )); - + m.add(new SimpleBulkMapping(StringTable.DisclaimerAdsEnabled, new Function() { @Override @@ -1044,35 +1010,43 @@ public void accept(String v, BulkCampaign c) { @Override public String apply(BulkCampaign c) { Setting setting = c.getCampaignSetting(DynamicSearchAdsSetting.class, false); - - if (setting == null) { - return null; - } - DynamicSearchAdsSetting dsaSetting = (DynamicSearchAdsSetting)setting; - if (dsaSetting.getPageFeedIds() == null - || dsaSetting.getPageFeedIds().getLongs() == null - ||dsaSetting.getPageFeedIds().getLongs().size() == 0) - { - return null; - } - - - return StringExtensions.toIdListBulkString(";", dsaSetting.getPageFeedIds()); + if (setting != null) { + DynamicSearchAdsSetting dsaSetting = (DynamicSearchAdsSetting)setting; + if (dsaSetting.getPageFeedIds() == null + || dsaSetting.getPageFeedIds().getLongs() == null + ||dsaSetting.getPageFeedIds().getLongs().size() == 0) + { + return null; + } + + return StringExtensions.toIdListBulkString(";", dsaSetting.getPageFeedIds()); + } else { + setting = c.getCampaignSetting(PerformanceMaxSetting.class, false); + + if (setting == null) { + return null; + } + PerformanceMaxSetting performMaxSetting = (PerformanceMaxSetting)setting; + if (performMaxSetting.getPageFeedIds() == null + || performMaxSetting.getPageFeedIds().getLongs() == null + ||performMaxSetting.getPageFeedIds().getLongs().size() == 0) + { + return null; + } + + return StringExtensions.toIdListBulkString(";", performMaxSetting.getPageFeedIds()); + } } }, new BiConsumer() { @Override public void accept(String v, BulkCampaign c) { - if (c.getCampaign().getCampaignType() == null) { + if (c.getCampaign().getCampaignType() == null || v == null) { return; } Setting setting = c.getCampaignSetting(DynamicSearchAdsSetting.class, true); - - if (setting == null || v == null) { - return; - } ArrayOflong ids = new ArrayOflong(); List idArray = StringExtensions.parseIdList(v); @@ -1083,7 +1057,17 @@ public void accept(String v, BulkCampaign c) { ids.getLongs().addAll(idArray); } - ((DynamicSearchAdsSetting)setting).setPageFeedIds(ids); + if (setting != null) { + ((DynamicSearchAdsSetting)setting).setPageFeedIds(ids); + } else { + setting = c.getCampaignSetting(PerformanceMaxSetting.class, true); + + if (setting == null) { + return; + } else { + ((PerformanceMaxSetting)setting).setPageFeedIds(ids); + } + } } } )); @@ -1152,6 +1136,73 @@ public void accept(String v, BulkCampaign c) { } } )); + + m.add(new SimpleBulkMapping(StringTable.AutoGeneratedImageOptOut, + new Function() { + @Override + public Boolean apply(BulkCampaign t) { + Setting setting = t.getCampaignSetting(PerformanceMaxSetting.class, false); + + if (setting == null) { + return null; + } + PerformanceMaxSetting performMaxSetting = (PerformanceMaxSetting)setting; + return performMaxSetting.getAutoGeneratedImageOptOut(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + Setting setting = c.getCampaignSetting(PerformanceMaxSetting.class, false); + + if (setting == null) { + return; + } + ((PerformanceMaxSetting)setting).setAutoGeneratedImageOptOut(v == null ? null : Boolean.parseBoolean(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AutoGeneratedTextOptOut, + new Function() { + @Override + public Boolean apply(BulkCampaign t) { + Setting setting = t.getCampaignSetting(PerformanceMaxSetting.class, false); + + if (setting == null) { + return null; + } + PerformanceMaxSetting performMaxSetting = (PerformanceMaxSetting)setting; + return performMaxSetting.getAutoGeneratedTextOptOut(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + Setting setting = c.getCampaignSetting(PerformanceMaxSetting.class, false); + + if (setting == null) { + return; + } + ((PerformanceMaxSetting)setting).setAutoGeneratedTextOptOut(v == null ? null : Boolean.parseBoolean(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ShouldServeOnMSAN, + new Function() { + @Override + public Boolean apply(BulkCampaign t) { + return t.getShouldServeOnMSAN(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.setShouldServeOnMSAN(v == null ? null : Boolean.parseBoolean(v)); + } + } + )); MAPPINGS = Collections.unmodifiableList(m); } @@ -1243,6 +1294,14 @@ public Boolean getIsMultiChannelCampaign() { public void setIsMultiChannelCampaign(Boolean isMultiChannelCampaign) { IsMultiChannelCampaign = isMultiChannelCampaign; } + + public Boolean getShouldServeOnMSAN() { + return ShouldServeOnMSAN; + } + + public void setShouldServeOnMSAN(Boolean ShouldServeOnMSAN) { + ShouldServeOnMSAN = ShouldServeOnMSAN; + } @Override public void processMappingsFromRowValues(RowValues values) { diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkDataExclusion.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkDataExclusion.java new file mode 100644 index 0000000000..3e7b463314 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkDataExclusion.java @@ -0,0 +1,272 @@ +package com.microsoft.bingads.v13.bulk.entities; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collection; +import java.util.Collections; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.TimeZone; + +import com.microsoft.bingads.internal.UncheckedParseException; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.bulk.BulkFileReader; +import com.microsoft.bingads.v13.bulk.BulkFileWriter; +import com.microsoft.bingads.v13.bulk.BulkOperation; +import com.microsoft.bingads.v13.bulk.BulkServiceManager; +import com.microsoft.bingads.v13.campaignmanagement.DataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v13.campaignmanagement.BudgetLimitType; +import com.microsoft.bingads.v13.campaignmanagement.CallToAction; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.DeviceType; +import com.microsoft.bingads.v13.internal.bulk.BulkMapping; +import com.microsoft.bingads.v13.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v13.internal.bulk.RowValues; +import com.microsoft.bingads.v13.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v13.internal.bulk.StringExtensions; +import com.microsoft.bingads.v13.internal.bulk.StringTable; +import com.microsoft.bingads.v13.internal.bulk.entities.SingleRecordBulkEntity; + +/** + * Represents a Data Exclusion. + *

+ *

+ * This class exposes the {@link #setDataExclusion} and {@link #getDataExclusion} that can be used to read and write + * fields of the Asset Group record in a bulk file. + *

+ *

+ *

+ * For more information, see Data Exclusion at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkDataExclusion extends SingleRecordBulkEntity { + + private DataExclusion DataExclusion; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkDataExclusion c) { + return c.getDataExclusion().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setId(StringExtensions.nullOrLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DataExclusion, + new Function() { + @Override + public String apply(BulkDataExclusion c) { + return c.getDataExclusion().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Description, + new Function() { + @Override + public String apply(BulkDataExclusion c) { + return c.getDataExclusion().getDescription(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setDescription(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.StartDate, + new Function() { + @Override + public String apply(BulkDataExclusion t) { + if (t.getDataExclusion().getStartDate() == null) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + return format.format(t.getDataExclusion().getStartDate().getTime()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setStartDate(StringExtensions.parseOptional(v, new Function() { + @Override + public Calendar apply(String t) { + Calendar c = new GregorianCalendar(); + try { + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + c.setTime(format.parse(t)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + + return c; + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EndDate, + new Function() { + @Override + public String apply(BulkDataExclusion t) { + if (t.getDataExclusion().getEndDate() == null) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + return format.format(t.getDataExclusion().getEndDate().getTime()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setEndDate(StringExtensions.parseOptional(v, new Function() { + @Override + public Calendar apply(String t) { + Calendar c = new GregorianCalendar(); + try { + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + c.setTime(format.parse(t)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + + return c; + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CampaignType, + new Function() { + @Override + public String apply(BulkDataExclusion c) { + return StringExtensions.toCampaignTypeListBulkString(",", c.getDataExclusion().getCampaignTypeFilter()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setCampaignTypeFilter(StringExtensions.parseCampaignTypeList(v, ",")); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DeviceType, + new Function() { + @Override + public String apply(BulkDataExclusion t) { + return t.getDataExclusion().getDeviceTypeFilter() != null ? t.getDataExclusion().getDeviceTypeFilter().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setDeviceTypeFilter(StringExtensions.parseOptional(v, new Function() { + @Override + public DeviceType apply(String value) { + return DeviceType.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CampaignAssociations, + new Function() { + @Override + public String apply(BulkDataExclusion c) { + return StringExtensions.toCampaignAssociationsBulkString(";", c.getDataExclusion().getCampaignAssociations()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDataExclusion c) { + c.getDataExclusion().setCampaignAssociations(StringExtensions.parseCampaignAssociations(v, ";")); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setDataExclusion(new DataExclusion()); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getDataExclusion(), "DataExclusion"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the DataExclusion Data Object of the Campaign Management Service. + *

+ *

+ * A subset of DataExclusion properties are available in the Ad Group record. + * For more information, see Ad Group at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ */ + public DataExclusion getDataExclusion() { + return DataExclusion; + } + + /** + * Sets the DataExclusion Data Object of the Campaign Management Service. + *

+ *

+ * A subset of DataExclusion properties are available in the Ad Group record. + * For more information, see Ad Group at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ */ + public void setDataExclusion(DataExclusion DataExclusion) { + this.DataExclusion = DataExclusion; + } +} diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkSeasonalityAdjustment.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkSeasonalityAdjustment.java new file mode 100644 index 0000000000..e461bc39db --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/BulkSeasonalityAdjustment.java @@ -0,0 +1,287 @@ +package com.microsoft.bingads.v13.bulk.entities; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collection; +import java.util.Collections; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.TimeZone; + +import com.microsoft.bingads.internal.UncheckedParseException; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.bulk.BulkFileReader; +import com.microsoft.bingads.v13.bulk.BulkFileWriter; +import com.microsoft.bingads.v13.bulk.BulkOperation; +import com.microsoft.bingads.v13.bulk.BulkServiceManager; +import com.microsoft.bingads.v13.campaignmanagement.SeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v13.campaignmanagement.BudgetLimitType; +import com.microsoft.bingads.v13.campaignmanagement.CallToAction; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.DeviceType; +import com.microsoft.bingads.v13.internal.bulk.BulkMapping; +import com.microsoft.bingads.v13.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v13.internal.bulk.RowValues; +import com.microsoft.bingads.v13.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v13.internal.bulk.StringExtensions; +import com.microsoft.bingads.v13.internal.bulk.StringTable; +import com.microsoft.bingads.v13.internal.bulk.entities.SingleRecordBulkEntity; + +/** + * Represents a Seasonality Adjustment. + *

+ *

+ * This class exposes the {@link #setSeasonalityAdjustment} and {@link #getSeasonalityAdjustment} that can be used to read and write + * fields of the Asset Group record in a bulk file. + *

+ *

+ *

+ * For more information, see Seasonality Adjustment at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkSeasonalityAdjustment extends SingleRecordBulkEntity { + + private SeasonalityAdjustment SeasonalityAdjustment; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setId(StringExtensions.nullOrLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SeasonalityAdjustment, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Description, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getDescription(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setDescription(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.StartDate, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment t) { + if (t.getSeasonalityAdjustment().getStartDate() == null) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + return format.format(t.getSeasonalityAdjustment().getStartDate().getTime()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setStartDate(StringExtensions.parseOptional(v, new Function() { + @Override + public Calendar apply(String t) { + Calendar c = new GregorianCalendar(); + try { + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + c.setTime(format.parse(t)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + + return c; + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EndDate, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment t) { + if (t.getSeasonalityAdjustment().getEndDate() == null) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + return format.format(t.getSeasonalityAdjustment().getEndDate().getTime()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setEndDate(StringExtensions.parseOptional(v, new Function() { + @Override + public Calendar apply(String t) { + Calendar c = new GregorianCalendar(); + try { + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + c.setTime(format.parse(t)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + + return c; + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CampaignType, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment c) { + return StringExtensions.toCampaignTypeListBulkString(",", c.getSeasonalityAdjustment().getCampaignTypeFilter()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setCampaignTypeFilter(StringExtensions.parseCampaignTypeList(v, ",")); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DeviceType, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment t) { + return t.getSeasonalityAdjustment().getDeviceTypeFilter() != null ? t.getSeasonalityAdjustment().getDeviceTypeFilter().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setDeviceTypeFilter(StringExtensions.parseOptional(v, new Function() { + @Override + public DeviceType apply(String value) { + return DeviceType.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AdjustmentValue, + new Function() { + @Override + public Double apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getAdjustmentPercentage(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setAdjustmentPercentage(StringExtensions.nullOrDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CampaignAssociations, + new Function() { + @Override + public String apply(BulkSeasonalityAdjustment c) { + return StringExtensions.toCampaignAssociationsBulkString(";", c.getSeasonalityAdjustment().getCampaignAssociations()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSeasonalityAdjustment c) { + c.getSeasonalityAdjustment().setCampaignAssociations(StringExtensions.parseCampaignAssociations(v, ";")); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setSeasonalityAdjustment(new SeasonalityAdjustment()); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getSeasonalityAdjustment(), "SeasonalityAdjustment"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the SeasonalityAdjustment Data Object of the Campaign Management Service. + *

+ *

+ * A subset of SeasonalityAdjustment properties are available in the Ad Group record. + * For more information, see Ad Group at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ */ + public SeasonalityAdjustment getSeasonalityAdjustment() { + return SeasonalityAdjustment; + } + + /** + * Sets the SeasonalityAdjustment Data Object of the Campaign Management Service. + *

+ *

+ * A subset of SeasonalityAdjustment properties are available in the Ad Group record. + * For more information, see Ad Group at + * https://go.microsoft.com/fwlink/?linkid=846127. + *

+ */ + public void setSeasonalityAdjustment(SeasonalityAdjustment SeasonalityAdjustment) { + this.SeasonalityAdjustment = SeasonalityAdjustment; + } +} diff --git a/src/main/java/com/microsoft/bingads/v13/bulk/entities/StaticBulkObjectFactory.java b/src/main/java/com/microsoft/bingads/v13/bulk/entities/StaticBulkObjectFactory.java index 6294332901..3bdf3746f9 100644 --- a/src/main/java/com/microsoft/bingads/v13/bulk/entities/StaticBulkObjectFactory.java +++ b/src/main/java/com/microsoft/bingads/v13/bulk/entities/StaticBulkObjectFactory.java @@ -1144,6 +1144,38 @@ public SingleRecordBulkEntity create() { } })); + m.put(StringTable.SeasonalityAdjustment, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkSeasonalityAdjustment(); + } + })); + + m.put(StringTable.DataExclusion, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkDataExclusion(); + } + })); + m.put("Account Negative Keyword List", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAccountNegativeKeywordList(); + } + })); + m.put("Account Negative Keyword List Association", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAccountNegativeKeywordListAssociation(); + } + })); + m.put("Account Shared Negative Keyword", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAccountSharedNegativeKeyword(); + } + })); + INDIVIDUAL_ENTITY_MAP = Collections.unmodifiableMap(m); Map> addl = new HashMap>(); diff --git a/src/main/java/com/microsoft/bingads/v13/internal/bulk/CsvHeaders.java b/src/main/java/com/microsoft/bingads/v13/internal/bulk/CsvHeaders.java index cc23d499b4..2db18ab072 100644 --- a/src/main/java/com/microsoft/bingads/v13/internal/bulk/CsvHeaders.java +++ b/src/main/java/com/microsoft/bingads/v13/internal/bulk/CsvHeaders.java @@ -332,6 +332,7 @@ public class CsvHeaders { StringTable.BidStrategyTargetImpressionShare, StringTable.BidStrategyCommissionRate, StringTable.BidStrategyPercentMaxCpc, + StringTable.BidStrategyTargetCostPerSale, // Native Preference StringTable.AdFormatPreference, @@ -477,10 +478,21 @@ public class CsvHeaders { StringTable.CampaignNegativeWebpage, StringTable.AssetGroupListingGroup, StringTable.AudienceGroupAssetGroupAssociation, + StringTable.AutoGeneratedTextOptOut, + StringTable.AutoGeneratedImageOptOut, // MultiChannel Campaign StringTable.DestinationChannel, StringTable.IsMultiChannelCampaign, + + // Seasonality Adjustment + StringTable.SeasonalityAdjustment, + StringTable.DataExclusion, + StringTable.DeviceType, + StringTable.CampaignAssociations, + + // DNV Serving on MSAN + StringTable.ShouldServeOnMSAN, }; private static final Map columnIndexMap = initializeMap(); diff --git a/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringExtensions.java b/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringExtensions.java index d3fd773622..afe87f5508 100644 --- a/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringExtensions.java +++ b/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringExtensions.java @@ -35,6 +35,7 @@ import com.microsoft.bingads.v13.campaignmanagement.AgeRange; import com.microsoft.bingads.v13.campaignmanagement.ArrayOfArrayOfKeyValuePairOfstringstring; import com.microsoft.bingads.v13.campaignmanagement.ArrayOfAssetLink; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCampaignAssociation; import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCombinationRule; import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCustomParameter; import com.microsoft.bingads.v13.campaignmanagement.ArrayOfDayTime; @@ -49,6 +50,7 @@ import com.microsoft.bingads.v13.campaignmanagement.Bid; import com.microsoft.bingads.v13.campaignmanagement.BiddingScheme; import com.microsoft.bingads.v13.campaignmanagement.BusinessGeoCodeStatus; +import com.microsoft.bingads.v13.campaignmanagement.CampaignAssociation; import com.microsoft.bingads.v13.campaignmanagement.CampaignType; import com.microsoft.bingads.v13.campaignmanagement.CombinationRule; import com.microsoft.bingads.v13.campaignmanagement.CommissionBiddingScheme; @@ -1176,6 +1178,86 @@ public static List parseGenderTypeList(String v) return enumList; } + + public static String toCampaignTypeListBulkString(String separator, Collection types) + { + if (types == null || types.size() == 0) { + return null; + } + + StringBuilder result = new StringBuilder(""); + + int length = types.size(); + for (CampaignType type : types) { + result.append(type.value() + separator); + } + + result.setLength(result.length() - separator.length()); + return result.toString(); + } + + public static Collection parseCampaignTypeList(String v, String separator) + { + if (StringExtensions.isNullOrEmpty(v)) + return null; + + Collection enumList = new ArrayList(); + + String[] enums = v.split(separator); + + for(String e : enums) { + if (!StringExtensions.isNullOrEmpty(e) && ! separator.equals(e)) + enumList.add(CampaignType.fromValue(e.trim())); + } + + return enumList; + } + + public static String toCampaignAssociationsBulkString(String separator, ArrayOfCampaignAssociation associations) + { + if (associations == null) + { + return null; + } + + List list = associations.getCampaignAssociations(); + + if (list == null || list.size() == 0) { + return null; + } + + StringBuilder result = new StringBuilder(""); + + int length = list.size(); + for (Integer i = 0; i < length - 1; i++) { + + result.append(list.get(i).getCampaignId().toString() + separator); + } + + result.append(list.get(length - 1).getCampaignId().toString()); + return result.toString(); + } + + public static ArrayOfCampaignAssociation parseCampaignAssociations(String v, String separator) + { + if (StringExtensions.isNullOrEmpty(v)) + return null; + + List list = new ArrayList(); + + String[] enums = v.split(separator); + + for(String e : enums) { + if (!StringExtensions.isNullOrEmpty(e) && ! separator.equals(e)) + { + CampaignAssociation association = new CampaignAssociation(); + association.setCampaignId(Long.valueOf(e.trim())); + list.add(association); + } + } + + return new ArrayOfCampaignAssociation(list); + } public static List parseIdList(String v) { if (StringExtensions.isNullOrEmpty(v)) @@ -1987,16 +2069,16 @@ private static class ImageAssetLinkContract public String subType; // The Asset CropHeight - public int cropHeight; + public Integer cropHeight; // The Asset CropWidth - public int cropWidth; + public Integer cropWidth; // The Asset CropX - public int cropX; + public Integer cropX; // The Asset CropY - public int cropY; + public Integer cropY; // The AssetLink PinnedField public String pinnedField; @@ -2011,10 +2093,10 @@ private static class ImageAssetLinkContract public String name; // The Asset Target Width - public int targetWidth; + public Integer targetWidth; // The Asset Target Height - public int targetHeight; + public Integer targetHeight; } @JsonIgnoreProperties(ignoreUnknown = true) @@ -2399,6 +2481,12 @@ else if (biddingScheme instanceof TargetCpaBiddingScheme) { Double commissionRate = commissionBiddingScheme.getCommissionRate(); values.put(StringTable.BidStrategyCommissionRate, StringExtensions.toBulkString(commissionRate)); } + } else if (biddingScheme instanceof CostPerSaleBiddingScheme) { + CostPerSaleBiddingScheme costPerSaleBiddingScheme = (CostPerSaleBiddingScheme) biddingScheme; + if (costPerSaleBiddingScheme != null) { + Double costPerSale = costPerSaleBiddingScheme.getTargetCostPerSale(); + values.put(StringTable.BidStrategyTargetCostPerSale, StringExtensions.toBulkString(costPerSale)); + } } } catch (Exception e) { @@ -2422,6 +2510,7 @@ public static BiddingScheme readBiddingScheme(RowValues values) { String targetImpressionShareRowValue = values.get(StringTable.BidStrategyTargetImpressionShare); String commissionRate= values.get(StringTable.BidStrategyCommissionRate); String maxPercentCpc = values.get(StringTable.BidStrategyPercentMaxCpc); + String costPerSale = values.get(StringTable.BidStrategyTargetCostPerSale); Bid maxCpcValue = StringExtensions.parseBid(maxCpcRowValue); @@ -2430,6 +2519,7 @@ public static BiddingScheme readBiddingScheme(RowValues values) { Double targetImpressionShareValue = StringExtensions.nullOrDouble(targetImpressionShareRowValue); Double commissionRateValue = StringExtensions.nullOrDouble(commissionRate); Double maxPercentCpcValue = StringExtensions.nullOrDouble(maxPercentCpc); + Double costPerSaleValue = StringExtensions.nullOrDouble(costPerSale); if (biddingScheme instanceof MaxClicksBiddingScheme) { ((MaxClicksBiddingScheme)biddingScheme).setMaxCpc(maxCpcValue); @@ -2454,6 +2544,8 @@ else if (biddingScheme instanceof MaxConversionsBiddingScheme) { ((CommissionBiddingScheme)biddingScheme).setCommissionRate(commissionRateValue); } else if (biddingScheme instanceof PercentCpcBiddingScheme) { ((PercentCpcBiddingScheme)biddingScheme).setMaxPercentCpc(maxPercentCpcValue); + } else if (biddingScheme instanceof CostPerSaleBiddingScheme) { + ((CostPerSaleBiddingScheme)biddingScheme).setTargetCostPerSale(costPerSaleValue); } return biddingScheme; diff --git a/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringTable.java b/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringTable.java index d6a82517f9..d6eeb91da7 100644 --- a/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringTable.java +++ b/src/main/java/com/microsoft/bingads/v13/internal/bulk/StringTable.java @@ -496,6 +496,7 @@ public class StringTable { public static final String BidStrategyTargetImpressionShare = "Bid Strategy TargetImpressionShare"; public static final String BidStrategyPercentMaxCpc = "Bid Strategy PercentMaxCpc"; public static final String BidStrategyCommissionRate = "Bid Strategy CommissionRate"; + public static final String BidStrategyTargetCostPerSale = "Bid Strategy TargetCostPerSale"; // Audience public static final String RemarketingList = "Remarketing List"; @@ -749,11 +750,22 @@ public class StringTable { public static final String AgeRanges = "Age Ranges"; public static final String GenderTypes = "Gender Types"; public static final String ParentListingGroupId = "Parent Listing Group Id"; + public static final String AutoGeneratedTextOptOut = "Auto Generated Text Assets Opt Out"; + public static final String AutoGeneratedImageOptOut = "Auto Generated Image Assets Opt Out"; // MultiChannel Campaign public static final String DestinationChannel = "Destination Channel"; public static final String IsMultiChannelCampaign = "Is Multi Channel Campaign"; + // Seasonality Adjustment + public static final String SeasonalityAdjustment = "Seasonality Adjustment"; + public static final String DataExclusion = "Data Exclusion"; + public static final String DeviceType = "Device Type"; + public static final String CampaignAssociations = "Campaign Associations"; + + // DNV Serving on MSAN + public static final String ShouldServeOnMSAN = "Should Serve On MSAN"; + static { Map m = new HashMap(); diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignReadTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignReadTests.java index 7b36abdf6c..3c54e6d238 100644 --- a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignReadTests.java +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignReadTests.java @@ -36,10 +36,12 @@ BulkCampaignReadFromRowValuesBidStrategyNameTest.class, BulkCampaignReadFromRowValuesDynamicFeedSettingsTest.class, BulkCampaignReadFromRowValuesMultiMediaAdBidAdjustmentTest.class, - BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest.class, + //BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest.class, BulkCampaignReadFromRowValuesPerformanceMaxSettingsTest.class, BulkCampaignReadFromRowValuesDestinationChannelTest.class, BulkCampaignReadFromRowValuesIsMultiChannelCampaignTest.class, + BulkCampaignReadFromRowValuesAutoGeneratedImageOptOutTest.class, + BulkCampaignReadFromRowValuesAutoGeneratedTextOptOutTest.class, }) public class BulkCampaignReadTests { diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignWriteTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignWriteTests.java index ca12f94f1c..18ed7e2355 100644 --- a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignWriteTests.java +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/BulkCampaignWriteTests.java @@ -17,7 +17,7 @@ BulkCampaignWriteToRowValuesTimeZoneTest.class, BulkCampaignWriteToRowValuesAudienceAdsBidAdjustmentTest.class, BulkCampaignWriteToRowValuesCampaignTypeTest.class, - BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest.class, + //BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest.class, BulkCampaignWriteToRowValuesDisclaimerAdsEnabledDisclaimerSettingTest.class, BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest.class, BulkCampaignWriteToRowValuesStoreIdOtherSettingTest.class, @@ -43,6 +43,11 @@ BulkCampaignWriteToRowValuesPerformanceMaxSettingTest.class, BulkCampaignWriteToRowValuesIsMultiChannelCampaignTest.class, BulkCampaignWriteToRowValuesDestinationChannelTest.class, + BulkCampaignWriteToRowValuesAutoGeneratedImageOptOutTest.class, + BulkCampaignWriteToRowValuesAutoGeneratedTextOptOutTest.class, + BulkCampaignWriteToRowValuesImageOptOutPerformanceMaxSettingTest.class, + BulkCampaignWriteToRowValuesPageFeedIdsPerformanceMaxSettingTest.class, + BulkCampaignWriteToRowValuesTextOptOutPerformanceMaxSettingTest.class, }) public class BulkCampaignWriteTests { diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedImageOptOutTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedImageOptOutTest.java new file mode 100644 index 0000000000..f17b1b234a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedImageOptOutTest.java @@ -0,0 +1,67 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; +import com.microsoft.bingads.v13.campaignmanagement.Setting; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesAutoGeneratedImageOptOutTest extends BulkCampaignTest { + + @Parameterized.Parameter(value = 1) + public String autoGeneratedImageOptOut; + + @Parameterized.Parameter(value = 2) + public List expectedResult; + + @Parameterized.Parameters + public static Collection data() { + PerformanceMaxSetting setting1 = new PerformanceMaxSetting(); + setting1.setAutoGeneratedImageOptOut(true); + setting1.setType("PerformanceMaxSetting"); + + return Arrays.asList( + new Object[][]{ + {"PerformanceMax", "true", Collections.singletonList(setting1)}, + } + ); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Campaign Type", datum); + values.put("Auto Generated Image Assets Opt Out", autoGeneratedImageOptOut); + + testReadProperty( + values, + this.expectedResult, + new Function>() { + @Override + public List apply(BulkCampaign c) { + if (c.getCampaign().getSettings() == null) { + return null; + } + + return c.getCampaign().getSettings().getSettings().stream().filter(s -> s.getClass() == PerformanceMaxSetting.class).collect(Collectors.toList()); + } + }, + new ObjectComparer>() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedTextOptOutTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedTextOptOutTest.java new file mode 100644 index 0000000000..0abfd6fc98 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAutoGeneratedTextOptOutTest.java @@ -0,0 +1,67 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; +import com.microsoft.bingads.v13.campaignmanagement.Setting; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesAutoGeneratedTextOptOutTest extends BulkCampaignTest { + + @Parameterized.Parameter(value = 1) + public String autoGeneratedTextOptOut; + + @Parameterized.Parameter(value = 2) + public List expectedResult; + + @Parameterized.Parameters + public static Collection data() { + PerformanceMaxSetting setting1 = new PerformanceMaxSetting(); + setting1.setAutoGeneratedTextOptOut(true); + setting1.setType("PerformanceMaxSetting"); + + return Arrays.asList( + new Object[][]{ + {"PerformanceMax", "true", Collections.singletonList(setting1)}, + } + ); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Campaign Type", datum); + values.put("Auto Generated Text Assets Opt Out", autoGeneratedTextOptOut); + + testReadProperty( + values, + this.expectedResult, + new Function>() { + @Override + public List apply(BulkCampaign c) { + if (c.getCampaign().getSettings() == null) { + return null; + } + + return c.getCampaign().getSettings().getSettings().stream().filter(s -> s.getClass() == PerformanceMaxSetting.class).collect(Collectors.toList()); + } + }, + new ObjectComparer>() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceMaxSettingsTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceMaxSettingsTest.java index 2a2a9bcb51..79a65ada37 100644 --- a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceMaxSettingsTest.java +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceMaxSettingsTest.java @@ -16,6 +16,7 @@ import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOflong; import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; import com.microsoft.bingads.v13.campaignmanagement.Setting; @@ -26,21 +27,41 @@ public class BulkCampaignReadFromRowValuesPerformanceMaxSettingsTest extends Bul public String finalUrlExpansionOptOut; @Parameterized.Parameter(value = 2) + public String autoGeneratedTextOptOut; + + @Parameterized.Parameter(value = 3) + public String autoGeneratedImageOptOut; + + @Parameterized.Parameter(value = 4) + public String pageFeedIds; + + @Parameterized.Parameter(value = 5) public List expectedResult; @Parameterized.Parameters public static Collection data() { PerformanceMaxSetting setting1 = new PerformanceMaxSetting(); + ArrayOflong pids = new ArrayOflong(); + pids.getLongs().addAll(Arrays.asList(1L, 2L, 3L, 4L)); setting1.setFinalUrlExpansionOptOut(true); + setting1.setAutoGeneratedTextOptOut(true); + setting1.setAutoGeneratedImageOptOut(false); + setting1.setPageFeedIds(pids); setting1.setType("PerformanceMaxSetting"); + PerformanceMaxSetting setting2 = new PerformanceMaxSetting(); + ArrayOflong pids2 = new ArrayOflong(); + pids2.getLongs().addAll(Arrays.asList(101L, 102L, 103L, 104L)); setting2.setFinalUrlExpansionOptOut(false); + setting2.setAutoGeneratedTextOptOut(false); + setting2.setAutoGeneratedImageOptOut(false); + setting2.setPageFeedIds(pids2); setting2.setType("PerformanceMaxSetting"); return Arrays.asList( new Object[][]{ - {"PerformanceMax", "true", Collections.singletonList(setting1)}, - {"PerformanceMax", "false", Collections.singletonList(setting2)}, + {"PerformanceMax", "true", "true", "false", "1;2;3;4", Collections.singletonList(setting1)}, + {"PerformanceMax", "false", "false", "false", "101;102;103;104", Collections.singletonList(setting2)}, } ); } @@ -51,6 +72,9 @@ public void testRead() { values.put("Campaign Type", datum); values.put("Url Expansion Opt Out", finalUrlExpansionOptOut); + values.put("Auto Generated Text Assets Opt Out", autoGeneratedTextOptOut); + values.put("Auto Generated Image Assets Opt Out", autoGeneratedImageOptOut); + values.put("Page Feed Ids", pageFeedIds); testReadProperty( values, diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest.java deleted file mode 100644 index 9f0ceef7b5..0000000000 --- a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest.java +++ /dev/null @@ -1,85 +0,0 @@ - -package com.microsoft.bingads.v13.api.test.entities.campaign.read; - -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; - -import com.microsoft.bingads.internal.functionalinterfaces.Function; -import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; -import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; -import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; -import com.microsoft.bingads.v13.campaignmanagement.ArrayOfArrayOfKeyValuePairOfstringstring; -import com.microsoft.bingads.v13.campaignmanagement.ArrayOfKeyValuePairOfstringstring; -import com.microsoft.bingads.v13.campaignmanagement.KeyValuePairOfstringstring; -import com.microsoft.bingads.v13.campaignmanagement.VerifiedTrackingSetting; -import com.microsoft.bingads.v13.campaignmanagement.Setting; - -@RunWith(Parameterized.class) -public class BulkCampaignReadFromRowValuesVerifiedTrackingSettingsTest extends BulkCampaignTest { - - @Parameterized.Parameter(value = 1) - public String details; - - @Parameterized.Parameter(value = 2) - public List expectedResult; - - @Parameterized.Parameters - public static Collection data() { - VerifiedTrackingSetting setting1 = new VerifiedTrackingSetting(); - ArrayOfKeyValuePairOfstringstring verifiedTrackingDatas = new ArrayOfKeyValuePairOfstringstring(); - KeyValuePairOfstringstring verifiedTrackingData = new KeyValuePairOfstringstring(); - verifiedTrackingData.setKey("vendorName"); - verifiedTrackingData.setValue("IAS"); - verifiedTrackingDatas.getKeyValuePairOfstringstrings().add(verifiedTrackingData); - verifiedTrackingData = new KeyValuePairOfstringstring(); - verifiedTrackingData.setKey("advertiserEntityId"); - verifiedTrackingData.setValue("CampaignId_1"); - verifiedTrackingDatas.getKeyValuePairOfstringstrings().add(verifiedTrackingData); - verifiedTrackingData = new KeyValuePairOfstringstring(); - verifiedTrackingData.setKey("publisherEntityId"); - verifiedTrackingData.setValue("PlacementId_1"); - verifiedTrackingDatas.getKeyValuePairOfstringstrings().add(verifiedTrackingData); - ArrayOfArrayOfKeyValuePairOfstringstring verifiedTrackingDatasCollection = new ArrayOfArrayOfKeyValuePairOfstringstring(); - verifiedTrackingDatasCollection.getArrayOfKeyValuePairOfstringstrings().add(verifiedTrackingDatas); - setting1.setDetails(verifiedTrackingDatasCollection); - setting1.setType("VerifiedTrackingSetting"); - return Arrays.asList( - new Object[][]{ - {"Audience", "[[{\"key\":\"vendorName\",\"value\":\"IAS\"},{\"key\":\"advertiserEntityId\",\"value\":\"CampaignId_1\"},{\"key\":\"publisherEntityId\",\"value\":\"PlacementId_1\"}]]", Collections.singletonList(setting1)}, - } - ); - } - - @Test - public void testRead() { - Map values = new HashMap(); - - values.put("Campaign Type", datum); - values.put("Verified Tracking Setting", details); - - testReadProperty( - values, - this.expectedResult, - new Function>() { - @Override - public List apply(BulkCampaign c) { - if (c.getCampaign().getSettings() == null) { - return null; - } - - return c.getCampaign().getSettings().getSettings().stream().filter(s -> s.getClass() == VerifiedTrackingSetting.class).collect(Collectors.toList()); - } - }, - new ObjectComparer>() - ); - } -} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedImageOptOutTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedImageOptOutTest.java new file mode 100644 index 0000000000..0fc617c8eb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedImageOptOutTest.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.stream.Collectors; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOflong; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; + +public class BulkCampaignWriteToRowValuesAutoGeneratedImageOptOutTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Boolean propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"false", false}, + {"true", true}, + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Auto Generated Image Assets Opt Out", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Boolean v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.PERFORMANCE_MAX)); + + c.getCampaign().setSettings(new ArrayOfSetting()); + + PerformanceMaxSetting setting = new PerformanceMaxSetting(); + + setting.setAutoGeneratedImageOptOut(v); + + c.getCampaign().getSettings().getSettings().add(setting); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedTextOptOutTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedTextOptOutTest.java new file mode 100644 index 0000000000..4d1dbfcc81 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAutoGeneratedTextOptOutTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; + +public class BulkCampaignWriteToRowValuesAutoGeneratedTextOptOutTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Boolean propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"false", false}, + {"true", true}, + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Auto Generated Text Assets Opt Out", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Boolean v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.PERFORMANCE_MAX)); + + c.getCampaign().setSettings(new ArrayOfSetting()); + + PerformanceMaxSetting setting = new PerformanceMaxSetting(); + + setting.setAutoGeneratedTextOptOut(v); + + c.getCampaign().getSettings().getSettings().add(setting); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest.java deleted file mode 100644 index 13bd24eb8e..0000000000 --- a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest.java +++ /dev/null @@ -1,63 +0,0 @@ - -package com.microsoft.bingads.v13.api.test.entities.campaign.write; - -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; - -import org.junit.Test; -import org.junit.runners.Parameterized; - -import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; -import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; -import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; -import com.microsoft.bingads.v13.campaignmanagement.ArrayOfArrayOfKeyValuePairOfstringstring; -import com.microsoft.bingads.v13.campaignmanagement.ArrayOfKeyValuePairOfstringstring; -import com.microsoft.bingads.v13.campaignmanagement.ArrayOfSetting; -import com.microsoft.bingads.v13.campaignmanagement.CampaignType; -import com.microsoft.bingads.v13.campaignmanagement.KeyValuePairOfstringstring; -import com.microsoft.bingads.v13.campaignmanagement.VerifiedTrackingSetting; - -public class BulkCampaignWriteToRowValuesDetailsVerifiedTrackingSettingTest extends BulkCampaignTest { - @Parameterized.Parameter(value = 1) - public ArrayOfArrayOfKeyValuePairOfstringstring propertyValue; - - @Parameterized.Parameters - public static Collection data() { - ArrayOfKeyValuePairOfstringstring verifiedTrackingDatas = new ArrayOfKeyValuePairOfstringstring(); - KeyValuePairOfstringstring verifiedTrackingData = new KeyValuePairOfstringstring(); - verifiedTrackingData.setKey("vendorName"); - verifiedTrackingData.setValue("IAS"); - verifiedTrackingDatas.getKeyValuePairOfstringstrings().add(verifiedTrackingData); - verifiedTrackingData = new KeyValuePairOfstringstring(); - verifiedTrackingData.setKey("advertiserEntityId"); - verifiedTrackingData.setValue("CampaignId_1"); - verifiedTrackingDatas.getKeyValuePairOfstringstrings().add(verifiedTrackingData); - verifiedTrackingData = new KeyValuePairOfstringstring(); - verifiedTrackingData.setKey("publisherEntityId"); - verifiedTrackingData.setValue("PlacementId_1"); - verifiedTrackingDatas.getKeyValuePairOfstringstrings().add(verifiedTrackingData); - ArrayOfArrayOfKeyValuePairOfstringstring verifiedTrackingDatasCollection = new ArrayOfArrayOfKeyValuePairOfstringstring(); - verifiedTrackingDatasCollection.getArrayOfKeyValuePairOfstringstrings().add(verifiedTrackingDatas); - return Arrays.asList( - new Object[][]{ - {"[[{\"key\":\"vendorName\",\"value\":\"IAS\"},{\"key\":\"advertiserEntityId\",\"value\":\"CampaignId_1\"},{\"key\":\"publisherEntityId\",\"value\":\"PlacementId_1\"}]]", - verifiedTrackingDatasCollection} - } - ); - } - - @Test - public void testWrite() { - testWriteProperty("Verified Tracking Setting", this.datum, this.propertyValue, new BiConsumer() { - @Override - public void accept(BulkCampaign c, ArrayOfArrayOfKeyValuePairOfstringstring v) { - c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.DYNAMIC_SEARCH_ADS)); - c.getCampaign().setSettings(new ArrayOfSetting()); - VerifiedTrackingSetting setting = new VerifiedTrackingSetting(); - setting.setDetails(v); - c.getCampaign().getSettings().getSettings().add(setting); - } - }); - } -} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesImageOptOutPerformanceMaxSettingTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesImageOptOutPerformanceMaxSettingTest.java new file mode 100644 index 0000000000..50ca0d0f2f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesImageOptOutPerformanceMaxSettingTest.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; + +public class BulkCampaignWriteToRowValuesImageOptOutPerformanceMaxSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Boolean propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"false", false}, + {"true", true}, + {null, null} + }); + } + + @Test + public void testWrite() { + testWriteProperty("Auto Generated Image Assets Opt Out", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, Boolean v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.PERFORMANCE_MAX)); + c.getCampaign().setSettings(new ArrayOfSetting()); + PerformanceMaxSetting setting = new PerformanceMaxSetting(); + setting.setAutoGeneratedImageOptOut(v); + c.getCampaign().getSettings().getSettings().add(setting); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPageFeedIdsPerformanceMaxSettingTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPageFeedIdsPerformanceMaxSettingTest.java new file mode 100644 index 0000000000..8c936e9b8e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPageFeedIdsPerformanceMaxSettingTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOflong; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; + +public class BulkCampaignWriteToRowValuesPageFeedIdsPerformanceMaxSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public ArrayOflong propertyValue; + + @Parameterized.Parameters + public static Collection data() { + ArrayOflong pids = new ArrayOflong(); + pids.getLongs().addAll(Arrays.asList(1L, 2L, 3L, 4L)); + return Arrays.asList(new Object[][]{ + {"1;2;3;4", pids}, + {null, null} + }); + } + + @Test + public void testWrite() { + testWriteProperty("Page Feed Ids", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, ArrayOflong v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.PERFORMANCE_MAX)); + c.getCampaign().setSettings(new ArrayOfSetting()); + PerformanceMaxSetting setting = new PerformanceMaxSetting(); + setting.setPageFeedIds(v); + c.getCampaign().getSettings().getSettings().add(setting); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTextOptOutPerformanceMaxSettingTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTextOptOutPerformanceMaxSettingTest.java new file mode 100644 index 0000000000..a6bd43c8b5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTextOptOutPerformanceMaxSettingTest.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v13.api.test.entities.campaign.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v13.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; +import com.microsoft.bingads.v13.campaignmanagement.PerformanceMaxSetting; + +public class BulkCampaignWriteToRowValuesTextOptOutPerformanceMaxSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Boolean propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"false", false}, + {"true", true}, + {null, null} + }); + } + + @Test + public void testWrite() { + testWriteProperty("Auto Generated Text Assets Opt Out", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, Boolean v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.PERFORMANCE_MAX)); + c.getCampaign().setSettings(new ArrayOfSetting()); + PerformanceMaxSetting setting = new PerformanceMaxSetting(); + setting.setAutoGeneratedTextOptOut(v); + c.getCampaign().getSettings().getSettings().add(setting); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTest.java new file mode 100644 index 0000000000..7160973fba --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTest.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion; + +import java.util.Map; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v13.api.test.entities.EqualityComparerWithDescription; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.DataExclusion; + +public abstract class BulkDataExclusionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkDataExclusion entity) { + DataExclusion DataExclusion = new DataExclusion(); + DataExclusion.setId(100L); + entity.setDataExclusion(DataExclusion); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }); + } + + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }, comparer); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }); + } + + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }, comparer); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTests.java new file mode 100644 index 0000000000..4d0e245782 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/BulkDataExclusionTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.read.BulkDataExclusionReadTests; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.write.BulkDataExclusionWriteTests; + +@RunWith(Suite.class) +@SuiteClasses({BulkDataExclusionReadTests.class, BulkDataExclusionWriteTests.class}) +public class BulkDataExclusionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignAssociationsTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignAssociationsTest.java new file mode 100644 index 0000000000..3d6b63cfaa --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignAssociationsTest.java @@ -0,0 +1,59 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.AgeRange; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCampaignAssociation; +import com.microsoft.bingads.v13.campaignmanagement.CampaignAssociation; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesCampaignAssociationsTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public ArrayOfCampaignAssociation expectedResult; + + @Parameters + public static Collection data() { + List list = new ArrayList(); + CampaignAssociation association1 = new CampaignAssociation(); + CampaignAssociation association2 = new CampaignAssociation(); + association1.setCampaignId((long)123); + association2.setCampaignId((long)456); + list.add(association1); + list.add(association2); + return Arrays.asList(new Object[][] { + {"", null}, + {"123;456", new ArrayOfCampaignAssociation(list)}, + }); + } + + @Test + public void testRead() { + this. testReadProperty("Campaign Associations", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfCampaignAssociation apply(BulkDataExclusion c) { + return c.getDataExclusion().getCampaignAssociations(); + } + + }, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignTypeTest.java new file mode 100644 index 0000000000..b260bec4b9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesCampaignTypeTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesCampaignTypeTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Collection expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + {"Search,Shopping", Arrays.asList(new CampaignType[] { CampaignType.SEARCH, CampaignType.SHOPPING })}, + }); + } + + @Test + public void testRead() { + this.>testReadProperty("Campaign Type", this.datum, this.expectedResult, new Function>() { + @Override + public Collection apply(BulkDataExclusion c) { + return c.getDataExclusion().getCampaignTypeFilter(); + } + + }, new Supplier() { + @Override + public BulkDataExclusion get() { + return new BulkDataExclusion(); + } + }, new ObjectComparer>()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDataExclusionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDataExclusionTest.java new file mode 100644 index 0000000000..c36786e68f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDataExclusionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesDataExclusionTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"DataExclusion Name", "DataExclusion Name"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Data Exclusion", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkDataExclusion c) { + return c.getDataExclusion().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDescriptionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDescriptionTest.java new file mode 100644 index 0000000000..d927162fcd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDescriptionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesDescriptionTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Description", "Description"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Description", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkDataExclusion c) { + return c.getDataExclusion().getDescription(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDeviceTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDeviceTypeTest.java new file mode 100644 index 0000000000..092e51060d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesDeviceTypeTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.DeviceType; + +public class BulkDataExclusionReadFromRowValuesDeviceTypeTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public DeviceType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Computers", DeviceType.COMPUTERS}, + {"Tablets", DeviceType.TABLETS}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Device Type", this.datum, this.expectedResult, new Function() { + @Override + public DeviceType apply(BulkDataExclusion c) { + return c.getDataExclusion().getDeviceTypeFilter(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesEndDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesEndDateTest.java new file mode 100644 index 0000000000..0163e770e3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesEndDateTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesEndDateTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Calendar expectedResult; + + @Parameters + public static Collection data() throws ParseException { + String timeString = "2014/02/01 12:24:30"; + + GregorianCalendar expetedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expetedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expetedSyncTime}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("End Date", this.datum, this.expectedResult, new Function() { + @Override + public Calendar apply(BulkDataExclusion c) { + return c.getDataExclusion().getEndDate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..b194500332 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesIdTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkDataExclusion c) { + return c.getDataExclusion().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesStartDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesStartDateTest.java new file mode 100644 index 0000000000..848cb3eaca --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadFromRowValuesStartDateTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionReadFromRowValuesStartDateTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Calendar expectedResult; + + @Parameters + public static Collection data() throws ParseException { + String timeString = "2014/02/01 12:24:30"; + + GregorianCalendar expetedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expetedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expetedSyncTime}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Start Date", this.datum, this.expectedResult, new Function() { + @Override + public Calendar apply(BulkDataExclusion c) { + return c.getDataExclusion().getStartDate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadTests.java new file mode 100644 index 0000000000..7a8fd78f31 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/read/BulkDataExclusionReadTests.java @@ -0,0 +1,20 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkDataExclusionReadFromRowValuesCampaignAssociationsTest.class, + BulkDataExclusionReadFromRowValuesCampaignTypeTest.class, + BulkDataExclusionReadFromRowValuesDescriptionTest.class, + BulkDataExclusionReadFromRowValuesDeviceTypeTest.class, + BulkDataExclusionReadFromRowValuesEndDateTest.class, + BulkDataExclusionReadFromRowValuesIdTest.class, + BulkDataExclusionReadFromRowValuesDataExclusionTest.class, + BulkDataExclusionReadFromRowValuesStartDateTest.class, +}) +public class BulkDataExclusionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteTests.java new file mode 100644 index 0000000000..3ffb75ba83 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteTests.java @@ -0,0 +1,20 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkDataExclusionWriteToRowValuesCampaignAssociationsTest.class, + BulkDataExclusionWriteToRowValuesCampaignTypeTest.class, + BulkDataExclusionWriteToRowValuesDescriptionTest.class, + BulkDataExclusionWriteToRowValuesDeviceTypeTest.class, + BulkDataExclusionWriteToRowValuesEndDateTest.class, + BulkDataExclusionWriteToRowValuesIdTest.class, + BulkDataExclusionWriteToRowValuesDataExclusionTest.class, + BulkDataExclusionWriteToRowValuesStartDateTest.class, +}) +public class BulkDataExclusionWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignAssociationsTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignAssociationsTest.java new file mode 100644 index 0000000000..4e03557ec8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignAssociationsTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCampaignAssociation; +import com.microsoft.bingads.v13.campaignmanagement.CampaignAssociation; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesCampaignAssociationsTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public ArrayOfCampaignAssociation expectedResult; + + @Parameters + public static Collection data() { + List list = new ArrayList(); + CampaignAssociation association1 = new CampaignAssociation(); + CampaignAssociation association2 = new CampaignAssociation(); + association1.setCampaignId((long)123); + association2.setCampaignId((long)456); + list.add(association1); + list.add(association2); + return Arrays.asList(new Object[][] { + {null, null}, + {"123;456", new ArrayOfCampaignAssociation(list)}, + }); + } + + @Test + public void testWrite() { + this. testWriteProperty("Campaign Associations", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, ArrayOfCampaignAssociation v) { + c.getDataExclusion().setCampaignAssociations(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignTypeTest.java new file mode 100644 index 0000000000..6072232b28 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesCampaignTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesCampaignTypeTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Collection expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {null, null}, + {"Search,Shopping", Arrays.asList(new CampaignType[] { CampaignType.SEARCH, CampaignType.SHOPPING })}, + }); + } + + @Test + public void testWrite() { + this.> testWriteProperty("Campaign Type", this.datum, this.expectedResult, new BiConsumer>() { + @Override + public void accept(BulkDataExclusion c, Collection v) { + c.getDataExclusion().setCampaignTypeFilter(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDataExclusionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDataExclusionTest.java new file mode 100644 index 0000000000..a5b0cbab0d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDataExclusionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesDataExclusionTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"DataExclusionName", "DataExclusionName"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Data Exclusion", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, String v) { + c.getDataExclusion().setName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDescriptionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDescriptionTest.java new file mode 100644 index 0000000000..cafeff9f97 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDescriptionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesDescriptionTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Description", "Description"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Description", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, String v) { + c.getDataExclusion().setDescription(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDeviceTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDeviceTypeTest.java new file mode 100644 index 0000000000..45242393ae --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesDeviceTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; +import com.microsoft.bingads.v13.campaignmanagement.DeviceType; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesDeviceTypeTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public DeviceType propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Computers", DeviceType.COMPUTERS}, + {"Tablets", DeviceType.TABLETS}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Device Type", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, DeviceType v) { + c.getDataExclusion().setDeviceTypeFilter(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesEndDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesEndDateTest.java new file mode 100644 index 0000000000..f17996b2e8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesEndDateTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesEndDateTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Calendar propertyValue; + + @Parameters + public static Collection data() throws ParseException { + + String timeString = "2017/07/06 22:34:30"; + + GregorianCalendar expectedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expectedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expectedSyncTime}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("End Date", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, Calendar v) { + c.getDataExclusion().setEndDate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..a57f0d0813 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesIdTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesIdTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, Long v) { + c.getDataExclusion().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesStartDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesStartDateTest.java new file mode 100644 index 0000000000..477bc010f4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/data_exclusion/write/BulkDataExclusionWriteToRowValuesStartDateTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v13.api.test.entities.data_exclusion.write; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.data_exclusion.BulkDataExclusionTest; +import com.microsoft.bingads.v13.bulk.entities.BulkDataExclusion; + +@RunWith(Parameterized.class) +public class BulkDataExclusionWriteToRowValuesStartDateTest extends BulkDataExclusionTest { + + @Parameter(value = 1) + public Calendar propertyValue; + + @Parameters + public static Collection data() throws ParseException { + + String timeString = "2017/07/06 22:34:30"; + + GregorianCalendar expectedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expectedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expectedSyncTime}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Start Date", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkDataExclusion c, Calendar v) { + c.getDataExclusion().setStartDate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTest.java new file mode 100644 index 0000000000..8e18e39558 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list; + +import java.util.Map; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; +import com.microsoft.bingads.v13.campaignmanagement.AccountNegativeKeywordList; + +public abstract class BulkAccountNegativeKeywordListTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAccountNegativeKeywordList entity) { + entity.setAccountNegativeKeywordList(new AccountNegativeKeywordList());; + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAccountNegativeKeywordList get() { + return new BulkAccountNegativeKeywordList(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAccountNegativeKeywordList get() { + return new BulkAccountNegativeKeywordList(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAccountNegativeKeywordList get() { + return new BulkAccountNegativeKeywordList(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTests.java new file mode 100644 index 0000000000..b01207cf90 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/BulkAccountNegativeKeywordListTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.read.BulkAccountNegativeKeywordListReadTests; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.write.BulkAccountNegativeKeywordListWriteTests; + +@RunWith(Suite.class) +@SuiteClasses({BulkAccountNegativeKeywordListReadTests.class, BulkAccountNegativeKeywordListWriteTests.class}) +public class BulkAccountNegativeKeywordListTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..eb525cc6f2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.BulkAccountNegativeKeywordListTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; + +@RunWith(Parameterized.class) +public class BulkAccountNegativeKeywordListReadFromRowValuesIdTest extends BulkAccountNegativeKeywordListTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkAccountNegativeKeywordList c) { + return c.getAccountNegativeKeywordList().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesNameTest.java new file mode 100644 index 0000000000..15cb236261 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesNameTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.BulkAccountNegativeKeywordListTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; + +public class BulkAccountNegativeKeywordListReadFromRowValuesNameTest extends BulkAccountNegativeKeywordListTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test Keyword 1", "Test Keyword 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Name", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAccountNegativeKeywordList c) { + return c.getAccountNegativeKeywordList().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..592053204b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadFromRowValuesStatusTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.BulkAccountNegativeKeywordListTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; +import com.microsoft.bingads.v13.bulk.entities.Status; + +@RunWith(Parameterized.class) +public class BulkAccountNegativeKeywordListReadFromRowValuesStatusTest extends BulkAccountNegativeKeywordListTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Status expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", Status.ACTIVE}, + {"Deleted", Status.DELETED}, + {null, null}, + {"", null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public Status apply(BulkAccountNegativeKeywordList c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadTests.java new file mode 100644 index 0000000000..85e6c8520e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/read/BulkAccountNegativeKeywordListReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAccountNegativeKeywordListReadFromRowValuesNameTest.class, + BulkAccountNegativeKeywordListReadFromRowValuesIdTest.class, + BulkAccountNegativeKeywordListReadFromRowValuesStatusTest.class}) +public class BulkAccountNegativeKeywordListReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteTests.java new file mode 100644 index 0000000000..fd65f8bc5c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAccountNegativeKeywordListWriteToRowValuesNameTest.class, + BulkAccountNegativeKeywordListWriteToRowValuesIdTest.class, + BulkAccountNegativeKeywordListWriteToRowValuesStatusTest.class}) +public class BulkAccountNegativeKeywordListWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..416689e67c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.BulkAccountNegativeKeywordListTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; + +@RunWith(Parameterized.class) +public class BulkAccountNegativeKeywordListWriteToRowValuesIdTest extends BulkAccountNegativeKeywordListTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccountNegativeKeywordList c, Long v) { + c.getAccountNegativeKeywordList().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesNameTest.java new file mode 100644 index 0000000000..03927ad4b7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesNameTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.BulkAccountNegativeKeywordListTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; + +@RunWith(Parameterized.class) +public class BulkAccountNegativeKeywordListWriteToRowValuesNameTest extends BulkAccountNegativeKeywordListTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test Keyword 1", "Test Keyword 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Name", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccountNegativeKeywordList c, String v) { + c.getAccountNegativeKeywordList().setName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..b62b0dbbac --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list/write/BulkAccountNegativeKeywordListWriteToRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list.BulkAccountNegativeKeywordListTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordList; +import com.microsoft.bingads.v13.bulk.entities.Status; + +@RunWith(Parameterized.class) +public class BulkAccountNegativeKeywordListWriteToRowValuesStatusTest extends BulkAccountNegativeKeywordListTest { + + @Parameter(value = 1) + public Status propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", Status.ACTIVE}, + {"Deleted", Status.DELETED}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccountNegativeKeywordList c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTest.java new file mode 100644 index 0000000000..0fc35b9aaf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association; + +import java.util.Map; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; +import com.microsoft.bingads.v13.campaignmanagement.SharedEntityAssociation; + +public abstract class BulkAccountNKListAssociationTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAccountNegativeKeywordListAssociation entity) { + entity.setSharedEntityAssociation(new SharedEntityAssociation()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAccountNegativeKeywordListAssociation get() { + return new BulkAccountNegativeKeywordListAssociation(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAccountNegativeKeywordListAssociation get() { + return new BulkAccountNegativeKeywordListAssociation(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAccountNegativeKeywordListAssociation get() { + return new BulkAccountNegativeKeywordListAssociation(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTests.java new file mode 100644 index 0000000000..4fe7343526 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/BulkAccountNKListAssociationTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.read.BulkAccountNKListAssociationReadTests; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.write.BulkAccountNKListAssociationWriteTests; + +@RunWith(Suite.class) +@SuiteClasses({BulkAccountNKListAssociationReadTests.class, BulkAccountNKListAssociationWriteTests.class}) +public class BulkAccountNKListAssociationTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesEntityIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesEntityIdTest.java new file mode 100644 index 0000000000..701a706e71 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesEntityIdTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.BulkAccountNKListAssociationTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; + +public class BulkAccountNKListAssociationReadFromRowValuesEntityIdTest extends BulkAccountNKListAssociationTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L},}); + } + + @Test + public void testRead() { + this.testReadProperty("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkAccountNegativeKeywordListAssociation c) { + return c.getSharedEntityAssociation().getEntityId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesSharedEntityIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesSharedEntityIdTest.java new file mode 100644 index 0000000000..aafd29e9a2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesSharedEntityIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.BulkAccountNKListAssociationTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; + +@RunWith(Parameterized.class) +public class BulkAccountNKListAssociationReadFromRowValuesSharedEntityIdTest extends BulkAccountNKListAssociationTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkAccountNegativeKeywordListAssociation c) { + return c.getSharedEntityAssociation().getSharedEntityId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..9633637f16 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadFromRowValuesStatusTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.BulkAccountNKListAssociationTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; +import com.microsoft.bingads.v13.bulk.entities.Status; + +@RunWith(Parameterized.class) +public class BulkAccountNKListAssociationReadFromRowValuesStatusTest extends BulkAccountNKListAssociationTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Status expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", Status.ACTIVE}, + {"Deleted", Status.DELETED}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public Status apply(BulkAccountNegativeKeywordListAssociation c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadTests.java new file mode 100644 index 0000000000..72e19fd5ea --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/read/BulkAccountNKListAssociationReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAccountNKListAssociationReadFromRowValuesEntityIdTest.class, + BulkAccountNKListAssociationReadFromRowValuesSharedEntityIdTest.class, + BulkAccountNKListAssociationReadFromRowValuesStatusTest.class}) +public class BulkAccountNKListAssociationReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteTests.java new file mode 100644 index 0000000000..8bf9daf40b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAccountNKListAssociationWriteToRowValuesEntityIdTest.class, + BulkAccountNKListAssociationWriteToRowValuesSharedEntityIdTest.class, + BulkAccountNKListAssociationWriteToRowValuesStatusTest.class}) +public class BulkAccountNKListAssociationWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesEntityIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesEntityIdTest.java new file mode 100644 index 0000000000..9acf71ac98 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesEntityIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.BulkAccountNKListAssociationTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; + +@RunWith(Parameterized.class) +public class BulkAccountNKListAssociationWriteToRowValuesEntityIdTest extends BulkAccountNKListAssociationTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccountNegativeKeywordListAssociation c, Long v) { + c.getSharedEntityAssociation().setEntityId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesSharedEntityIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesSharedEntityIdTest.java new file mode 100644 index 0000000000..3cfd8c1bcd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesSharedEntityIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.BulkAccountNKListAssociationTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; + +@RunWith(Parameterized.class) +public class BulkAccountNKListAssociationWriteToRowValuesSharedEntityIdTest extends BulkAccountNKListAssociationTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccountNegativeKeywordListAssociation c, Long v) { + c.getSharedEntityAssociation().setSharedEntityId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..e3a3fe0f4e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/negative_keywords/account_negative_keyword_list_association/write/BulkAccountNKListAssociationWriteToRowValuesStatusTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.negative_keywords.account_negative_keyword_list_association.BulkAccountNKListAssociationTest; +import com.microsoft.bingads.v13.bulk.entities.BulkAccountNegativeKeywordListAssociation; +import com.microsoft.bingads.v13.bulk.entities.Status; + +@RunWith(Parameterized.class) +public class BulkAccountNKListAssociationWriteToRowValuesStatusTest extends BulkAccountNKListAssociationTest { + + @Parameter(value = 1) + public Status propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", Status.ACTIVE}, + {"Deleted", Status.DELETED}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccountNegativeKeywordListAssociation c, + Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTest.java new file mode 100644 index 0000000000..5fadc04e5d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTest.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment; + +import java.util.Map; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v13.api.test.entities.EqualityComparerWithDescription; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.SeasonalityAdjustment; + +public abstract class BulkSeasonalityAdjustmentTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkSeasonalityAdjustment entity) { + SeasonalityAdjustment SeasonalityAdjustment = new SeasonalityAdjustment(); + SeasonalityAdjustment.setId(100L); + entity.setSeasonalityAdjustment(SeasonalityAdjustment); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }); + } + + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }, comparer); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }); + } + + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }, comparer); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTests.java new file mode 100644 index 0000000000..aedf2931c7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/BulkSeasonalityAdjustmentTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read.BulkSeasonalityAdjustmentReadTests; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write.BulkSeasonalityAdjustmentWriteTests; + +@RunWith(Suite.class) +@SuiteClasses({BulkSeasonalityAdjustmentReadTests.class, BulkSeasonalityAdjustmentWriteTests.class}) +public class BulkSeasonalityAdjustmentTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValueAdjustmentValueTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValueAdjustmentValueTest.java new file mode 100644 index 0000000000..a8c7364530 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValueAdjustmentValueTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValueAdjustmentValueTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123.123", 123.123}, + {"9223.372036", 9223.372036}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Adjustment Value", this.datum, this.expectedResult, new Function() { + @Override + public Double apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getAdjustmentPercentage(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignAssociationsTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignAssociationsTest.java new file mode 100644 index 0000000000..d967bfadcd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignAssociationsTest.java @@ -0,0 +1,59 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.AgeRange; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCampaignAssociation; +import com.microsoft.bingads.v13.campaignmanagement.CampaignAssociation; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesCampaignAssociationsTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public ArrayOfCampaignAssociation expectedResult; + + @Parameters + public static Collection data() { + List list = new ArrayList(); + CampaignAssociation association1 = new CampaignAssociation(); + CampaignAssociation association2 = new CampaignAssociation(); + association1.setCampaignId((long)123); + association2.setCampaignId((long)456); + list.add(association1); + list.add(association2); + return Arrays.asList(new Object[][] { + {"", null}, + {"123;456", new ArrayOfCampaignAssociation(list)}, + }); + } + + @Test + public void testRead() { + this. testReadProperty("Campaign Associations", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfCampaignAssociation apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getCampaignAssociations(); + } + + }, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignTypeTest.java new file mode 100644 index 0000000000..3a0dc11808 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesCampaignTypeTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v13.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesCampaignTypeTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Collection expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + {"Search,Shopping", Arrays.asList(new CampaignType[] { CampaignType.SEARCH, CampaignType.SHOPPING })}, + }); + } + + @Test + public void testRead() { + this.>testReadProperty("Campaign Type", this.datum, this.expectedResult, new Function>() { + @Override + public Collection apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getCampaignTypeFilter(); + } + + }, new Supplier() { + @Override + public BulkSeasonalityAdjustment get() { + return new BulkSeasonalityAdjustment(); + } + }, new ObjectComparer>()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDescriptionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDescriptionTest.java new file mode 100644 index 0000000000..aa37022649 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDescriptionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesDescriptionTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Description", "Description"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Description", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getDescription(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDeviceTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDeviceTypeTest.java new file mode 100644 index 0000000000..1dffe0603f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesDeviceTypeTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.DeviceType; + +public class BulkSeasonalityAdjustmentReadFromRowValuesDeviceTypeTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public DeviceType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Computers", DeviceType.COMPUTERS}, + {"Tablets", DeviceType.TABLETS}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Device Type", this.datum, this.expectedResult, new Function() { + @Override + public DeviceType apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getDeviceTypeFilter(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesEndDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesEndDateTest.java new file mode 100644 index 0000000000..4a7e263909 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesEndDateTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesEndDateTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Calendar expectedResult; + + @Parameters + public static Collection data() throws ParseException { + String timeString = "2014/02/01 12:24:30"; + + GregorianCalendar expetedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expetedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expetedSyncTime}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("End Date", this.datum, this.expectedResult, new Function() { + @Override + public Calendar apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getEndDate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..807315865f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesIdTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesSeasonalityAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesSeasonalityAdjustmentTest.java new file mode 100644 index 0000000000..dabded1e54 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesSeasonalityAdjustmentTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesSeasonalityAdjustmentTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"SeasonalityAdjustment Name", "SeasonalityAdjustment Name"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Seasonality Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesStartDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesStartDateTest.java new file mode 100644 index 0000000000..1cb9467dc2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadFromRowValuesStartDateTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentReadFromRowValuesStartDateTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Calendar expectedResult; + + @Parameters + public static Collection data() throws ParseException { + String timeString = "2014/02/01 12:24:30"; + + GregorianCalendar expetedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expetedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expetedSyncTime}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Start Date", this.datum, this.expectedResult, new Function() { + @Override + public Calendar apply(BulkSeasonalityAdjustment c) { + return c.getSeasonalityAdjustment().getStartDate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadTests.java new file mode 100644 index 0000000000..71254ded08 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/read/BulkSeasonalityAdjustmentReadTests.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkSeasonalityAdjustmentReadFromRowValueAdjustmentValueTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesCampaignAssociationsTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesCampaignTypeTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesDescriptionTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesDeviceTypeTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesEndDateTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesIdTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesSeasonalityAdjustmentTest.class, + BulkSeasonalityAdjustmentReadFromRowValuesStartDateTest.class, +}) +public class BulkSeasonalityAdjustmentReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteTests.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteTests.java new file mode 100644 index 0000000000..f77c5c3a16 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteTests.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkSeasonalityAdjustmentWriteToRowValueAdjustmentValueTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesCampaignAssociationsTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesCampaignTypeTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesDescriptionTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesDeviceTypeTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesEndDateTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesIdTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesSeasonalityAdjustmentTest.class, + BulkSeasonalityAdjustmentWriteToRowValuesStartDateTest.class, +}) +public class BulkSeasonalityAdjustmentWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValueAdjustmentValueTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValueAdjustmentValueTest.java new file mode 100644 index 0000000000..e87707641a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValueAdjustmentValueTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValueAdjustmentValueTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123.123", 123.123}, + {"0.0", 0.0}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testWriteProperty("Adjustment Value", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, Double v) { + c.getSeasonalityAdjustment().setAdjustmentPercentage(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignAssociationsTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignAssociationsTest.java new file mode 100644 index 0000000000..5135a332c9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignAssociationsTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.ArrayOfCampaignAssociation; +import com.microsoft.bingads.v13.campaignmanagement.CampaignAssociation; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesCampaignAssociationsTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public ArrayOfCampaignAssociation expectedResult; + + @Parameters + public static Collection data() { + List list = new ArrayList(); + CampaignAssociation association1 = new CampaignAssociation(); + CampaignAssociation association2 = new CampaignAssociation(); + association1.setCampaignId((long)123); + association2.setCampaignId((long)456); + list.add(association1); + list.add(association2); + return Arrays.asList(new Object[][] { + {null, null}, + {"123;456", new ArrayOfCampaignAssociation(list)}, + }); + } + + @Test + public void testWrite() { + this. testWriteProperty("Campaign Associations", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, ArrayOfCampaignAssociation v) { + c.getSeasonalityAdjustment().setCampaignAssociations(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignTypeTest.java new file mode 100644 index 0000000000..a72a8906ef --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesCampaignTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.CampaignType; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesCampaignTypeTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Collection expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {null, null}, + {"Search,Shopping", Arrays.asList(new CampaignType[] { CampaignType.SEARCH, CampaignType.SHOPPING })}, + }); + } + + @Test + public void testWrite() { + this.> testWriteProperty("Campaign Type", this.datum, this.expectedResult, new BiConsumer>() { + @Override + public void accept(BulkSeasonalityAdjustment c, Collection v) { + c.getSeasonalityAdjustment().setCampaignTypeFilter(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDescriptionTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDescriptionTest.java new file mode 100644 index 0000000000..8a0994054f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDescriptionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesDescriptionTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Description", "Description"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Description", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, String v) { + c.getSeasonalityAdjustment().setDescription(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDeviceTypeTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDeviceTypeTest.java new file mode 100644 index 0000000000..f5916e46d2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesDeviceTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; +import com.microsoft.bingads.v13.campaignmanagement.DeviceType; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesDeviceTypeTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public DeviceType propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Computers", DeviceType.COMPUTERS}, + {"Tablets", DeviceType.TABLETS}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Device Type", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, DeviceType v) { + c.getSeasonalityAdjustment().setDeviceTypeFilter(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesEndDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesEndDateTest.java new file mode 100644 index 0000000000..d862a831d6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesEndDateTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesEndDateTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Calendar propertyValue; + + @Parameters + public static Collection data() throws ParseException { + + String timeString = "2017/07/06 22:34:30"; + + GregorianCalendar expectedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expectedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expectedSyncTime}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("End Date", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, Calendar v) { + c.getSeasonalityAdjustment().setEndDate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..928c3c8d91 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesIdTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesIdTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, Long v) { + c.getSeasonalityAdjustment().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesSeasonalityAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesSeasonalityAdjustmentTest.java new file mode 100644 index 0000000000..64dad449dd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesSeasonalityAdjustmentTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.util.Arrays; +import java.util.Collection; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesSeasonalityAdjustmentTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"SeasonalityAdjustmentName", "SeasonalityAdjustmentName"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Seasonality Adjustment", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, String v) { + c.getSeasonalityAdjustment().setName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesStartDateTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesStartDateTest.java new file mode 100644 index 0000000000..225ca09009 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/entities/seasonality_adjustment/write/BulkSeasonalityAdjustmentWriteToRowValuesStartDateTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.write; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.v13.api.test.entities.seasonality_adjustment.BulkSeasonalityAdjustmentTest; +import com.microsoft.bingads.v13.bulk.entities.BulkSeasonalityAdjustment; + +@RunWith(Parameterized.class) +public class BulkSeasonalityAdjustmentWriteToRowValuesStartDateTest extends BulkSeasonalityAdjustmentTest { + + @Parameter(value = 1) + public Calendar propertyValue; + + @Parameters + public static Collection data() throws ParseException { + + String timeString = "2017/07/06 22:34:30"; + + GregorianCalendar expectedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expectedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expectedSyncTime}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Start Date", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSeasonalityAdjustment c, Calendar v) { + c.getSeasonalityAdjustment().setStartDate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/operations/ApiServiceTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/operations/ApiServiceTest.java index 0022d44793..185a20fb39 100644 --- a/src/test/java/com/microsoft/bingads/v13/api/test/operations/ApiServiceTest.java +++ b/src/test/java/com/microsoft/bingads/v13/api/test/operations/ApiServiceTest.java @@ -1,6 +1,8 @@ package com.microsoft.bingads.v13.api.test.operations; +import static org.easymock.EasyMock.anyObject; import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.expectLastCall; import static org.easymock.EasyMock.replay; import java.net.URL; @@ -9,6 +11,7 @@ import jakarta.xml.ws.AsyncHandler; import jakarta.xml.ws.BindingProvider; import jakarta.xml.ws.Service; +import jakarta.xml.ws.handler.HandlerResolver; import org.easymock.EasyMockSupport; import org.junit.Test; @@ -99,6 +102,9 @@ private ServiceClient createApiService(AuthorizationData authoriza final ServiceFactory serviceFactory = createMock(ServiceFactory.class); expect(serviceFactory.createService(ITestService.class, ApiEnvironment.PRODUCTION)).andReturn(service); + + service.setHandlerResolver(anyObject(HandlerResolver.class)); + expectLastCall().andVoid(); expect(serviceFactory.createProxyFromService(service, ApiEnvironment.PRODUCTION, ITestService.class)).andReturn(proxy); diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java new file mode 100644 index 0000000000..8097736856 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java @@ -0,0 +1,25 @@ +package com.microsoft.bingads.v13.api.test.restfulapi; + +import java.util.Comparator; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.node.NumericNode; + + +public class NumericNodeComparator implements Comparator +{ + @Override + public int compare(JsonNode o1, JsonNode o2) + { + if (o1.equals(o2)){ + return 0; + } + if ((o1 instanceof NumericNode) && (o2 instanceof NumericNode)){ + Double d1 = ((NumericNode) o1).asDouble(); + Double d2 = ((NumericNode) o2).asDouble(); + if (d1.compareTo(d2) == 0) { + return 0; + } + } + return 1; + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java new file mode 100644 index 0000000000..c0e00c1b4a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java @@ -0,0 +1,114 @@ +package com.microsoft.bingads.v13.api.test.restfulapi; + +import static org.junit.Assert.assertEquals; + +import java.io.BufferedReader; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameters; + +import com.fasterxml.jackson.databind.JsonNode; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +@RunWith(Parameterized.class) +public class RestApiRequestTest extends RestApiTestBase { + private boolean testJson(String content) { + boolean res = false; + try + { + String payload = content.split("\\n")[0]; + String json = removeHeaders(payload); + String methodName = content.split("\\n")[1]; + + if (methodName.contains("GetFileImportUploadUrlRequest") || json.contains("LogoAdExtension")) { + return true; + } + + String json1 = removeNullProperties(json); + json1 = modifyDate(json1); + json1 = modifyFormat(json1); + String prefix = null; + for (int i = 0; i < namespacePrefixes.length; i++) { + if (!isClass(namespacePrefixes[i] + methodName)) { + continue; + } else { + prefix = namespacePrefixes[i]; + } + } + Object obj = AdaptorUtil.mapper.readValue(json, Class.forName(prefix + methodName)); + String json2 = AdaptorUtil.mapper.writeValueAsString(obj); + json2 = removeNullProperties(json2); + + JsonNode node1 = mapper.readTree(json1); + JsonNode node2 = mapper.readTree(json2); + NumericNodeComparator cmp = new NumericNodeComparator(); + res = node1.equals(cmp, node2); + if (!res) { + System.out.println(json1); + System.out.println(json2); + } + } + catch (Exception e) { + if ((e.toString().contains("No enum constant") && e.toString().contains("0"))) + { + res = true; + } else { + System.out.println(e.toString()); + } + } + + return res; + } + + @Parameters + public static Collection data() throws IOException { + ArrayList content = new ArrayList(); + String path = "./TestPayload/request.zip"; + ZipInputStream zis = new ZipInputStream(new FileInputStream(path)); + ZipEntry entry; + while ((entry = zis.getNextEntry()) != null) { + if (entry.getName().contains("txt")) { + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(zis)); + String lines = ""; + String line; + while ((line = bufferedReader.readLine()) != null) { + lines += line + "\n"; + } + content.add(lines); + } + } + + Object[][] objects = new Object[content.size()][2]; + + for (int i = 0; i < content.size(); i++) + { + objects[i][0] = content.get(i); + objects[i][1] = true; + } + return Arrays.asList(objects); + } + + private String input; + private boolean expected; + + public RestApiRequestTest(String input, boolean expected) { + this.input = input; + this.expected = expected; + } + + @Test + public void testJsonRequest() throws IOException { + InitMapper(); + assertEquals(testJson(input), expected); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java new file mode 100644 index 0000000000..395cf66657 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java @@ -0,0 +1,145 @@ +package com.microsoft.bingads.v13.api.test.restfulapi; + +import static org.junit.Assert.assertEquals; + +import java.io.BufferedReader; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameters; + +import com.fasterxml.jackson.databind.JsonNode; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; + +@RunWith(Parameterized.class) +public class RestApiResponseTest extends RestApiTestBase { + private boolean testJson(String content) { + boolean res = false; + boolean hasFault = false; + boolean hasError = false; + try + { + String payload = content.split("\\n")[0]; + String json = removeHeaders(payload); + String methodName = content.split("\\n")[1]; + + if (json.contains("$error-type") || json.contains("LogoAdExtension")) { + return true; + } + + String prefix = null; + for (int i = 0; i < namespacePrefixes.length; i++) { + if (!isClass(namespacePrefixes[i] + methodName)) { + continue; + } else { + prefix = namespacePrefixes[i]; + } + } + + for (int i = 0; i < faultTypes.length; i++) { + if (json.contains(faultTypes[i])) { + hasFault = true; + break; + } + } + + for (int i = 0; i < errorTypes.length; i++) { + if (json.contains(errorTypes[i])) { + hasError = true; + break; + } + } + + String json1 = removeNullProperties(json); + json1 = modifyDate(json1); + json1 = modifyFormat(json1); + Object obj; + if (hasFault) + { + json1 = removeTypeProperty(json1, true); + obj = AdaptorUtil.mapper.readValue(json, Class.forName(prefix + "ApplicationFault")); + } + else + { + obj = AdaptorUtil.mapper.readValue(json, Class.forName(prefix + methodName)); + } + + if (hasError) + { + json1 = removeTypeProperty(json1, false); + } + + String json2 = AdaptorUtil.mapper.writeValueAsString(obj); + json2 = removeNullProperties(json2); + json2 = modifyFormat(json2); + + JsonNode node1 = mapper.readTree(json1); + JsonNode node2 = mapper.readTree(json2); + NumericNodeComparator cmp = new NumericNodeComparator(); + res = node1.equals(cmp, node2); + if (!res) { + System.out.println(json1); + System.out.println(methodName); + System.out.println(json2); + } + } + catch (Exception e) { + System.out.println(content); + System.out.println(e.toString()); + } + + return res; + } + + + @Parameters + public static Collection data() throws IOException { + ArrayList content = new ArrayList(); + String path = "./TestPayload/response.zip"; + ZipInputStream zis = new ZipInputStream(new FileInputStream(path)); + ZipEntry entry; + while ((entry = zis.getNextEntry()) != null) { + if (entry.getName().contains("txt")) { + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(zis)); + String lines = ""; + String line; + while ((line = bufferedReader.readLine()) != null) { + lines += line + "\n"; + } + content.add(lines); + } + } + + Object[][] objects = new Object[content.size()][2]; + + for (int i = 0; i < content.size(); i++) + { + objects[i][0] = content.get(i); + objects[i][1] = true; + } + return Arrays.asList(objects); + } + + private String input; + private boolean expected; + + public RestApiResponseTest(String input, boolean expected) { + this.input = input; + this.expected = expected; + } + + @Test + public void testJsonResponse() { + InitMapper(); + assertEquals(testJson(input), expected); + } +} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java new file mode 100644 index 0000000000..f0c0968eee --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java @@ -0,0 +1,238 @@ +package com.microsoft.bingads.v13.api.test.restfulapi; + +import static org.junit.Assert.assertEquals; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.lang.reflect.Field; +import java.lang.reflect.ParameterizedType; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.databind.deser.std.NumberDeserializers.LongDeserializer; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.fasterxml.jackson.databind.node.ObjectNode; +import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; +import com.microsoft.bingads.internal.restful.adaptor.CalendarDeserializer; +import com.microsoft.bingads.internal.restful.adaptor.CalendarSerializer; +import com.microsoft.bingads.internal.restful.adaptor.LongTypeDeserializer; +import com.microsoft.bingads.internal.restful.adaptor.LongTypeSerializer; +import com.microsoft.bingads.v13.internal.bulk.StringExtensions; + +@RunWith(Parameterized.class) +public class RestApiTestBase { + protected ObjectMapper mapper = new ObjectMapper(); + + protected String[] faultTypes = {"ApplicationFault", "ApiFaultDetail", "EditorialApiFaultDetail", "AdApiFaultDetail"}; + + protected String[] errorTypes = {"BatchError", "BatchErrorCollection"}; + + protected String[] namespacePrefixes = {"com.microsoft.bingads.v13.bulk.", "com.microsoft.bingads.v13.campaignmanagement."}; + + protected boolean isClass(String className) { + try { + Class.forName(className); + return true; + } catch (ClassNotFoundException e) { + return false; + } + } + + protected void InitMapper() { + SimpleModule module = new SimpleModule(); + module.addDeserializer(Calendar.class, new CalendarDeserializer()); + module.addSerializer(Calendar.class, new CalendarSerializer()); + module.addDeserializer(Long.class, new LongTypeDeserializer()); + module.addSerializer(Long.class, new LongTypeSerializer()); + module.addDeserializer(long.class, new LongTypeDeserializer()); + module.addSerializer(long.class, new LongTypeSerializer()); + AdaptorUtil.mapper.setPropertyNamingStrategy(PropertyNamingStrategies.UPPER_CAMEL_CASE) + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true) + .setSerializationInclusion(Include.NON_NULL) + .registerModule(module); + + com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.arrayOfTypes.AddMixInForArrayOfTypes.AddMixInForArrayOfTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); + com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); + + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.arrayOfTypes.AddMixInForArrayOfTypes.AddMixInForArrayOfTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); + com.microsoft.bingads.internal.restful.adaptor.generated.bulk.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); + } + + protected String removeHeaders(String request) throws JsonProcessingException { + String res = ""; + try { + JsonNode node = mapper.readTree(request); + ((ObjectNode) node).remove("ApplicationToken"); + ((ObjectNode) node).remove("AuthenticationToken"); + ((ObjectNode) node).remove("CustomerAccountId"); + ((ObjectNode) node).remove("CustomerId"); + ((ObjectNode) node).remove("DeveloperToken"); + ((ObjectNode) node).remove("Password"); + ((ObjectNode) node).remove("UserName"); + ((ObjectNode) node).remove("OverrideConfigValuesFromTest"); + ((ObjectNode) node).remove("TrackingId"); + + if (node.get("AdGroups") != null) { + JsonNode adGroups = node.get("AdGroups"); + int i = 0; + while (adGroups.get(i) != null) { + + if (adGroups.get(i).get("StartDate") != null && !adGroups.get(i).get("StartDate").isNull()) ((ObjectNode) adGroups.get(i).get("StartDate")).remove("DateTime"); + if (adGroups.get(i).get("EndDate") != null && !adGroups.get(i).get("EndDate").isNull()) ((ObjectNode) adGroups.get(i).get("EndDate")).remove("DateTime"); + if (adGroups.get(i).get("ExactMatchBid") != null && !adGroups.get(i).get("ExactMatchBid").isNull()) ((ObjectNode) adGroups.get(i)).remove("ExactMatchBid"); + if (adGroups.get(i).get("PhraseMatchBid") != null && !adGroups.get(i).get("PhraseMatchBid").isNull()) ((ObjectNode) adGroups.get(i)).remove("PhraseMatchBid"); + if (adGroups.get(i).get("BroadMatchBid") != null && !adGroups.get(i).get("BroadMatchBid").isNull()) ((ObjectNode) adGroups.get(i)).remove("BroadMatchBid"); + i++; + } + } + + if (node.get("AdExtensions") != null) { + JsonNode adExtensions = node.get("AdExtensions"); + int i = 0; + while (adExtensions.get(i) != null) { + if (adExtensions.get(i).get("Scheduling") != null) { + if (adExtensions.get(i).get("Scheduling").get("StartDate") != null && !adExtensions.get(i).get("Scheduling").get("StartDate").isNull()) + ((ObjectNode) adExtensions.get(i).get("Scheduling").get("StartDate")).remove("DateTime"); + if (adExtensions.get(i).get("Scheduling").get("EndDate") != null && !adExtensions.get(i).get("Scheduling").get("EndDate").isNull()) + ((ObjectNode) adExtensions.get(i).get("Scheduling").get("EndDate")).remove("DateTime"); + } + i++; + } + } + + if (node.get("AssetGroups") != null) { + JsonNode assetGroups = node.get("AssetGroups"); + int i = 0; + while (assetGroups.get(i) != null) { + if (assetGroups.get(i).get("StartDate") != null && !assetGroups.get(i).get("StartDate").isNull()) + ((ObjectNode) assetGroups.get(i).get("StartDate")).remove("DateTime"); + if (assetGroups.get(i).get("EndDate") != null && !assetGroups.get(i).get("EndDate").isNull()) + ((ObjectNode) assetGroups.get(i).get("EndDate")).remove("DateTime"); + i++; + } + } + + if (node.get("CampaignCriterions") != null) { + JsonNode campaignCriterions = node.get("CampaignCriterions"); + int i = 0; + while (campaignCriterions.get(i) != null) { + if (campaignCriterions.get(i).get("Criterion") != null && campaignCriterions.get(i).get("Criterion").get("Conditions") != null) { + JsonNode conditions = campaignCriterions.get(i).get("Criterion").get("Conditions"); + int j = 0; + while (conditions.get(j) != null) { + if (conditions.get(j).get("Operator") != null) + ((ObjectNode) conditions.get(j)).remove("Operator"); + j++; + } + } + i++; + } + } + + res = mapper.writeValueAsString(node); + } + catch (JsonProcessingException e) { + e.printStackTrace(); + } + return res; + } + + protected String removeNullProperties(String request) throws JsonProcessingException { + JsonNode node = mapper.readTree(request); + JsonNode cleaned = removeNullNodes(node); + return mapper.writeValueAsString(cleaned); + } + + protected String removeTypeProperty(String response, boolean isFault) throws JsonProcessingException { + JsonNode node = mapper.readTree(response); + JsonNode cleaned = removeTypeNodes(node, isFault); + return mapper.writeValueAsString(cleaned); + } + + protected String modifyDate(String str) { + String pattern = "(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})(\\.\\d+)?(Z)?"; + String pattern2 = "(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})(\\.\\d+)?([+-]\\d{2}:\\d{2}|Z)?"; + Pattern r = Pattern.compile(pattern); + if (r.matcher(str).find()) { + return str.replaceAll(pattern, "$1"); + } + return str; + } + + protected String modifyFormat(String str) { + return str.replace("OSName", "Osname") + .replace("forwardCompatibilityMap", "ForwardCompatibilityMap") + .replace("BMCStores", "Bmcstores"); + } + + protected JsonNode removeNullNodes(JsonNode node) { + if (node.isArray()) { + for (int i = 0; i < node.size(); i++) { + removeNullNodes(node.get(i)); + } + } else if (node.isObject()) { + Iterator> iter = node.fields(); + while (iter.hasNext()) { + Map.Entry entry = iter.next(); + if (entry.getValue().isNull() || entry.getValue().toString().equals("\"\"")) { + iter.remove(); + } else { + removeNullNodes(entry.getValue()); + } + } + } + return node; + } + + protected JsonNode removeTypeNodes(JsonNode node, boolean isFault) { + String[] types = isFault ? faultTypes : errorTypes; + if (node.isArray()) { + for (int i = 0; i < node.size(); i++) { + removeTypeNodes(node.get(i), isFault); + } + } else if (node.isObject()) { + Iterator> iter = node.fields(); + while (iter.hasNext()) { + Map.Entry entry = iter.next(); + for (int i = 0; i < types.length; i++) { + if (entry.getKey().toString().equals("Type") && entry.getValue().toString().contains(types[i])) { + iter.remove(); + break; + } else { + removeTypeNodes(entry.getValue(), isFault); + } + } + } + } + return node; + } +} From 33509f895a13a6658a696ebddba76008924d0f2b Mon Sep 17 00:00:00 2001 From: Xinyu Wen Date: Mon, 25 Mar 2024 11:47:36 +0800 Subject: [PATCH 2/2] remove files --- .../restfulapi/NumericNodeComparator.java | 25 -- .../test/restfulapi/RestApiRequestTest.java | 114 --------- .../test/restfulapi/RestApiResponseTest.java | 145 ----------- .../api/test/restfulapi/RestApiTestBase.java | 238 ------------------ 4 files changed, 522 deletions(-) delete mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java delete mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java delete mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java delete mode 100644 src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java deleted file mode 100644 index 8097736856..0000000000 --- a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/NumericNodeComparator.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.microsoft.bingads.v13.api.test.restfulapi; - -import java.util.Comparator; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.node.NumericNode; - - -public class NumericNodeComparator implements Comparator -{ - @Override - public int compare(JsonNode o1, JsonNode o2) - { - if (o1.equals(o2)){ - return 0; - } - if ((o1 instanceof NumericNode) && (o2 instanceof NumericNode)){ - Double d1 = ((NumericNode) o1).asDouble(); - Double d2 = ((NumericNode) o2).asDouble(); - if (d1.compareTo(d2) == 0) { - return 0; - } - } - return 1; - } -} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java deleted file mode 100644 index c0e00c1b4a..0000000000 --- a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiRequestTest.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.microsoft.bingads.v13.api.test.restfulapi; - -import static org.junit.Assert.assertEquals; - -import java.io.BufferedReader; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStreamReader; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.junit.runners.Parameterized.Parameters; - -import com.fasterxml.jackson.databind.JsonNode; -import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; - -@RunWith(Parameterized.class) -public class RestApiRequestTest extends RestApiTestBase { - private boolean testJson(String content) { - boolean res = false; - try - { - String payload = content.split("\\n")[0]; - String json = removeHeaders(payload); - String methodName = content.split("\\n")[1]; - - if (methodName.contains("GetFileImportUploadUrlRequest") || json.contains("LogoAdExtension")) { - return true; - } - - String json1 = removeNullProperties(json); - json1 = modifyDate(json1); - json1 = modifyFormat(json1); - String prefix = null; - for (int i = 0; i < namespacePrefixes.length; i++) { - if (!isClass(namespacePrefixes[i] + methodName)) { - continue; - } else { - prefix = namespacePrefixes[i]; - } - } - Object obj = AdaptorUtil.mapper.readValue(json, Class.forName(prefix + methodName)); - String json2 = AdaptorUtil.mapper.writeValueAsString(obj); - json2 = removeNullProperties(json2); - - JsonNode node1 = mapper.readTree(json1); - JsonNode node2 = mapper.readTree(json2); - NumericNodeComparator cmp = new NumericNodeComparator(); - res = node1.equals(cmp, node2); - if (!res) { - System.out.println(json1); - System.out.println(json2); - } - } - catch (Exception e) { - if ((e.toString().contains("No enum constant") && e.toString().contains("0"))) - { - res = true; - } else { - System.out.println(e.toString()); - } - } - - return res; - } - - @Parameters - public static Collection data() throws IOException { - ArrayList content = new ArrayList(); - String path = "./TestPayload/request.zip"; - ZipInputStream zis = new ZipInputStream(new FileInputStream(path)); - ZipEntry entry; - while ((entry = zis.getNextEntry()) != null) { - if (entry.getName().contains("txt")) { - BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(zis)); - String lines = ""; - String line; - while ((line = bufferedReader.readLine()) != null) { - lines += line + "\n"; - } - content.add(lines); - } - } - - Object[][] objects = new Object[content.size()][2]; - - for (int i = 0; i < content.size(); i++) - { - objects[i][0] = content.get(i); - objects[i][1] = true; - } - return Arrays.asList(objects); - } - - private String input; - private boolean expected; - - public RestApiRequestTest(String input, boolean expected) { - this.input = input; - this.expected = expected; - } - - @Test - public void testJsonRequest() throws IOException { - InitMapper(); - assertEquals(testJson(input), expected); - } -} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java deleted file mode 100644 index 395cf66657..0000000000 --- a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiResponseTest.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.bingads.v13.api.test.restfulapi; - -import static org.junit.Assert.assertEquals; - -import java.io.BufferedReader; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStreamReader; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.junit.runners.Parameterized.Parameters; - -import com.fasterxml.jackson.databind.JsonNode; -import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; - -@RunWith(Parameterized.class) -public class RestApiResponseTest extends RestApiTestBase { - private boolean testJson(String content) { - boolean res = false; - boolean hasFault = false; - boolean hasError = false; - try - { - String payload = content.split("\\n")[0]; - String json = removeHeaders(payload); - String methodName = content.split("\\n")[1]; - - if (json.contains("$error-type") || json.contains("LogoAdExtension")) { - return true; - } - - String prefix = null; - for (int i = 0; i < namespacePrefixes.length; i++) { - if (!isClass(namespacePrefixes[i] + methodName)) { - continue; - } else { - prefix = namespacePrefixes[i]; - } - } - - for (int i = 0; i < faultTypes.length; i++) { - if (json.contains(faultTypes[i])) { - hasFault = true; - break; - } - } - - for (int i = 0; i < errorTypes.length; i++) { - if (json.contains(errorTypes[i])) { - hasError = true; - break; - } - } - - String json1 = removeNullProperties(json); - json1 = modifyDate(json1); - json1 = modifyFormat(json1); - Object obj; - if (hasFault) - { - json1 = removeTypeProperty(json1, true); - obj = AdaptorUtil.mapper.readValue(json, Class.forName(prefix + "ApplicationFault")); - } - else - { - obj = AdaptorUtil.mapper.readValue(json, Class.forName(prefix + methodName)); - } - - if (hasError) - { - json1 = removeTypeProperty(json1, false); - } - - String json2 = AdaptorUtil.mapper.writeValueAsString(obj); - json2 = removeNullProperties(json2); - json2 = modifyFormat(json2); - - JsonNode node1 = mapper.readTree(json1); - JsonNode node2 = mapper.readTree(json2); - NumericNodeComparator cmp = new NumericNodeComparator(); - res = node1.equals(cmp, node2); - if (!res) { - System.out.println(json1); - System.out.println(methodName); - System.out.println(json2); - } - } - catch (Exception e) { - System.out.println(content); - System.out.println(e.toString()); - } - - return res; - } - - - @Parameters - public static Collection data() throws IOException { - ArrayList content = new ArrayList(); - String path = "./TestPayload/response.zip"; - ZipInputStream zis = new ZipInputStream(new FileInputStream(path)); - ZipEntry entry; - while ((entry = zis.getNextEntry()) != null) { - if (entry.getName().contains("txt")) { - BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(zis)); - String lines = ""; - String line; - while ((line = bufferedReader.readLine()) != null) { - lines += line + "\n"; - } - content.add(lines); - } - } - - Object[][] objects = new Object[content.size()][2]; - - for (int i = 0; i < content.size(); i++) - { - objects[i][0] = content.get(i); - objects[i][1] = true; - } - return Arrays.asList(objects); - } - - private String input; - private boolean expected; - - public RestApiResponseTest(String input, boolean expected) { - this.input = input; - this.expected = expected; - } - - @Test - public void testJsonResponse() { - InitMapper(); - assertEquals(testJson(input), expected); - } -} diff --git a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java b/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java deleted file mode 100644 index f0c0968eee..0000000000 --- a/src/test/java/com/microsoft/bingads/v13/api/test/restfulapi/RestApiTestBase.java +++ /dev/null @@ -1,238 +0,0 @@ -package com.microsoft.bingads.v13.api.test.restfulapi; - -import static org.junit.Assert.assertEquals; - -import java.io.BufferedReader; -import java.io.File; -import java.io.FileReader; -import java.io.IOException; -import java.lang.reflect.Field; -import java.lang.reflect.ParameterizedType; -import java.text.SimpleDateFormat; -import java.util.Arrays; -import java.util.Calendar; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; -import org.junit.runners.Parameterized.Parameter; -import org.junit.runners.Parameterized.Parameters; - -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.PropertyNamingStrategies; -import com.fasterxml.jackson.databind.SerializationFeature; -import com.fasterxml.jackson.databind.deser.std.NumberDeserializers.LongDeserializer; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.databind.node.ObjectNode; -import com.microsoft.bingads.internal.restful.adaptor.AdaptorUtil; -import com.microsoft.bingads.internal.restful.adaptor.CalendarDeserializer; -import com.microsoft.bingads.internal.restful.adaptor.CalendarSerializer; -import com.microsoft.bingads.internal.restful.adaptor.LongTypeDeserializer; -import com.microsoft.bingads.internal.restful.adaptor.LongTypeSerializer; -import com.microsoft.bingads.v13.internal.bulk.StringExtensions; - -@RunWith(Parameterized.class) -public class RestApiTestBase { - protected ObjectMapper mapper = new ObjectMapper(); - - protected String[] faultTypes = {"ApplicationFault", "ApiFaultDetail", "EditorialApiFaultDetail", "AdApiFaultDetail"}; - - protected String[] errorTypes = {"BatchError", "BatchErrorCollection"}; - - protected String[] namespacePrefixes = {"com.microsoft.bingads.v13.bulk.", "com.microsoft.bingads.v13.campaignmanagement."}; - - protected boolean isClass(String className) { - try { - Class.forName(className); - return true; - } catch (ClassNotFoundException e) { - return false; - } - } - - protected void InitMapper() { - SimpleModule module = new SimpleModule(); - module.addDeserializer(Calendar.class, new CalendarDeserializer()); - module.addSerializer(Calendar.class, new CalendarSerializer()); - module.addDeserializer(Long.class, new LongTypeDeserializer()); - module.addSerializer(Long.class, new LongTypeSerializer()); - module.addDeserializer(long.class, new LongTypeDeserializer()); - module.addSerializer(long.class, new LongTypeSerializer()); - AdaptorUtil.mapper.setPropertyNamingStrategy(PropertyNamingStrategies.UPPER_CAMEL_CASE) - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true) - .setSerializationInclusion(Include.NON_NULL) - .registerModule(module); - - com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.arrayOfTypes.AddMixInForArrayOfTypes.AddMixInForArrayOfTypes(); - com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); - com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); - com.microsoft.bingads.internal.restful.adaptor.generated.campaignmanagement.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); - - com.microsoft.bingads.internal.restful.adaptor.generated.bulk.arrayOfTypes.AddMixInForArrayOfTypes.AddMixInForArrayOfTypes(); - com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.AddMixInForEnumTypes.AddMixInForEnumTypes(); - com.microsoft.bingads.internal.restful.adaptor.generated.bulk.enums.AddMixInForComplexTypesWithEnumList.AddMixInForComplexTypesWithEnumList(); - com.microsoft.bingads.internal.restful.adaptor.generated.bulk.polymorphicTypes.AddMixInForPolymorphicTypes.AddMixInForPolymorphicTypes(); - } - - protected String removeHeaders(String request) throws JsonProcessingException { - String res = ""; - try { - JsonNode node = mapper.readTree(request); - ((ObjectNode) node).remove("ApplicationToken"); - ((ObjectNode) node).remove("AuthenticationToken"); - ((ObjectNode) node).remove("CustomerAccountId"); - ((ObjectNode) node).remove("CustomerId"); - ((ObjectNode) node).remove("DeveloperToken"); - ((ObjectNode) node).remove("Password"); - ((ObjectNode) node).remove("UserName"); - ((ObjectNode) node).remove("OverrideConfigValuesFromTest"); - ((ObjectNode) node).remove("TrackingId"); - - if (node.get("AdGroups") != null) { - JsonNode adGroups = node.get("AdGroups"); - int i = 0; - while (adGroups.get(i) != null) { - - if (adGroups.get(i).get("StartDate") != null && !adGroups.get(i).get("StartDate").isNull()) ((ObjectNode) adGroups.get(i).get("StartDate")).remove("DateTime"); - if (adGroups.get(i).get("EndDate") != null && !adGroups.get(i).get("EndDate").isNull()) ((ObjectNode) adGroups.get(i).get("EndDate")).remove("DateTime"); - if (adGroups.get(i).get("ExactMatchBid") != null && !adGroups.get(i).get("ExactMatchBid").isNull()) ((ObjectNode) adGroups.get(i)).remove("ExactMatchBid"); - if (adGroups.get(i).get("PhraseMatchBid") != null && !adGroups.get(i).get("PhraseMatchBid").isNull()) ((ObjectNode) adGroups.get(i)).remove("PhraseMatchBid"); - if (adGroups.get(i).get("BroadMatchBid") != null && !adGroups.get(i).get("BroadMatchBid").isNull()) ((ObjectNode) adGroups.get(i)).remove("BroadMatchBid"); - i++; - } - } - - if (node.get("AdExtensions") != null) { - JsonNode adExtensions = node.get("AdExtensions"); - int i = 0; - while (adExtensions.get(i) != null) { - if (adExtensions.get(i).get("Scheduling") != null) { - if (adExtensions.get(i).get("Scheduling").get("StartDate") != null && !adExtensions.get(i).get("Scheduling").get("StartDate").isNull()) - ((ObjectNode) adExtensions.get(i).get("Scheduling").get("StartDate")).remove("DateTime"); - if (adExtensions.get(i).get("Scheduling").get("EndDate") != null && !adExtensions.get(i).get("Scheduling").get("EndDate").isNull()) - ((ObjectNode) adExtensions.get(i).get("Scheduling").get("EndDate")).remove("DateTime"); - } - i++; - } - } - - if (node.get("AssetGroups") != null) { - JsonNode assetGroups = node.get("AssetGroups"); - int i = 0; - while (assetGroups.get(i) != null) { - if (assetGroups.get(i).get("StartDate") != null && !assetGroups.get(i).get("StartDate").isNull()) - ((ObjectNode) assetGroups.get(i).get("StartDate")).remove("DateTime"); - if (assetGroups.get(i).get("EndDate") != null && !assetGroups.get(i).get("EndDate").isNull()) - ((ObjectNode) assetGroups.get(i).get("EndDate")).remove("DateTime"); - i++; - } - } - - if (node.get("CampaignCriterions") != null) { - JsonNode campaignCriterions = node.get("CampaignCriterions"); - int i = 0; - while (campaignCriterions.get(i) != null) { - if (campaignCriterions.get(i).get("Criterion") != null && campaignCriterions.get(i).get("Criterion").get("Conditions") != null) { - JsonNode conditions = campaignCriterions.get(i).get("Criterion").get("Conditions"); - int j = 0; - while (conditions.get(j) != null) { - if (conditions.get(j).get("Operator") != null) - ((ObjectNode) conditions.get(j)).remove("Operator"); - j++; - } - } - i++; - } - } - - res = mapper.writeValueAsString(node); - } - catch (JsonProcessingException e) { - e.printStackTrace(); - } - return res; - } - - protected String removeNullProperties(String request) throws JsonProcessingException { - JsonNode node = mapper.readTree(request); - JsonNode cleaned = removeNullNodes(node); - return mapper.writeValueAsString(cleaned); - } - - protected String removeTypeProperty(String response, boolean isFault) throws JsonProcessingException { - JsonNode node = mapper.readTree(response); - JsonNode cleaned = removeTypeNodes(node, isFault); - return mapper.writeValueAsString(cleaned); - } - - protected String modifyDate(String str) { - String pattern = "(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})(\\.\\d+)?(Z)?"; - String pattern2 = "(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2})(\\.\\d+)?([+-]\\d{2}:\\d{2}|Z)?"; - Pattern r = Pattern.compile(pattern); - if (r.matcher(str).find()) { - return str.replaceAll(pattern, "$1"); - } - return str; - } - - protected String modifyFormat(String str) { - return str.replace("OSName", "Osname") - .replace("forwardCompatibilityMap", "ForwardCompatibilityMap") - .replace("BMCStores", "Bmcstores"); - } - - protected JsonNode removeNullNodes(JsonNode node) { - if (node.isArray()) { - for (int i = 0; i < node.size(); i++) { - removeNullNodes(node.get(i)); - } - } else if (node.isObject()) { - Iterator> iter = node.fields(); - while (iter.hasNext()) { - Map.Entry entry = iter.next(); - if (entry.getValue().isNull() || entry.getValue().toString().equals("\"\"")) { - iter.remove(); - } else { - removeNullNodes(entry.getValue()); - } - } - } - return node; - } - - protected JsonNode removeTypeNodes(JsonNode node, boolean isFault) { - String[] types = isFault ? faultTypes : errorTypes; - if (node.isArray()) { - for (int i = 0; i < node.size(); i++) { - removeTypeNodes(node.get(i), isFault); - } - } else if (node.isObject()) { - Iterator> iter = node.fields(); - while (iter.hasNext()) { - Map.Entry entry = iter.next(); - for (int i = 0; i < types.length; i++) { - if (entry.getKey().toString().equals("Type") && entry.getValue().toString().contains(types[i])) { - iter.remove(); - break; - } else { - removeTypeNodes(entry.getValue(), isFault); - } - } - } - } - return node; - } -}